Added Levels
• After Hours
• Overnight
• Custom
Added Price Proximity Features
• Line Length Override
• Toggle Visibility
• ATR Zones
Other Enhancements
• Refactored arrays for better variable and object management.
• Converted the market hours settings to be TV's session input (their standard time entry field).
• Logic adjustments and max_bar_back adjustments.
• Minor bug fixes.
- - -
All the new levels / features are off by default.
After Hours will capture the high / low after regular trading hours and before the session ends. If "Mkt Hrs Only" is disabled, and the sessions highs / lows occur during this time, "Yesterdays Hi / Lo" and "After Hours" levels will overlap. For this reason, if a After Hours level is identical to Yesterday, the After Hours level will be hidden.
Overnight will capture the high / low before midnight when a session begins after regular trading hours. Sessions beginning after trading hours is not a thing for most securities (thus will not show on most securities), but does occur for things like futures and crypto.
Custom have been added. You are able to set a specific level value in the settings, or drag the level up / down on the chart.
A feature previously introduced was an ability to give lines a maximum length. This truncation aims to help keep charts simple and clean. To this end, a follower suggested having truncated lines extend back to their origin when price was within it's proximity. To accomplish this, two Price Proximity settings are being introduced.
Range of Proximity ( % ) defines how close price needs to be for an enabled proximity settings to take effect. This is a percentage (not monetary) value. For example, how close price should be before a truncated line extends back to its origin.
Line Length Override will extend a line back to its origin, when price is proximal to a given line and "Max Line Length" is enabled.
Given the original intention of truncating lines (decluttering charts), and now having a method to detect price proximity, I extended the concept further.
Toggle Visibility will hide levels by default, and only show a level when price is proximal to a given line. Useful for those who only want to be reminded of an approaching while trading, but otherwise don't want to see it.
This price proximity work also spurred another idea. Price rarely interacts with a key level exactly. In practice they are more like zones, due to order execution variance, better known as volatility. Because the Average True Range (ATR) measures volatility, I decided to pair ATR with price proximity to get a better sense of a given levels area of opportunity.
ATR Zones will show a 5 bar ATR zone around the level, when price is proximal to a given line. Half the ATR is above the line, and half the ATR is below the line.
- - -
General Note
The intention of this indicator is to compliment your trading strategy. It is not intended to be a trading strategy in and of itself, but rather make something you are already doing more convenient. While turning everything on is unlikely to help you, enabling only the things that already have your attention makes chart contextualization so much faster. Happy trading.