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.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.