Skip to content

Instantly share code, notes, and snippets.

@TraderX0
Last active May 11, 2021 04:43
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save TraderX0/6da282122e211dbba493e938a6d875c3 to your computer and use it in GitHub Desktop.
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
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