LiqLines Pro: Auto & Manual Percentage Grid
Description:
The LiqLines Pro indicator is a pure structural mapping tool designed to plot dynamic, percentage-based reference levels for any chosen asset. It allows traders to visualize exact mathematical distances from specific top and bottom coordinates, either automatically or via manual selection.
Core Mechanics and Calculation Engine:
1. Auto-Detection vs. Manual Level Selection
Auto-Detection (Default): By default, the script utilizes the ta.highest() and ta.lowest() functions over a user-defined lookback period (default 500 bars). It identifies the macro structural extremes within this window and projects the percentage grid based on those prices.
Manual Level Selection (Anchoring): The core feature of this tool is its integration of Pine Script's input.price() functionality. Users can override the auto-detection engine to set custom origin points. By selecting the indicator's "Settings" or "Reset Inputs", users can use their mouse to click directly on the chart, manually selecting the top or bottom level at any specific wick, breakout candle, or structural gap. Furthermore, users can freely adjust these levels by simply dragging and dropping the anchor lines up or down to new areas on the chart. The entire grid instantly recalculates based on this newly selected price. The script also includes a parity-check safety measure; if the asset is changed and the selected level falls completely out of bounds, it defaults back to auto-detection seamlessly.
2. Modular Percentage Tiers & Customization
Instead of relying on standard fixed ticks, the script calculates strict percentage deviations (e.g., +1.00%, +5.00%, -10.00%) from the active top and bottom levels. To maintain a clean chart interface, users have full control to toggle individual percentage lines on or off for both upward and downward directions. This allows traders to fully customize their grid, showing only the specific percentage levels they need for their strategy. By default, only the micro-levels (1% to 10%) are enabled .
3. Dynamic Proximity Alerts
The script includes a built-in mathematical proximity detector. It continuously calculates the absolute distance between the current close price and the plotted percentage lines. If the price enters a proximity threshold (strictly defined as a 0.1% distance from the level), the specific line and its corresponding label dynamically change color to Yellow. This provides visual feedback when price interacts with a specific percentage deviation zone.
Map your own structural levels and define your own trading zones…
Chỉ báo






















