Created
March 13, 2019 01:34
-
-
Save TraderX0/bb4153f3a264fb78af5b1257396f998f to your computer and use it in GitHub Desktop.
Daily open, high low + weekly monthly opens
This file contains hidden or 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 levels | |
//version 1.2 | |
//last edited 12/03/2019 | |
//title | |
study(title="TraderX0_Levels", shorttitle="TraderX0_Levels", overlay=true) | |
// holds the daily price levels | |
dailyOpen = security(tickerid, 'D', open) | |
dailyHigh = security(tickerid, 'D', high) | |
dailyLow = security(tickerid, 'D', low) | |
weeklyOpen = security(tickerid, 'W', open) | |
monthlyOpen = security(tickerid, 'M', open) | |
//plot levels | |
plot(dailyOpen, title="Daily Open", style=circles, linewidth=2, color=maroon) | |
plot(dailyHigh, title="Daily High", style=circles, linewidth=2, color=green) | |
plot(dailyLow, title="Daily Low", style=circles, linewidth=2, color=red) | |
plot(weeklyOpen, title="Weekly Open", style=circles, linewidth=2, color=blue) | |
plot(monthlyOpen, title="Monthly Open", style=circles, linewidth=2, color=purple) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment