Type/to search

Smoothed Heikin Ashi Trend Following Strategy

Common strategy
Created: 2023-12-27 15:41:37
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

This strategy identifies price trends using a custom smoothed oscillator indicator and trades based on trend following principles. It goes long when price breaks above the indicator line and goes short when price breaks below the line.

Strategy Logic

The strategy employs a custom smoothed oscillator that computes the reverse close price required to flip the Heikin Ashi candle color from red to green and vice versa. This reverse close is then smoothed using moving averages to obtain the final oscillator line. Price trading above (below) the line signals an uptrend (downtrend).

The strategy enters trades based on breakouts of the indicator line. Long trades are initiated when price breaks above the line while short trades are initiated on breakdowns below the line. Stop losses are set at a fixed percentage from the entry price to lock in profits and control risk.

Advantages

  1. Custom indicator identifies trends with good backtest results
  2. Trend following approach aligns with quantitative theories
  3. Stop loss implementation promotes risk management

Risks

  1. Potential for repainting leading to poor live performance
  2. Reliance on a single indicator risks bad signals
  3. Stop loss setting requires further optimization

Enhancement Opportunities

  1. Incorporate additional filters like Bollinger Bands, RSI etc.
  2. Test different indicator parameters
  3. Optimize stop loss placement
  4. More testing across instruments and timeframes

Conclusion

The strategy demonstrates a clear trend following approach using a custom oscillator indicator. Backtest results are encouraging, indicating potential for live trading. However sole dependence on one repainting indicator and lack of signal quality verification are concerns. Stop loss mechanics also require additional testing and tuning. Overall the strategy concept looks feasible but more work is needed to make it reliably deployable for live trading.

Source
Pine
/*backtest
start: 2023-12-19 00:00:00
end: 2023-12-26 00:00:00
period: 10m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/

// © TraderHalai
// This is a backtest of the Smoothed Heikin Ashi Trend indicator, which computes the reverse candle close price required to flip a heikin ashi trend from red to green and vice versa. Original indicator can be found on the scripts section of my profile.
Strategy parameters
Strategy parameters
Use smoothing Heikin Ashi
Method
Smoothing period
Show Info Box
Prices Decimal Places
Info Box Offset
Repaint - Keep on for live / Off for backtest
Long Stop Loss (%)
Short Stop Loss (%)
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)