Skip to content

Instantly share code, notes, and snippets.

@bitofdon
Forked from TraderX0/TraderX0_Daily_OHL
Created December 2, 2018 23:39
Show Gist options
  • Save bitofdon/1add5a89c9aac0eb7ffebb8725fd11a9 to your computer and use it in GitHub Desktop.
Save bitofdon/1add5a89c9aac0eb7ffebb8725fd11a9 to your computer and use it in GitHub Desktop.
//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