
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
I even tried it like this : (but i get 2 error codes :
1 :" Unknown ticket 28 for ordermodification function" and
2: " ordermodify error 4108"
//-------------------------TRAILING STOP CRITERIA-----------------------------------//
if (type==OP_BUY)
{
OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES);
{
if(Bid-TrailingStop*Point> css-TrailingStop*Point)
{
OrderModify(ticket,price,Bid-TrailingStop*Point,0,Green);
return(0);
}
else if (type==OP_SELL)
{
OrderModify(ticket,price,Ask+TrailingStop*Point,0,Green);
return(0);
}
}
}
}
}
}
return(0);
}
//+----------------------------------------------------------------+