Orders Execution
0
Views
0
Downloads
0
Favorites
move sl 20
int start()
{
int totalorders = OrdersTotal();
for(int i=totalorders-1;i>=0;i--)
{
OrderSelect(i, SELECT_BY_POS);
{
if (OrderSymbol()==Symbol()&& OrderType() == OP_BUY ) {
OrderModify(OrderTicket(),OrderOpenPrice(),Bid-20*Point,OrderTakeProfit(),0,Green);
}
if (OrderSymbol()==Symbol()&& OrderType() == OP_SELL ) {
OrderModify(OrderTicket(),OrderOpenPrice(),Ask+20*Point,OrderTakeProfit(),0,Green);
}
}
}
return;
}
Comments
Markdown Formatting Guide
# H1
## H2
### H3
**bold text**
*italicized text*
[title](https://www.example.com)

`code`
```
code block
```
> blockquote
- Item 1
- Item 2
1. First item
2. Second item
---