OPEN-SOURCE SCRIPT

Simple Moving Average Crossover

Updated
This strategy uses two moving averages of 21 and 8 to generate buy or sell signal.

This is for purely intraday trades and best use in 15 min time frame

This strategy uses angle/slope of ma to filter out period of sideways movement and only generate signals when the stock starts trending in one direction


How to use this

1) Buy when the buy is generated

2) Sell when the sell is generated

Properties you can tweak to adjust this strategy to your needs are

1) angle -> Adjust this properties to define how much slope would be considered to generate the signals, higher the values lesser the trades generated.

2) atr period-> this is to adjust the atr period

3) ma source -> close is considered as source , you can use open or high or low
Release Notes
Long means BUY
short means SELL
Release Notes
just updated
crossoverintradayMoving Averagesprofitabletrending

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