PINE LIBRARY

ConsolidationZonesLibrary

27
ConsolidationZonesLibrary
Description:
- Encapsulates the consolidation zone detection from ConsolidationZones.pine.
- Uses SMA(minZoneLength) ± ATR(atrLength) to define the zone boundaries when
all last `minZoneLength` bars stay within [sma - atr, sma + atr].
- Creates and updates box objects representing consolidation zones and removes
boxes that fall outside the last `showLast` bars window.

Usage (from an indicator/strategy):
import rithsilanew2020/ConsolidationZonesLibrary/1
array<box> czBoxes = ConsolidationZonesLibrary.render_zones(20, 200, 500, color.new(color.gray, 50))
The function will handle box creation/update/deletion automatically.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.