Orders Execution
Miscellaneous
0
Views
0
Downloads
0
Favorites
09. Sell Limit (Del)
//+---------------------------------------------------------+
// Ñêðèïò óáèð¸ò âñå Sell Limit ïî èíñòðóìåíòó |
//+---------------------------------------------------------+
void start(){
PlaySound("tick.wav");
bool s = false;
int i=0;
for(;i<OrdersTotal();i++)
{//+---------------------------------------------------------------------+for
OrderSelect(i,SELECT_BY_POS);
if(OrderSymbol()!= Symbol())continue;
if(OrderType()!=3)continue;
s=true;
int Ticket = OrderTicket();
//+----------------------------------------------------------------------+
OrderDelete(Ticket);
int error = GetLastError();
if(error==6){Alert("Íåò ñâÿçè");return;}
if(error==132){Alert("Ðûíîê çàêðûò");return;}
RefreshRates();
i--;
}//+--------------------------------------------------------------------+for
if(s)Alert("Îðäåðà Sell Limit óäàëåíû");else Alert("Íåò îðäåðîâ Sell Limit");
PlaySound("ok.wav");
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
---