Skip to content

Instantly share code, notes, and snippets.

@TraderX0
Last active May 11, 2021 04:43
Show Gist options
  • Select an option

  • Save TraderX0/6da282122e211dbba493e938a6d875c3 to your computer and use it in GitHub Desktop.

Select an option

Save TraderX0/6da282122e211dbba493e938a6d875c3 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)
@TraderX0

Copy link
Copy Markdown
Author

Plots daily Open (Black), High (Green), Low(Red)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment