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 อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน