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精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明