if someone' broker is in 5 Digits, the trailing stop can not be under 50 points, try 55 point
input double TrailingStop =30;
Or add a line to avoid a trailing stop too low :
if(TrailingStop>0 && TrailingStop > MarketInfo(Symbol(), MODE_STOPLEVEL) )
//--- modify order and exit
And add an alert :
if( TrailingStop < MarketInfo(Symbol(), MODE_STOPLEVEL)
Alert(" Trailing stop too low");
Or Print(" Trailing stop too low", (string) TrailingStop );
ffoorr, you just need to click edit and edit your post. No need to post new one if you are the last poster.
Your effort is appreciated though, thank you for that.
To add comments, please log in or register