OPEN-SOURCE SCRIPT
Multi-Timeframe Moving Average Tracker

Tracks user-defined higher timeframe moving averages on a 1-min chart (maybe higher?).
Useful to see where current price is in relation to a higher timeframe (e.g., 5-min, 1-hr) moving average like the 50 period. This allows the trader to determine size position risk based on personal rules (e.g., price below the 1-hr 40p EMA is high risk for lower price, so position size needs to be lightened, etc).
The higher timeframe moving average is live and plotted on the lower chart as a line (user-defined type and color) with the timeframe and period noted. It will move as the period closes (i.e., 5-min period closes every 5 minutes, 1-hr period closes every 60 minutes, etc.).
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.