The TSO Bollinger Bandit Strategy indicator is based on the trading strategy of Bollinger Bandit, described in the book by J. R. R. Tolkien. Pruitt and J. R. HillBuilding winning trading systems with TradeStation.
- A full-fledged strategy with inputs and outputs for the trending market.
- When an input signal appears, it sends notifications by email/push notifications.
- The indicator does not redraw.
- You can use it as part of an Expert Advisor (see the sectionFor developers)
The strategy uses the Bollinger bands as a breakdown indicator, i.e. a signal for a potential entry into a long position is formed when the candle closes above the upper Bollinger band, and a potential short signal appears when the candle closes below the lower band.
In addition to going beyond the Bollinger bands for the input signal, the closing of the current candle should be higher than the closing of X periods back in the case of long positions or lower than the closing of X periods back for short positions.
When opening a position, the stop loss is set according to the moving average. For each period in which the strategy remains in position, the number of periods for calculating the moving average decreases. This happens until the minimum value of the moving average period is reached. After that, the moving average period remains constant.
[spoiler title=”Read More…”]
An exit signal is generated when the moving average is below the upper band for a long position and above the lower band for a short position. This part was added to prevent the system from returning to the same transaction that was just completed.
- Settings of the Bollinger bands
- Period – the period of the Bollinger bands.
- Deviation – the number of standard deviations between the bands and the moving average.
- Shift – the number of periods for shifting the Bollinger bands.
- Apply to – the price used to calculate the Bollinger Bands.
- Moving Average Stop Loss Settings
- Period – the period of the moving average.
- Rate of Period Reduction – the value by which the period of the moving average will decrease on each candle after the entry signal.
- Minimum Period – the minimum value of the moving average period. After reaching this value, the moving average will remain constant.
- Shift – the number of periods to shift the moving average.
- Method – method for calculating the moving average.
- Apply to – the price used to calculate the moving average.
- Trend Filter Settings
- Lookback Period – the number of periods in the history for analyzing the last closing price, which will be compared with the closing of the current candle to confirm the signal.
- Maximum Drawn Bars – the maximum number of bars on which the indicator will be displayed. For example, if the value is 1000, the indicator will be built on the last 1000 bars of the chart.
- Setting up an alert
- ENABLE Metatrader Alerts – if the value is “true”, an alert about the appearance of an input signal will be displayed in the MetaTrader terminal.
- ENABLE Email Alerts – if the value is “true”, an alert about the appearance of an input signal will be sent by email.
- ENABLE Push Notifications – If set to “true”, a push notification will be sent when an input signal appears.
- Period – the period of the Bollinger bands.
- Deviation – the number of standard deviations between the bands and the moving average.
- Shift – the number of periods for shifting the Bollinger bands.
- Apply to – the price used to calculate the Bollinger Bands.
- Period – the period of the moving average.
- Rate of Period Reduction – the value by which the period of the moving average will decrease on each candle after the entry signal.
- Minimum Period – the minimum value of the moving average period. After reaching this value, the moving average will remain constant.
- Shift – the number of periods to shift the moving average.
- Method – method for calculating the moving average.
- Apply to – the price used to calculate the moving average.
- ENABLE Metatrader Alerts – if the value is “true”, an alert about the appearance of an input signal will be displayed in the MetaTrader terminal.
- ENABLE Email Alerts – if the value is “true”, an alert about the appearance of an input signal will be sent by email.
- ENABLE Push Notifications – If set to “true”, a push notification will be sent when an input signal appears.
[/spoiler]