allanster

How To Show Vertical Lines

allanster Wizard 已更新   
Example of various methods to show dashed or solid vertical lines on chart based on using either session or time.

Credit for line method goes to midtownsk8rguy ->
Credit for plot method goes to PineCoders -> www.pinecoders.com/faq_and_code/

Special thanks to LucF, midtownsk8rguy, and PineCoders for permission to use their work.

NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script!
發布通知:
Updated for Pine Script v5.
發布通知:
Updated with cosmetic changes & stricter boolean check:
// previous
isTime = time(timeframe.period, i_Time + ":1234567")
bgcolor(i_BkGr and isTime ? color.new(color.gray, 50) : na)

// revised
isTime = not na(time(timeframe.period, i_Time + ":1234567"))
bgcolor(i_BkGr and isTime ? color.new(color.gray, 50) : na)

lux ex tenebris • deuro mea umbra absens • Telegram: t.me/allanster
開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?