Smoothed Heikin Ashi Trend Following Strategy
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
- Custom indicator identifies trends with good backtest results
- Trend following approach aligns with quantitative theories
- Stop loss implementation promotes risk management
Risks
- Potential for repainting leading to poor live performance
- Reliance on a single indicator risks bad signals
- Stop loss setting requires further optimization
Enhancement Opportunities
- Incorporate additional filters like Bollinger Bands, RSI etc.
- Test different indicator parameters
- Optimize stop loss placement
- 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.
/*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.- 1

