JayRogers

Previous Period Levels - X Alerts

JayRogers 업데이트됨   
====== ABOUT THIS INDICATOR

- A simple but highly customisable display of previous higher time-frame
OHLC values, drawn using line.new and label.new. Nothing fancy but...

- Customised resolution input which excludes time frames lower than 1 hour
while extending the common higher reference inputs to include:

• 6, and 12 Hour
• 5 Day
• 3, and 6 Month
• 1 Year

- Alert conditions using an adjustable SMA to help reduce false positive
spam.

- Full visual customisation options for (almost) every aspect, so it can be
tuned to suit most individual preferences.

- In line with the miriad visual customisation options is the ability to
change the display format of the Labels, to show more or less information,
or disable them altogether.

====== REASON FOR STUDY

- To practice advanced user input option handling to allow for a full visual
customisation experience without stepping outside of, or interfering with,
the intended function of the indicator.

- Provide reasonably clear code commenting and structure in order to be
useful as a potential learning aid for others, and future reference for
myself.

====== DISCLAIMER

Any trade decisions you make are entirely your own responsibility.
I've made an effort to squash all the bugs, but you never know!
릴리즈 노트:
Fixed:

Old lines were not being cleared as expected upon period change, this issue has been resolved to the best of my knowledge.

The fix introduced a new bug (which has also been resolved) where, although the old lines were clearing properly, upon entering
a new period the new lines would not draw the proper extension due to their x1 and x2 values sharing the same space. The fix
for this was to simply set the x1 value to the previous bar index, allowing the extension to draw immediately upon entering a
new period.

Added:

Unobtrusive dotted vertical line to denote the proper start of the period, as the horizontal lines now have their starting point set
back 1 candle. The lines use the colouring for the label background for now.

Changed:

Just a little code cleaning.

Cheers! -Jay
릴리즈 노트:
Removed unused boolean check.

Will do one last full sweep of the code for cleanup soon - Jay
릴리즈 노트:
BIG Update:

• Thanks to the new 'inline' and 'group' functionality added to inputs, I have been able to GREATLY extend customisation, while keeping things nicely organised.

• Lines now terminate at the expected close of the reference period, thanks to:
time_close()

• Labels have been split into "Header" and "Price, with the period info sitting on the open of the level, and the price to the far right.

• Ability to set colours and styles independently for each level.

• Ability to show/hide the previous-previous OHLC level extensions.

• Cleaned up alert functionality a bit, and properly handling clean up of old out-dated X markers
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?