-
-
Save bitofdon/1add5a89c9aac0eb7ffebb8725fd11a9 to your computer and use it in GitHub Desktop.
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
//author @TraderX0 | |
//script to plot daily Open high and low | |
//version 1.1 | |
//last edited 22/11/2018 | |
//title | |
study(title="TraderX0__O_H_L", shorttitle="TraderX0_O_H_L", overlay=true) | |
// holds the daily price levels | |
openPrice = security(tickerid, 'D', open) | |
highPrice = security(tickerid, 'D', high) | |
lowPrice = security(tickerid, 'D', low) | |
//plot levels | |
plot(openPrice ? openPrice : na, title="Daily Open", style=circles, linewidth=2, color=purple) | |
plot(highPrice ? highPrice : na, title="Daily High", style=circles, linewidth=2, color=green) | |
plot(lowPrice ? lowPrice : na, title="Daily Low", style=circles, linewidth=2, color=red) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment