OPEN-SOURCE SCRIPT
Updated Lepelle's Key Levels

Credit to original code goes to paaax and NSDT. Modified to include premarket H/L levels and to show only daily levels. Indicator includes Close levels.
-US Premarket High and Low Levels
-Daily OHL Levels (No close included)
-Yesterday and Previous day OHLC level
-Labels and ability to modify user preferences (color, line)
-US Premarket High and Low Levels
-Daily OHL Levels (No close included)
-Yesterday and Previous day OHLC level
-Labels and ability to modify user preferences (color, line)
Release Notes
updated to Premarket calculationUpdated Today's Levels to Current Levels
Release Notes
Updated previous script to PineScript Version 5Release Notes
updated default settings to bring labels closer to candlesticks as most users will be intra day users looking at short time scales like 10min / 5min ect..Release Notes
Fixed pre-market low level as it did not always updated automatically on new day.Release Notes
Updated premarket high levels as they not automatically updated every dayRelease Notes
added moving averages to key levelsRelease Notes
Added Opening Range Breakout as another key level that can be used as support and resistance when day tradingRelease Notes
Allow users to specify time range for ORB. Highest timeframe one can view the ORB is 2 hours.Release Notes
Added Current Week and Previous week Levels, Updated labels on graphs and general housekeeping on some of the code.Release Notes
update labels default distance from chartRelease Notes
Updated Pre Market high level as it was not updating correctly Release Notes
Added price to levelsReplaced static labels with dynamic daily labels
Added Daily 100 SMA level
Moved labels to right side of line
Replaced 'short hand' labels with ability to hide labels
Ability to hide price
Code cleanup
Release Notes
re-introduce Shorthand labels back instead of hiding labels.Release Notes
corrected bug in lines being drawnRelease Notes
Choice to move labels to top of line or right of lineUpdated ORB to work with Futures
Release Notes
added Last Month Levelsremoved Current Weekly Levels
Release Notes
updated Monthly Levels (Was showing current levels instead of last month levels)updated the ORB label
Release Notes
updated levels to work with cryptocurrency ticketsOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.