OPEN-SOURCE SCRIPT

Moving Average - Intraday

Updated
Moving Average Intraday Strategy

Basic moving average strategy purpose built for intraday trading. It uses two simple moving averages & takes a positions on crossover.
Position is reversed when signal changes by using double quantity. Once the intraday session is over & if the position is open; it is squared off.
Users can define intraday session during which the strategy will run.

Parameters:
  • Intraday Session - Defines the duration for which the strategy should execute.
  • Short Term Moving Average Period
  • Long Term Moving Average Period

Release Notes
Upgrade to Pine Script Version 5
intradaySimple Moving Average (SMA)

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