OPEN-SOURCE SCRIPT

Example - HTF Values Without 'Security()'

已更新
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.
版本注释
  • 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.
版本注释
  • 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

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明