Trading Strategy
Trading Strategy
//Enter a long position when price closes above the upper Bollinger Band
if ta.crossover(close, upper1)
strategy.entry("Long", strategy.long)
//Enter a short position when price closes below the lower Bollinger Band
if ta.crossunder(close, lower1)
strategy.entry("Short", strategy.short)