Weighted RiskONess

I.e. setting gold's weight to 10 takes it's value ^ (10 / 10). Setting it to 5 would square root it (^5/10 = ^1/2) while 20 would square it (^20/10 = ^2).
A green line means "riskONess" has gone up in the last day, red means down.
Resolution minimum for the indicator is 1D due to TradingView's limitations.
Also option for EMA.
Weights similar, though no negative values (just turn it risk-on or risk-off)
EMA available, defaults to OFF.
Also changed line color to gray if no change in indicator value.
Note: at timeframes lower than 1D, this sometimes causes the script to hang, never load, or throw an error. Haven't been able to isolate why.
Added deviations: triangles are bullish/bearish deviations, arrows hidden bullish/bearish.
Lower timeframes sometimes don't work. If so, try removing and re-adding securities individually. Looking into the what and why it's doing this.
♦Fixed VIX - formerly was making lower timeframes hang if used
Updated RiskON ribbon for better look.
♦can select whether your asset is risk on or off
♦now shows deviations between the selected asset and risk-on or risk-offness. If riskON is up and the asset is down the deviation is denoted with a "+". If RiskON is down and the asset is up, it's denoted with a "-".
♦cleaned up inputs into groups. MUCH cleaner and easier to navigate now
♦ditched old deviations as they generally registered too slowly to be actionable.
Added ability to toggle between candle color being based on close > prev. close (default) or close vs open (enable "Delta Close Color")
Also added a current-value line.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.
Declinazione di responsabilità
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.