OPEN-SOURCE SCRIPT
Updated Key Distances (Weekly, Daily Open, & EMA)

This indicator provides the pip value from various key levels I've found important in my trading system.
The results are graphed. I suggest that you choose the 2 most important ones you want to graph otherwise the indicator gets difficult to read.
The important data is the actual numbers but I've found it helpful to understand how a ticker moves in regards to weekly open and distance from 200EMA to be most helpful.
Here is the order of the data listed:
Future Possible Updates:
- customized EMA
- Distance from weekly low/high
The results are graphed. I suggest that you choose the 2 most important ones you want to graph otherwise the indicator gets difficult to read.
The important data is the actual numbers but I've found it helpful to understand how a ticker moves in regards to weekly open and distance from 200EMA to be most helpful.
Here is the order of the data listed:
- Distance from weekly open (green if above open, red if below open, also paints color on line)
- Distance from last week opening price
- Distance from daily open
- Distance to 200EMA
Future Possible Updates:
- customized EMA
- Distance from weekly low/high
Release Notes
Wanted to add some customization and zero line. Here's details to this update:- Zero Line added. Now you can turn on and plot the zero line.
- Added slow EMA input that can be changed (default is 200)
- Added fast EMA input that can be changed (default is 20)
The numbers are what I feel are most important but graphing 1-3 of these numbers can help in possibly getting a good feel of how a ticker moves from these distances or in creating alerts.
Release Notes
Added Daily high, low and close.You can turn off or customize all plots. This indicator is primarily used to visually backtest other indicators to look for patterns in price action. So usually just turn on a few plots or use the information panel to get the raw numbers.
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.
For quick access on a chart, add this script to your favorites — learn more here.
Get the best... join my Discord: discord.gg/WgjsxVz
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.
For quick access on a chart, add this script to your favorites — learn more here.
Get the best... join my Discord: discord.gg/WgjsxVz
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.