It looks like there is an error on line 71
it should be:
if (sl >= MarketInfo(OrderSymbol(),MODE_ASK)+MarketInfo(Symbol(),MODE_STOPLEVEL)*MarketInfo(Symbol(),MODE_POINT) && ((OrderStopLoss() == 0) || OrderStopLoss() > sl)) OrderModify(OrderTicket(),OrderOpenPrice(),sl,0,0);
for sell position new SL must be less than previous.

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
Hello everyone,
Is somebody kind enough to please help me.
Here's a code that sets up a trailing stop once a profit is reached (10 pips by example), but for example if I put 50% trailing being set up once and then he stopped moving, I would like that It will update if profit becomes larger only, thank you.
(excuse my english )