Forums › ProRealTime English forum › ProOrder support › profit reduces by 33% › Reply To: profit reduces by 33%
04/25/2018 at 12:50 PM
#69133
1 2 3 4 5 6 7 8 9 |
Once MaxX=0 IF LongOnMarket AND close > TradePrice THEN x = (close - tradeprice) / pipsize //convert price to pips MaxX=MaxX=max(x,MaxX) //store the max profit during trade IF x >= 30 and x < 0.66*MaxX THEN //Exit only if 30+ pips SELL AT MARKET MaxX=0 ENDIF ENDIF |
Maybe like this