PROTECTED SOURCE SCRIPT
CBC Flip Strategy

The CBC Flip Strategy is a momentum-based trading system that identifies shifts in market control by monitoring price closes relative to previous bars' highs and lows: it flips to bullish mode when the close exceeds the prior high (indicating bulls in control) and enters a long position, or to bearish mode when the close falls below the prior low (indicating bears in control) and enters a short position, all while incorporating optional confluences like higher timeframe CBC alignment, RSI thresholds (above 50 + offset for longs, below 50 - offset for shorts), and EMA positioning (above for longs, below for shorts) to filter entries; trades are restricted to a user-defined session window and direction preferences, with exits handled via tick-based TP/SL, reversal on chart or higher timeframe CBC flips, and an optional flatten at a specified time to close all positions.
Number of Contracts: Adjust the quantity of contracts per trade (default: 1).
SL and TP Ticks: Set stop-loss (default: 12 ticks) and take-profit (default: 24 ticks) distances from entry.
Exit Strategy: Choose from TP/SL in ticks, exit on chart CBC flip (reverses on opposite signal), or exit on higher timeframe CBC flip.
Flatten All: Enable/disable flattening all positions at a customizable time (default: 16:00, with adjustable hour/minute).
Trading Session: Define the time window for allowing entries (default: 0800-1700).
Trade Direction: Select "Both" (longs and shorts), "Only Long", "Only Short", or "Towards Daily Open" (longs if below daily open, shorts if above).
Higher Timeframe CBC Confluence: Toggle use of HTF CBC alignment (default: enabled, with customizable HTF like "240").
RSI Confluence: Toggle RSI filter (default: enabled, with adjustable length=14, offset=20 for thresholds).
EMA Confluence: Toggle EMA filter (default: enabled, with adjustable length=200 for position relative to price).
Number of Contracts: Adjust the quantity of contracts per trade (default: 1).
SL and TP Ticks: Set stop-loss (default: 12 ticks) and take-profit (default: 24 ticks) distances from entry.
Exit Strategy: Choose from TP/SL in ticks, exit on chart CBC flip (reverses on opposite signal), or exit on higher timeframe CBC flip.
Flatten All: Enable/disable flattening all positions at a customizable time (default: 16:00, with adjustable hour/minute).
Trading Session: Define the time window for allowing entries (default: 0800-1700).
Trade Direction: Select "Both" (longs and shorts), "Only Long", "Only Short", or "Towards Daily Open" (longs if below daily open, shorts if above).
Higher Timeframe CBC Confluence: Toggle use of HTF CBC alignment (default: enabled, with customizable HTF like "240").
RSI Confluence: Toggle RSI filter (default: enabled, with adjustable length=14, offset=20 for thresholds).
EMA Confluence: Toggle EMA filter (default: enabled, with adjustable length=200 for position relative to price).
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.