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.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.