i have strategy for entry and my stop loss is low of before candle. and my tp is R/R 3 that it set according to Stoploss.
i wrote code but it not work.
strategy.entry("Long Position",strategy.long,when = LongEntry)
strategy.exit("Exit Long" , from_entry = "Long Position" , stop = low[1] , profit = 3*low[1] )
what is problem?