SATTAM | CRT+TBSOVERVIEW
A rule-based implementation of Candle Range Theory (CRT) combined with Turtle Body Soup (TBS). It reads the setup on a higher timeframe, requires a key level for context, waits for a liquidity sweep, then marks the entry and manages the trade on your current chart.
HOW IT WORKS
Seven stages are evaluated in order. A failure at any stage cancels everything downstream.
1. Higher timeframe selection — automatic pairing (a 5m chart reads 4H, a 1H chart reads Daily), or set manually
2. Key level detection — Old High, Old Low, Order Block, Fair Value Gap
3. CRT detection — accumulation, manipulation, distribution
4. Time filter — configurable blocked hours
5. TBS confirmation — a body sweep of prior liquidity plus a reversal close
6. Entry model — Model #1, CISD, or MSS+FVG
7. Trade management — stop, three targets, breakeven
THE CRT SEQUENCE
Accumulation — one candle defines the range; its high becomes CRH, its low CRL.
Manipulation — a later candle wicks through the boundary but closes back inside. Direction and target are set here.
Distribution — price travels toward the opposite side.
The decisive rule: the break is made by the wick, with the close returning inside. A close beyond the range is a genuine breakout, not a trap — the setup is invalidated and labelled a reverse CRT.
Four CRT types are classified automatically. The fourth, where price is swept twice, is flagged as a caution and draws its T.S level.
The manipulation is drawn as a zone spanning the candles that carried price past the level and back, so the depth of the sweep is visible rather than implied.
KEY LEVELS
A CRT in isolation is treated as insufficient — the methodology names a missing key level as a primary failure cause. Confluence is required by default and can be disabled.
Display toggles for each zone type control drawing only. Hidden zones are still detected, still satisfy confluence, and still count toward the zone cap. Hiding a zone type never changes which signals fire.
TURTLE BODY SOUP
Two conditions together: a candle closes beyond a prior swing (the sweep is made by the body, not the wick), and a subsequent candle closes back beyond the last opposing candle.
ENTRY MODELS
Model #1 — a full candle closes beyond the previous candle; entry at that close.
CISD — the opening level of the last directional leg is broken; entry on the break.
MSS + FVG — structure breaks with displacement leaving a gap; entry from the gap on the retrace.
All three can run together, or one can be selected. Each fires once per setup.
TRADE MANAGEMENT
Stop sits beyond the manipulation and sweep extremes with an ATR buffer.
Targets follow the range rather than fixed risk multiples:
TP1 — the range midpoint, the 50% level the methodology marks in its diagrams
TP2 — the opposite extreme, the target the methodology names; risk-to-reward is measured here
TP3 — an extension beyond the range, by a configurable multiple
A target that does not sit beyond the entry is dropped rather than drawn behind price. Once TP1 trades through, the stop moves to entry. The stop is checked before the targets on each bar, so a bar touching both is reported as the loss.
ADDITIONAL MODULES
Accumulation and Distribution — detects range compression and classifies it by which way price finally leaves.
Sweep — marks wick raids on internal pivots that no close has broken, with a cooldown so the same area is not reported repeatedly.
Daily Bias — previous day and previous week high and low, each anchored to the candle that made it and extended with price, plus unmitigated swing points.
DASHBOARD AND ALERTS
An on-chart table reports the higher timeframe in use, CRT stage and type, direction, CRH and CRL, the three targets, live trade state, key level type, active entry model, daily bias, and time filter status.
Seventeen alert conditions cover every stage from CRT formation through target completion.
REPAINTING
Higher timeframe data is requested with a one-bar offset so only closed higher timeframe candles are used. Signals are evaluated on bar close by default. The script does not repaint under these settings. Disabling the bar-close option allows intrabar signals, which can change before the candle completes — this is stated in the setting's tooltip.
NOTES
The blocked-hours defaults follow the source methodology, which does not state a reference timezone. The timezone input therefore defaults to New York and should be adjusted to your own reference.
Interface labels are bilingual. Text drawn on the chart switches between Arabic and English; setting names show both, because Pine requires input titles to be known at compile time.
This script implements the CRT+TBS methodology as published by its original author. Credit for the underlying concepts belongs to that source; the Pine implementation is my own.
This is an analysis tool. It organises a discretionary method into explicit rules and visible states — it does not predict outcomes and is not a signal service. Position sizing and risk management remain entirely the responsibility of the user. Test on historical data and in simulation before applying to a live account.
نظرة عامة
تطبيق قائم على القواعد لنظرية نطاق الشمعة (CRT) مدمجاً مع حساء جسم السلحفاة (TBS). يقرأ الإعداد على فريم كبير، ويشترط منطقة اهتمام، وينتظر سحب السيولة، ثم يحدد الدخول ويدير الصفقة على شارتك.
آلية العمل
سبع مراحل متسلسلة. فشل أي مرحلة يُلغي ما بعدها.
١. اختيار الفريم الكبير — ترابط تلقائي حسب جدول المنهج، أو يدوي
٢. رصد مناطق الاهتمام — قمة سابقة، قاع سابق، أوردر بلوك، فجوة سعرية
٣. رصد الـCRT — تجميع، تلاعب، توزيع
٤. فلتر الأوقات الممنوعة
٥. تأكيد الـTBS
٦. مودل الدخول
٧. إدارة الصفقة
تسلسل الـCRT
تجميع — شمعة تحدد النطاق، قمتها CRH وقاعها CRL.
تلاعب — شمعة لاحقة يخترق ويكها الحد ثم يعود الإغلاق داخل النطاق. هنا يُحدَّد الاتجاه والهدف.
توزيع — السعر يقصد الطرف المقابل.
القاعدة الحاسمة: الاختراق بالويك والإغلاق راجع داخل النطاق. أما الإغلاق خارجه فاختراق حقيقي لا فخ — ويُلغى الإعداد ويوصف بـ«CRT عكسي».
تُصنَّف الأنواع الأربعة تلقائياً. والرابع، حيث يُسحب السعر مرتين، يُعلَّم كتحذير ويُرسم مستوى T.S الخاص به.
ويُرسم التلاعب منطقةً تغطي الشمعات التي تجاوزت الحد وعادت، فيظهر عمق السحب بدل أن يُستنتج.
مناطق الاهتمام
الـCRT وحده غير كافٍ — فالمنهج يعدّ غياب منطقة الاهتمام سبباً رئيسياً للفشل. الاشتراط مفعّل افتراضياً ويمكن إطفاؤه.
مفاتيح إظهار كل نوع تتحكم بالرسم وحده. المناطق المخفية تُرصد وتُحقق شرط الالتقاء وتُحتسب في الحد. إخفاء نوع لا يغيّر الإشارات إطلاقاً.
حساء جسم السلحفاة
شرطان معاً: إغلاق شمعة يتجاوز قمة أو قاعاً سابقاً — السحب بالجسم لا بالويك — ثم إغلاق شمعة لاحقة خلف آخر شمعة معاكسة.
مودلات الدخول
Model #1 — إغلاق شمعة كاملة خلف السابقة، والدخول عند ذلك الإغلاق.
CISD — كسر مستوى فتح آخر موجة، والدخول فور الكسر.
MSS + FVG — كسر بنيوي بإزاحة تخلّف فجوة، والدخول من الفجوة عند الارتداد.
تعمل الثلاثة معاً أو يُختار واحد. كل مودل يُطلق مرة واحدة لكل إعداد.
إدارة الصفقة
الوقف خلف أقصى امتداد للتلاعب والسحب، مع هامش محسوب بالـATR.
الأهداف تتبع الرنج لا مضاعفات ثابتة للمخاطرة:
TP1 — منتصف الرنج، وهو مستوى ٥٠٪ الذي يعلّمه المنهج في رسوماته
TP2 — الطرف المقابل، هدف المنهج المعلن، وعليه تُقاس نسبة المخاطرة للعائد
TP3 — امتداد بعد الرنج بمضاعف قابل للتعديل
الهدف الذي لا يقع خلف سعر الدخول يُهمَل بدل رسمه خلف السعر. وعند تحقق TP1 ينتقل الوقف لنقطة التعادل. ويُفحص الوقف قبل الأهداف في كل شمعة، فالشمعة التي تلمس الاثنين تُحتسب خسارة.
وحدات إضافية
التجميع والتوزيع — يرصد انضغاط النطاق ويصنّفه باتجاه خروج السعر منه.
سحب السيولة — يعلّم غارات الويك على نقاط داخلية لم يكسرها إغلاق، مع فترة تهدئة تمنع تكرار الإشارة.
الانحياز اليومي — أعلى وأدنى اليوم والأسبوع السابقين، كل مستوى مربوط بالشمعة التي صنعته وممتد مع السعر، مع نقاط التأرجح غير المستهلكة.
الجدول والتنبيهات
جدول على الشارت يعرض الفريم الكبير المستخدم، ومرحلة الـCRT ونوعه، والاتجاه، وCRH وCRL، والأهداف الثلاثة، وحالة الصفقة الحيّة، ونوع منطقة الاهتمام، والمودل النشط، والانحياز اليومي، وحالة فلتر الوقت.
سبعة عشر تنبيهاً تغطي كل مرحلة من تكوّن الـCRT حتى تحقق الأهداف.
إعادة الرسم
تُطلب بيانات الفريم الكبير بإزاحة شمعة واحدة، فلا تُستخدم إلا الشمعات المغلقة. وتُقيَّم الإشارات على إغلاق الشمعة افتراضياً. المؤشر لا يعيد الرسم بهذه الإعدادات. وإطفاء خيار الإغلاق يسمح بإشارات داخل الشمعة قد تتغيّر قبل اكتمالها، وهذا مذكور في تلميح الإعداد.
ملاحظات
الساعات الممنوعة الافتراضية تتبع المنهج المصدر، وهو لا يذكر التوقيت المرجعي. لذلك يأتي إعداد المنطقة الزمنية بتوقيت نيويورك افتراضياً، ويُضبط حسب توقيتك.
واجهة الإعدادات ثنائية اللغة. نصوص الشارت تتبدّل بين العربية والإنجليزية، أما أسماء الإعدادات فتظهر باللغتين معاً لأن Pine يشترط معرفة عناوين المدخلات وقت التصريف.
هذا المؤشر يطبّق منهجية CRT+TBS كما نشرها مؤلفها الأصلي. الفضل في المفاهيم الأساسية يعود لذلك المصدر، والتنفيذ بلغة Pine من عملي.
أداة تحليل تنظّم منهجاً اجتهادياً في قواعد صريحة وحالات مرئية — لا تتنبأ بالنتائج وليست خدمة توصيات. تحديد حجم المركز وإدارة المخاطر مسؤولية المستخدم وحده. اختبره على البيانات التاريخية وفي التداول التجريبي قبل تطبيقه على حساب حقيقي.
Indicator






