OPEN-SOURCE SCRIPT
Aggiornato

How To Show Vertical Lines

21 475
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 ->
vline() Function for Pine Script v4.0+


Credit for plot method goes to PineCoders -> 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!
Note di rilascio
Updated for Pine Script v5.
Note di rilascio
Updated with cosmetic changes & stricter boolean check:
Pine Script®
// 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)

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.