JayRogers

Previous Period Levels - X Alerts

====== 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
開源腳本

秉持真正的TradingView精神,該腳本的作者將其開源發佈,因此交易者可以理解和驗證它。為作者加油!您可以免費使用它,但是在發佈中重複使用此程式碼受網站規則的約束。您可以把它加入到常用以在圖表上使用它。

想在圖表上使用此腳本?

評論

500 coins
回覆
JayRogers PineCoders
@PineCoders, ..and Thankyou!
+1 回覆
500 coins
回覆
JayRogers LonesomeTheBlue
@LonesomeTheBlue, Thanks! It's been a while since I did the scripting things and stuff. So just a simple one to ease me back into it ^_^
回覆
Exciting to see you back, your scripts have been instrumental in my journey and look forward to seeing more. Keep up the great work and thank you for sharing!
+3 回覆
JayRogers allanster
@allanster, thankyou for the kind words, it's good to know my scribblings helped others on their journey!
回覆
Nice work, thanks for sharing!
+1 回覆
JayRogers Mayfair_Ventures
@Mayfair_Ventures, my pleasure :)
回覆
Awesome work !!! cheers mate script is really helpful during live trade. Please plot level values to extereme right if possible.
+1 回覆
JayRogers mkmathur08
@mkmathur08, You're very welcome, and yes that is something i will look into on my next update.
回覆
首頁 股票篩選器 外匯篩選器 加密貨幣篩選器 全球財經日曆 如何運作 圖表功能 價格 推薦朋友 網站規則 幫助中心 網站 & 經紀商解決方案 小工具 圖表解決方案 輕量圖表庫 部落格 & 新聞 推特
概覽 個人資料設定 賬戶和賬單 推薦朋友 代幣 我的客服工單 幫助中心 私人訊息 在線聊天 登出