OPEN-SOURCE SCRIPT

Simplified MA Crossover indicator

Updated
This is my first script, it is really simple logic and you probably saw something similar before. Is a crossover indicator between 2 Moving Average, one fast MA and the second slow MA.
Inputs you can adjust:
- 8 different source of MA's
- lenght of the MA's
- 7 different types of MA's ("EMA", "SMA", "RMA", "WMA", "DEMA", "TEMA", "HMA")
- 3 smoothing level of the fast MA
- plotting fast MA into the chart
- plotting crossover triangle shapes
I really enjoed the creation of this simple concept indicator, maybe not the fastest because of his nature but I liked work on it. I am sure is a good base to improve, study and try new idea.
Release Notes
v2
- Added import function named "Cinnamon_Bear/Cinnamon_BearIndicatorsMALibrary/2 as cin", this is a library with coded MA functions so you import only the value to keep more clean the indicator code.
- Replaced "DEMA", "TEMA", "HMA" function with the equivalent code from the new library.
- Added 5 new type of MA : "DSMA", "VWEMA", "EHMA", "LSMA", "ZLMA".

Double Exponential Moving Average (DEMA)Moving AveragesSimple 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