Type/to search

Multi-Equilibrium Price Trend Following and Reversal Trading Strategy

ATR
1
Follow
1781
Followers

img

Strategy Overview

This strategy is a trend following and reversal trading system based on price equilibrium points. It determines the equilibrium price by calculating the midpoint between the highest and lowest points over X bars, and judges trend direction based on the closing price's position relative to the equilibrium price. When price maintains on one side of the equilibrium for a set number of bars, the system confirms a trend. It seeks entry opportunities on the first pullback (price crossing equilibrium). The strategy can be configured for either trend following or reversal trading modes.

Strategy Principles

  1. Equilibrium Price Calculation: Uses the midpoint between the highest and lowest prices over X bars as equilibrium price, identical to the baseline calculation in Ichimoku Cloud.
  2. Trend Determination: A trend is confirmed when price stays on the same side of equilibrium for X consecutive bars (default 7).
  3. Entry Signals: Triggers entry on first pullback (price crossing equilibrium) after trend confirmation.
  4. Stop Loss and Take Profit: Uses 60th percentile of ATR for dynamic adjustment of stop loss and take profit distances, providing flexible risk control.
  5. Large Movement Protection: Automatically closes positions when price deviates from equilibrium beyond a set ATR multiple.

Strategy Advantages

  1. High Adaptability: Flexibly switches between trend following and reversal trading modes based on market characteristics.
  2. Comprehensive Risk Control: Employs dynamic ATR stops and large movement protection mechanisms.
  3. Clear Operations: Trading signals are clear and don't rely on complex technical indicator combinations.
  4. Good Visualization: Uses colored candlesticks and backgrounds for intuitive market state display.
  5. Automation Friendly: Easily interfaces with trading platforms like MT5 for automated trading.

Strategy Risks

  1. Choppy Market Risk: May generate frequent false signals in sideways markets.
  2. Slippage Impact: May face significant slippage during violent market movements.
  3. Parameter Sensitivity: Core parameters like equilibrium period and trend determination period need careful optimization for different markets.
  4. Market Transition Risk: Transitions from trending to ranging markets may cause significant drawdowns.

Strategy Optimization Directions

  1. Market Environment Recognition: Add market environment identification module to dynamically adjust strategy parameters under different market conditions.
  2. Signal Filtering: Consider adding volume, volatility, and other auxiliary indicators to filter false signals.
  3. Position Management: Introduce more sophisticated position management mechanisms, such as volatility-based dynamic adjustment.
  4. Multiple Timeframes: Integrate signals from multiple timeframes to improve trading accuracy.
  5. Trading Cost Optimization: Optimize entry and exit timing based on cost characteristics of different trading instruments.

Summary

This is a well-designed trend trading system that provides clear trading logic through the core concept of equilibrium price. The strategy's greatest strength is its flexibility, being suitable for both trend following and reversal trading while maintaining comprehensive risk control mechanisms. Although it may face challenges under certain market conditions, through continuous optimization and flexible adjustment, the strategy has the potential to maintain stable performance across various market environments.

Source
Pine
/*backtest
start: 2019-12-23 08:00:00
end: 2024-12-11 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Honestcowboy

//@version=5
Strategy parameters
Strategy parameters
Base Settings
Equilibrium Length (Optional)
Candles needed for Trend (Optional)
Max Pullback (candles) (Optional)
Candle Coloring
candle_bull_c1 (Optional)
candle_bull_c2 (Optional)
candle_bear_c1 (Optional)
candle_bear_c2 (Optional)
Highlight close prices
Chart Background
color main chart Bg based on trend and entry point
Trend Bull Color (Optional)
Trend Bear Color (Optional)
Long Entry Zone Color (Optional)
Short Entry Zone Color (Optional)
Volatility Settings
ATR Length (Optional)
ATR percentile averages lookback (Optional)
ATR > bottom X percentile (Optional)
Strategy Inputs
Use Reverse
stop+tp atr multiplier (Optional)
use stop and TP
Big Candle Exit
Exit Multiplier (Optional)
Tradingview.to Connection MT5
Trade size in Account risk % (Optional)
Override Symbol?
tvToSymbol (Optional)
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)