OPEN-SOURCE SCRIPT
업데이트됨

Example - HTF Values Without 'Security()'

8 033
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:
Pine Script®
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:
    Pine Script®
    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에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.