Cornelius127, you could try something like that :
int delorderstop()
{
int i;
for(i=0;i<OrderTotal();i++)
{
if(OrderSelect(i, SELECT_BY_POS)==true)
int delorderstop()
{
int i;
for(i=0;i<OrderTotal();i++)
{
if(OrderSelect(i, SELECT_BY_POS)==true)
//OP_BUYSTOP | 4 | Buy stop pending position. |
//OP_SELLSTOP | 5 | Sell stop pending position. |
if(OrderType()>3)
{
OrderDelete(OrderTicket());
return(1);
}
}
return(0);
}
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Thanks.