Skip to content

Instantly share code, notes, and snippets.

@marsmensch
Forked from TraderX0/TraderX0_Daily_OHL
Created November 23, 2018 12:50
Show Gist options
  • Save marsmensch/cfaed807f87cc48bd443854635d78c10 to your computer and use it in GitHub Desktop.
Save marsmensch/cfaed807f87cc48bd443854635d78c10 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