JayRogers

Example - HTF Values Without 'Security()'

JayRogers Aggiornato   
This is an example of how to reference higher timeframe data without the
need for a 'security()' call.

I have attempted to create the function example:
f_insecurity()
with the purpose of wrapping up and pumping out all common relevent HTF
price data that's needed for your everyday indicators in a reliable fashion.
Note di rilascio:
  • Updated to remove potential repainting confusion with:
    security()
  • Added ability to toggle the security() comparison overlay on and off.

..apologies for any confusion regarding the previous repainting option, it was intended for debugging purposes only at the time of writing.

Cheers - Jay.
Note di rilascio:
  • Cleaned up self-referencing ternary operations - there was no need to reference 'previous' values of self, just 'active' self.
  • Added 'nz()' conversion checks where they might be necessary.
  • Removed redundant bar-counting mechanic.
  • Cleaned up some of the code comments.
Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.

Vuoi usare questo script sui tuoi grafici?