Last active
January 25, 2025 20:47
-
-
Save testzugang/0a5da212155b5a483ef4a1f72f421f09 to your computer and use it in GitHub Desktop.
TV - Vertical Lines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@version=5 | |
indicator('Vertical Lines', overlay=true, scale=scale.none) | |
sess1 = input.float(10.0, '1', minval=0.0, maxval=23.60) | |
sess2 = input.float(12.0, '2', minval=0.0, maxval=23.60) | |
sess3 = input.float(14.0, '3', minval=0.0, maxval=23.60) | |
offset = input.int(60, "Future offset", 0, 120, 1) | |
color = input.color(color.new(color.blue, 80), "Background") | |
linewidth = input.int(4, "Line Width", 1, 5, 1) | |
min1 = sess1 - math.floor(sess1) | |
cond1 = hour == math.floor(sess1) and minute == min1 * 100 | |
plot(cond1 ? 10e20 : na, style=plot.style_histogram, offset = offset, linewidth=linewidth, color=color) | |
min2 = sess2 - math.floor(sess2) | |
cond2 = hour == math.floor(sess2) and minute == min2 * 100 | |
plot(cond2 ? 10e20 : na, style=plot.style_histogram, offset = offset, linewidth=linewidth, color=color) | |
min3 = sess3 - math.floor(sess3) | |
cond3 = hour == math.floor(sess3) and minute == min3 * 100 | |
plot(cond3 ? 10e20 : na, style=plot.style_histogram, offset = offset, linewidth=linewidth, color=color) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment