This is a modest improvement of the script to mark the key thresholds where equities/ holdings rotations could be prudent. I’m sure I’ll be submitting a number of instances of these scripts as I learn the syntax and features while developing them.
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 a publication is governed by House Rules. You can favorite it to use it on a chart.
study(title="DOW/GOLD", shorttitle="DOW/GLD", overlay=false) sym(s) => security(s, period, close) DOWVGLD = (sym("DOWI") / sym("XAUUSD")) plot(40, color=orange) plot(30, color=fuchsia) plot(5, color=fuchsia) plot(3.20, color=orange) plot(DOWVGLD, color=navy, linewidth=1)