4C Daily Levels Suite + Premarket High/Low

This '4C Daily Levels Suite + Premarket High/Low' indicator is a clean way to automatically plot important daily levels including:
Prior Day High
Prior Day Low
Prior Day Close
50% level between Prior High/Low
Today's Open
Today's Premarket Low+High

This Daily Levels indicator is unique in its ability to:
-Plot all of the daily level PLUS premarket high/low levels (extended hours must be turned ON)
-Can hide past days levels, only plotting levels on the current day, to keep chart cleaner
-Can extend line levels right or fullscreen
-Plots the level price at each level on the chart
-Can show/hide price levels labels
-Can add supplemental premarket levels plot to show levels being formed during the premarket time period
-Coded with vs plot so dashed lines are available as a style
-Automatically hides the indicator if the timeframe selected is Daily or greater


Default mode, with extended hours showing:

With supplemental premarket plot showing:

Default mode without extended hours showing:

Showing past day’s levels

Extend lines to fullscreen

Some parts of this code were adapted from 'pd Levels' by CryptoCurl
リリースノート: Small update - moved each level's label positioning slightly further to the right to improve appearance
リリースノート: Update 04/26/22
-Added settings input to be able to adjust label positioning. Default value is 10 bars to the right
リリースノート: Update 042822
*Fixed bug where the Premarket High and Low labels did not show the correct price. Thanks to @Kielbasa for finding the bug
リリースノート: Update
Small code reorganizing.
Also updating the main chart to reflect recent bug fix

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。