Orders Execution
Checks for the total of open ordersIt automatically opens orders when conditions are reached
0 Views
0 Downloads
0 Favorites
hour4
extern double lot=0.1;
extern int SL=120;
extern int TP=100;
extern int time=16;

int start()
 {if (TimeHour(TimeCurrent())==time&&OrdersTotal()==0) 
 {OrderSend(Symbol(),OP_BUY,lot,Ask,3,Bid-SL*Point,Ask+TP*Point,"My order #",16384,0,Green);}
 return(0);
 }

Comments

Markdown supported. Formatting help

Markdown Formatting Guide

Element Markdown Syntax
Heading # H1
## H2
### H3
Bold **bold text**
Italic *italicized text*
Link [title](https://www.example.com)
Image ![alt text](image.jpg)
Code `code`
Code Block ```
code block
```
Quote > blockquote
Unordered List - Item 1
- Item 2
Ordered List 1. First item
2. Second item
Horizontal Rule ---