OPEN-SOURCE SCRIPT

MA Candles Supertrend Strategy

Updated
Simple strategy which is derived by below method:

1. Calculate moving average of High, Low, Open and Close and make candles of them.
2. Derive supertrend on the moving average candles.
3. Generate buy and sell signals based on supertrend direction combined with higher timeframe high-low condition
Release Notes
  • Corrected inDateRange condition.
  • Refined entry and exit to avoid premature trade in tight conditions
Release Notes
Convert to pine 5
Average True Range (ATR)Moving Averagessupertrend

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer