OPEN-SOURCE SCRIPT

Example - HTF Values Without 'Security()'

Mis à jour
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:

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.
Notes de version
  • Updated to remove potential repainting confusion with:
  • 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.
Notes de version
  • 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.
educationexampleHTFperiodPivot PointsreferenceresolutionsecuritySupport and ResistanceTIMEtutorial

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Clause de non-responsabilité