JayRogers

Example - HTF Values Without 'Security()'

JayRogers מעודכן   
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.
הערות שחרור:
  • 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.
הערות שחרור:
  • 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.
סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יכולים להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?