Trend Following Strategy Based on MA Candles and Supertrend
This strategy is named "Trend Following Strategy Based on MA Candles and Supertrend". It uses moving averages to construct trend candles and incorporates supertrend mechanism to generate trading signals for trend following.
Specifically, the trading logic is:
-
Calculate open, high, low and close prices with moving averages to plot trend candles.
-
Apply supertrend technique on the trend candles to derive long and short stops.
-
When prices break above long stop, buy signals are generated. When prices break below short stop, sell signals are generated.
-
Incorporate yearly high/low prices of higher timeframes to avoid excessive invalid signals during range-bound markets.
-
When supertrend reverses, positions are closed with stop loss.
The advantage of this strategy is integrating multiple technical indicators improves accuracy. But parameters for moving averages and supertrend need optimization. Stop loss is also indispensable.
In general, integrating indicators and models partially compensates for limitations of individual ones. But no strategy can be perfect. Traders still need enough flexibility to adapt to market changes.
/*backtest
start: 2023-01-01 00:00:00
end: 2023-04-14 00:00:00
period: 1d
basePeriod: 1h
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/
// © HeWhoMustNotBeNamed
//@version=4- 1
