still dont know how to use it? :(
rafat:
still dont know how to use it? :(
still dont know how to use it? :(
you must adjust the number of tickets,
only for one order
when the order has not set stop loss,OrderStopLoss() return is 0,the following OrderModify will never called
if(OrderType()==OP_SELL) { StopLoss = MarketInfo(OrderSymbol(),MODE_ASK)+(trailing_points*Point); if(StopLoss<OrderStopLoss()) { otic=OrderModify(OrderTicket(),OrderOpenPrice(),StopLoss,OrderTakeProfit(),0,CLR_NONE); } }
I solved this way:
StopLoss=MarketInfo(OrderSymbol(),MODE_ASK)+(trailing_points*Point);//mod if(StopLoss<OrdineStoploss || OrderStopLoss()==0) //mod { otic=OrderModify(OrderTicket(),OrderOpenPrice(),StopLoss,OrderTakeProfit(),0,clrRed);
how it work ?
how to make this ea work without using the ticket number?
so it can take care all the open trade on the chart.
thanks
good code
*****
can be passed to mt5

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
Trailing Stop EA:
The TrailingStop EA manages an open position with a trader supplied Trailing Stop. If the trailing stop is less than the allowed stop, the EA changes it to the allowed minimum stop.
Trader can run the EA on any chart even if the ticket number (s)he supplied is for a different symbol.
Author: Mustafa Doruk Basar