strategy("risk to reward 1:1", overlay=true) //Buy entry longEntryCondition = close > nz(longEntryCondition ,open) and (close - open) > 0 if longEntryCondition and not nz(longExitCondition ,false) strategy.entry("Long", strategy.long, comment="Buy") //Stoploss stopLevel = open - (open - close) if longEntryCondition strategy.exit("StopLoss", "Long",...