OPEN-SOURCE SCRIPT
Distance From EMA

This indicator plots the distance in percent from price action to a moving average. Negative values mean that the price is below the moving average and positive values mean that the price is above the moving average. You can chose from EMA, MA, WMA, HMA for your input moving average. You can also change the period and source( open, close, high, low ). This is a useful tool for scalpers.
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.