Hii tried to create a stoploss formula but there is something wrong please correct it
buy=cross macd, sell =cross signalinitail stoploss is 2% but when prices up 4% stoploss move to breakeven buyprice
*Buy* = Cross( MACD(), Signal() ); *Sell* = Cross( Signal(), MACD() ); rink=(ApplyStop( 0, 1, 0, 1, volatile = False, ReEntryDelay = 0 )); rin=(ApplyStop( 0, 1, 2, 1, volatile = False, ReEntryDelay = 0 )); Hy=ValueWhen(Buy,C,1); hhhh=HighestSince( Buy,H,1); IIf((Hhhh> (1.04*Hy)),rink,rin);