Thanks , got it !


And instead of using Trail, what actually not work inside TMF, i can use something like this:

if(TradeProfit>0.03*Balance && TradeIsLong)
{
TradeStopLimit = max(0.5*(TradePriceClose-TradePriceOpen), TradePriceClose-3*ATR(25));
plot("Stop",TradeStopLimit-10*PIP,MINV,BLUE);
}
if(TradeProfit>0.03*Balance && TradeIsShort)
{
TradeStopLimit = min(0.5*(TradePriceOpen-TradePriceClose), TradePriceClose+3*ATR(25));
plot("Stop",TradeStopLimit+10*PIP,MAXV,RED);
}


Last edited by Neb; 12/22/20 17:12.