Threshold-Based Distance:
You define a threshold percentage (threshold_percent) to specify what "far" means (e.g., 2%).
The script calculates the absolute distance between:
Close and Open
Close and High
Close and Low
If any of these distances exceed the specified threshold, the condition is triggered.
Visual Markers:
Green markers (triangle up) indicate the close is far from the open.
Red markers (triangle down) indicate the close is far from the high.
Blue markers (triangle down) indicate the close is far from the low.
These markers make it easy to spot significant price movements on the chart.
Customizable Alerts:
If enabled, alerts are triggered when any of the conditions are met.
Alerts are designed to notify you in real time if a candle closes far from the open, high, or low.