OPEN-SOURCE SCRIPT
CISD

**CISD – Continuous Implied Structure Displacement (Body-Based Version)**
CISD displays structure levels derived from a simple sequence:
1. A valid pullback (based on body closes only)
2. Followed by a displacement (a body-based break in the opposite direction)
When these two conditions occur, the script prints a CISD level at the pullback’s reference price.
Each CISD level extends forward until price closes through it using body logic only.
---
### How this version works
**1. Pullback Detection (Body-Only)**
A pullback is recognized when a candle’s body meaningfully retraces the previous candle’s body.
Tiny candles are filtered out, reducing noise and improving level quality.
**2. CISD Formation**
After a valid pullback, if price breaks structure in the opposite direction using body highs/lows only:
- A **Bullish CISD** level is created from a bearish pullback
- A **Bearish CISD** level is created from a bullish pullback
**3. CISD Completion**
When a CISD level is violated by a full body close beyond the level, the CISD is marked completed and a new opposite CISD becomes eligible.
**4. Visual Output**
- Clean horizontal CISD levels
- Single active level per direction (unless extended manually)
- Labels marked “CISD” for clarity
---
### What this indicator is *not*
This tool does **not** generate trade signals or provide financial advice.
It is a visual mechanism for observing how price reacts to pullback-based structural shifts using body logic only.
---
### Intended Use
CISD can help users:
- Track transitions in short-term structure
- Identify when pullbacks lead to meaningful displacement
- Observe reaction points derived strictly from body behavior (ignoring wicks)
The logic is minimalistic and designed for clean, uncluttered structure observation.
CISD displays structure levels derived from a simple sequence:
1. A valid pullback (based on body closes only)
2. Followed by a displacement (a body-based break in the opposite direction)
When these two conditions occur, the script prints a CISD level at the pullback’s reference price.
Each CISD level extends forward until price closes through it using body logic only.
---
### How this version works
**1. Pullback Detection (Body-Only)**
A pullback is recognized when a candle’s body meaningfully retraces the previous candle’s body.
Tiny candles are filtered out, reducing noise and improving level quality.
**2. CISD Formation**
After a valid pullback, if price breaks structure in the opposite direction using body highs/lows only:
- A **Bullish CISD** level is created from a bearish pullback
- A **Bearish CISD** level is created from a bullish pullback
**3. CISD Completion**
When a CISD level is violated by a full body close beyond the level, the CISD is marked completed and a new opposite CISD becomes eligible.
**4. Visual Output**
- Clean horizontal CISD levels
- Single active level per direction (unless extended manually)
- Labels marked “CISD” for clarity
---
### What this indicator is *not*
This tool does **not** generate trade signals or provide financial advice.
It is a visual mechanism for observing how price reacts to pullback-based structural shifts using body logic only.
---
### Intended Use
CISD can help users:
- Track transitions in short-term structure
- Identify when pullbacks lead to meaningful displacement
- Observe reaction points derived strictly from body behavior (ignoring wicks)
The logic is minimalistic and designed for clean, uncluttered structure observation.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน