Last active
December 8, 2020 18:06
-
-
Save d0rsha/58143db220d2f15b3155783759c96368 to your computer and use it in GitHub Desktop.
[Vertical Timelines] #pinescript
This file contains 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
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ | |
// © d0rsha | |
//@version=4 | |
study("Vertical lines",overlay=true, scale=scale.none) | |
/////////////// | |
// Line 1 | |
l1hour = input(9.00, title="L1 hour", minval=01.00, maxval=23.00) | |
l1minute = input(title="L1 minute", type=input.integer, defval=0, minval=0, maxval=60) | |
l1Color = input(color.green, "L1 color", type = input.color) | |
l1plot = hour == floor(l1hour) and minute == floor(l1minute) and timeframe.isintraday | |
plot(l1plot ? 10e20 : na, style = plot.style_histogram, color=l1Color, transp=50) | |
/////////////// | |
// Line 2 | |
l2hour = input(10.00, title="L2 hour", minval=01.00, maxval=23.00) | |
l2minute = input(title="L1 minute", type=input.integer, defval=0, minval=0, maxval=50) | |
l2Color = input(color.red, "Line2 color", type = input.color) | |
l2plot = hour == floor(l2hour) and minute == floor(l2minute) and timeframe.isintraday | |
plot(l2plot ? 10e20 : na, style = plot.style_histogram, color=l2Color, transp=50) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment