This condition reads close directly against the nearest active
zone's high and low. With evaluate: on_tick, close is the live
1-minute close - so the condition fires the moment price ticks into
the zone, not at the next bar close.
Shape
{
"type": "price_in_supply_demand_zone",
"zone": "demand",
"tolerance_pct": 0.1,
"evaluate": "on_tick"
}Params
zone-demandorsupply.- tolerance percent - optional padding around the zone.
0(default) = strict inside.0.1= 0.1% padding above the high and below the low. evaluate-on_close(default) oron_tick. For zone-touch entries, on_tick is almost always what you want.
Requires the SUPPLY_DEMAND indicator
The zone boundaries come from the
Supply/Demand indicator.
Declare it in the strategy's indicators list. The condition
returns false when no zone of the requested type is currently
active.
vs supply_demand_zone
supply_demand_zone reads a precomputed closed-bar boolean ("did the bar's close happen to land inside the zone?"). It's correct for on_close strategies but slow to react.
price_in_supply_demand_zone reads the zone bounds directly against
live price. With on_tick it fires intra-bar.
