Type/to search

Diversified Indicators Aggregation Strategy

Cryptocurrency
Created: 2023-09-27 17:05:34
Last modified: 3 years ago
1
Follow
1781
Followers

Overview

This strategy aims to create the most flexible Bollinger Bands strategy, providing a wide range of customizable options to suit different traders' needs.

Strategy Logic

The strategy uses a single custom moving average as the middle band. Allows customizing moving average period, type, and price source.

The upper and lower bands are calculated based on standard deviation of the middle band, with customizable multiples. ATR can also be chosen instead of standard deviation to calculate upper and lower band locations.

The strategy provides combinations of multiple open and close conditions, including:

  • Price crossing above or below the upper, middle, lower bands
  • Price being above or below the upper, middle, lower bands
  • Band width greater or less than custom thresholds
  • Percentage B greater or less than custom thresholds

Open and close conditions can be used alone or in combination, with a customizable strategy window.

Take profit and stop loss are customizable percentages.

Advantages

  • Customizable moving average period, type, and price source to suit different needs
  • Individual conditions can be used alone or combined freely for flexibility
  • Supports upper, middle, lower 3 bands for broad monitoring
  • Supports band width and percentage B as conditions for diverse indicators combined
  • Customizable take profit and stop loss percentages for controllable risk
  • Supports all varieties on current exchanges for wide applicability
  • Customizable backtest and live trading time range for strategy analysis

The strategy provides great flexibility through abundant customizable options, allowing personalized optimization for different varieties and market conditions to achieve better performance.

Risks

  • Too much flexibility increases difficulty of parameter and condition combination, requiring careful testing and optimization
  • Moving average lag may miss short-term opportunities
  • Stop loss set too small may increase exposure to risk
  • Percentage B is prone to false breakout effects

The following countermeasures can be taken:

  1. Utilize backtesting to test different parameter combinations step-by-step to find the optimum
  2. Use shorter cycle indicators to identify short-term opportunities
  3. Set reasonable stop loss based on ATR etc.
  4. Combine other indicators to confirm percentage B signals

Optimization Directions

  • Add position management functions such as fixed size, martingale, money management etc.
  • Add auto varierty switching capabilities
  • Optimize moving average parameters to increase win rate
  • Optimize stop loss and take profit settings for better risk reward ratio
  • Test different indicator parameter combinations
  • Add machine learning etc. algorithms to automatically find optimum parameters

Summary

This strategy provides a very flexible and comprehensive trading solution through in-depth extensions of Bollinger Bands. Although there are many parameter combinations requiring testing, it can be customized to suit individual needs. Overall, the strategy has great application value as a high-quality representative of Bollinger Bands strategies. With ongoing optimizations, especially the introduction of quantitative and machine learning methods, it has the potential to achieve even better trading performance. It provides traders a powerful and creative tool.

Source
Pine
/*backtest
start: 2022-09-26 00:00:00
end: 2023-09-26 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
args: [["v_input_37",1],["v_input_38",2]]
*/

//@version=4

//
Strategy parameters
Strategy parameters
Middle Band Period
Middle Band Type
Middle Band Source
Middle Band Resolution
Middle Band Candle Type
Middle Band Visible
Upper Band Deviation Multiplier
Lower Band Deviation Multiplier
Use ATR Deviation Instead of Standard Deviation?
ATR Deviation Period
Highlight Inclusions
Show Inclusion Ghost Trail
Forecast Bias
Forecast Bias Period
Forecast Bias Magnitude
Show Forecasts
Hide Fill
Use Basic Fill - No Gradient
Show Details
Upper Band Smoothing Period
Upper Band Smoothing MA Type
Lower Band Smoothing Period
Lower Band Smoothing MA Type
From Month
From Day
From Year
Thru Month
Thru Day
Thru Year
Show Date Range
Take Profit %
Stop Loss %
Open Conditions Requirement
Open Conditions Minimum Count
Close Conditions Requirement
Close Conditions Minimum Count
Crossover Upper Band
Crossover Middle Band
Crossover Lower Band
Crossunder Upper Band
Crossunder Middle Band
Crossunder Lower Band
Price Above Upper Band
Price Above Middle Band
Price Above Lower Band
Price Below Upper Band
Price Below Middle Band
Price Below Lower Band
Band Width Condition Value 1
Band Width Condition Value 2
Band Width Crossover Above Band Value 1
Band Width Crossover Above Band Value 2
Band Width Crossunder Below Band Value 1
Band Width Crossunder Below Band Value 2
Band Width Above Band Value 1
Band Width Above Band Value 2
Band Width Below Band Value 1
Band Width Below Band Value 2
Percent B Condition Value 1
Percent B Condition Value 2
Percent B Crossover Above Percent B 1
Percent B Crossover Above Percent B 2
Percent B Crossunder Below Percent B 1
Percent B Crossunder Below Percent B 2
Percent B Above Percent B 1
Percent B Above Percent B 2
Percent B Below Percent B 1
Percent B Below Percent B 2
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)