OPEN-SOURCE SCRIPT
Two Dot Closed 5ma Variance

The concept behind this indicator is I have worked with a 5 simple moving average for a very long time. More significantly I changed the mode of the ma from a line to a DOT format. While price action moves upward the 5 MA stretches its values between bars, doing the same as it moves down. This becomes so much more obvious in DOT format. It is the turning points of direction where the variance between the DOTS of the 5 MA closes. Flattening the DOTS!
I created this indicator for XAUUSD 30 minute chart. Do with as you see fit. The indicator has a function that you can assign a MAX and MIN variance of the 5 MA right down to 0.10 cents. If closing value of 5 MA is within your set amount an ALERT is given. The actual variance is given in the leading flag and is of the prior 2 closed values.
I created this indicator for XAUUSD 30 minute chart. Do with as you see fit. The indicator has a function that you can assign a MAX and MIN variance of the 5 MA right down to 0.10 cents. If closing value of 5 MA is within your set amount an ALERT is given. The actual variance is given in the leading flag and is of the prior 2 closed values.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.