Range Levels
Download scriptThis script is designed to automatically identify and display specific price boundaries on your trading chart based on a range you define. Instead of manually guessing where key levels might be, the tool scans your market history to find significant price "zones" that meet your specific criteria.
How It Works
1. Customizable Measurement Units The tool allows you to define the "Range" in two different ways, depending on your trading style:
- Points: You can set a fixed number of price points (e.g., a 500-point move).
- Percentage: You can set a specific percentage of price movement (e.g., a 1% move).
2. The Scanning Process Once the script is active, it performs a dynamic search of the historical data available on your chart. It looks backward through time to find the most recent instance where the price fluctuated by the amount you specified in your settings.
For example, if you set a "Percentage" range of 5%, the script scans the history until it finds a period where the gap between the highest high and the lowest low reached at least 5%.
3. Automatic Level Plotting As soon as the script identifies this specific historical range, it automatically draws two horizontal lines on your chart:
- Range Max: A line marking the top of that identified price zone.
- Range Min: A line marking the bottom of that identified price zone.
These lines are visually distinct (dotted by default) and can be customized in color through the settings menu.
4. Smart Reset Logic The tool is designed to be "live." It constantly monitors current price action. If the market moves so far that the current price breaks outside of the previously identified Max or Min levels, the script recognizes this as a new market phase. It will then automatically clear the old lines and begin scanning again to find the next valid range that meets your requirements.
Summary of Benefits
- Objective Analysis: Removes human bias by identifying levels based on hard data rather than "feeling."
- Dynamic Updates: Automatically updates as the market moves, ensuring the levels shown are always relevant to current price action.
- Visual Clarity: Instantly identifies the boundaries of significant historical volatility, helping you see where the market has previously reacted.
ÿþ# p r o p e r t y c o p y r i g h t "