Tags:

This strategy is based on Bollinger Bands indicator, taking long or short positions when price breaks out of Bollinger Bands upper or lower lines. It aims to profit from catching breakout moves.

- Calculate Bollinger midline, upper and lower lines
- Go long on lower line breakout; go short on upper line breakout
- Set start and end time to define trading hours
- Set holding time, default to intraday exit

Specifically, it first calculates the midline SMA of length length, and upper/lower lines of mult times standard deviation. When close breaks out upward from the lower line, go long. When close breaks down from the upper line, go short. Also set start and end time to limit trading hours. Exit before daily open.

The strategy attempts to capture expanding moves after price breaks out of bands. Breaking lower band indicates strengthening bullish forces, while breaking upper band means strengthening bearish forces, so trading in line with breakout is favorable.

- Simple and intuitive, easy to understand and implement
- Utilize Bollinger Bands to judge trend breakouts, has some trend following capacity
- Flexible parameter adjustment for different cycles and products
- Intraday exit controls overnight risk
- Can enable only long or short trading

- False breakout risk. Price may retrace after initial breakout.
- Need timely parameter tuning. Parameters need adjustments for different cycles.
- Potential loss enlargement risk. Larger breakout range may expand losses.
- Increased transaction costs. Frequent trading may increase transaction costs.

Risks can be reduced by optimizing entry rules, adding stop loss, introducing trend filter etc.

- Optimize parameters for different cycles
- Add re-entry and pyramiding rules to follow trends
- Introduce stop loss to control risks
- Set trading hours to avoid significant news events
- Test trend filters to avoid choppy price action
- Evaluate different holding periods and compare results

This is a breakout strategy based on Bollinger Bands. It profits from breakout moves. Pros are simple logic and easy implementation; Cons are susceptibility to false breakouts. Risks can be managed through parameter optimization, stop loss, trading hours control etc. It allows traders to understand basics of using indicators and trading breakouts.

/*backtest start: 2023-08-21 00:00:00 end: 2023-09-20 00:00:00 period: 1h basePeriod: 15m exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}] */ //Noro //2018 //@version=2 strategy("Noro's Bollinger Strategy v1.0", shorttitle = "Bollinger str 1.0", overlay = true, default_qty_type = strategy.percent_of_equity, default_qty_value = 100.0, pyramiding = 5) //Settings needlong = input(true, defval = true, title = "Long") needshort = input(true, defval = true, title = "Short") length = input(20, minval=1) mult = input(1.0, minval=0.001, maxval=50) fromyear = input(1900, defval = 1900, minval = 1900, maxval = 2100, title = "From Year") toyear = input(2100, defval = 2100, minval = 1900, maxval = 2100, title = "To Year") frommonth = input(01, defval = 01, minval = 01, maxval = 12, title = "From Month") tomonth = input(12, defval = 12, minval = 01, maxval = 12, title = "To Month") source = close basis = sma(source, length) dev = mult * stdev(source, length) upper = basis + dev lower = basis - dev up = close < lower dn = close > upper exit = (strategy.position_size > 0 and close > open) or (strategy.position_size < 0 and close < open) if up strategy.entry("Long", strategy.long, needlong == false ? 0 : na, when=(time > timestamp(fromyear, frommonth, 01, 00, 00) and time < timestamp(toyear, tomonth, 31, 00, 00))) if dn strategy.entry("Short", strategy.short, needshort == false ? 0 : na, when=(time > timestamp(fromyear, frommonth, 01, 00, 00) and time < timestamp(toyear, tomonth, 31, 00, 00))) if time > timestamp(toyear, tomonth, 31, 00, 00) or exit strategy.close_all()

- CM Multiple EMA Crossover Strategy
- AK Dual RSI Breakout Strategy
- Enhanced Bollinger Bands Reversal Strategy
- Mean Reversion ATR Trend Strategy
- KPL Swing Trading Strategy
- ZZ-4 Price Channel Breakout Strategy
- TEMA/DEMA/HMA Trend Following Strategy
- Ichimoku Cloud and RSI Combination Strategy
- Simple Moving Average Crossover Strategy
- Ranged Volume DCA Strategy
- Mean Reversal Breakout Strategy
- Trading Strategy Based on Hull Moving Average and Candlestick
- Moving Average Crossover Strategy
- Long-Term Trading Strategy Based on SuperTrend
- Daily Trading Strategy Based on Weekly EMAs
- Woodie Pivot Points Backtest Strategy
- Stochastics Crossover Trading Strategy
- Backtest Channel Breakout Trading Strategy
- Session Breakout Scalping Strategy
- MA and EMA Crossover Trend Reversal Strategy