allanster

How To Show Vertical Lines

allanster Wizard Cập nhật   
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!
Phát hành các Ghi chú:
Updated for Pine Script v5.
Phát hành các Ghi chú:
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)

Telegram: t.me/allanster • Website: www.allanster.com

If you wish to buy me a refreshing beverage :)...

LTC (preferred): LTDaAe7nPzbpBhZVT9o5f9f8M3aZSPa46Y

BTC: 13LhkeXBYrRomVAqbXcoLXHuqMk6Mf7G6N
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?