OPEN-SOURCE SCRIPT
업데이트됨 CBC Engine [MMT]

CBC Engine [MMT] is a Candle-By-Candle (CBC) Flip strategy indicator for TradingView, specifically optimized for the 3-minute chart with a 10-minute higher-timeframe (HTF) bias.
It is based on the CBC Flip method originally popularized by MapleStax. The core idea is simple yet powerful: a new directional bias is established the moment price closes beyond the previous candle’s extreme.
Core Logic – CBC Flip
Strong Flip (optional, higher accuracy):
Key Filters & Enhancements
1. Trend Environment (EMA + VWAP)
2. Dual Timeframe Bias (3m + 10m)
3. Stop Loss Logic
Visual & Usability Features
- Background Coloring: Shows the current 10m HTF bias (green = bullish, red = bearish, gray = neutral).
- EMA Cloud: Filled areas between 9/13 and 13/21 EMAs to visualize trend strength and pullbacks.
- VWAP: Session-anchored VWAP with customizable style.
- Signals:
- Dashboard: Shows 10m Bias, 3m State, EMA/VWAP environment, Current Position (Main or Bounce), Stop Loss, and Mode (Strong Flip vs All Flips).
- Session Filter: Optional intraday session (default 09:30–16:00).
Best Use Case
It is based on the CBC Flip method originally popularized by MapleStax. The core idea is simple yet powerful: a new directional bias is established the moment price closes beyond the previous candle’s extreme.
Core Logic – CBC Flip
- Bullish Flip (Long): Current candle closes above the previous candle’s High
- Bearish Flip (Short): Current candle closes below the previous candle’s Low
- If neither happens, the previous CBC state persists (no new flip).
Strong Flip (optional, higher accuracy):
- Long: Price first sweeps below the previous low (liquidity grab), then closes above the previous high.
- Short: Price first sweeps above the previous high, then closes below the previous low.
Key Filters & Enhancements
1. Trend Environment (EMA + VWAP)
- Longs are only allowed when the Slow EMA > VWAP (bullish environment)
- Shorts are only allowed when the Slow EMA < VWAP (bearish environment)
- You can also display a Pullback EMA for extra context.
2. Dual Timeframe Bias (3m + 10m)
- The 10-minute chart provides the overall bias using its own CBC state.
- Primary rule: Only take 3m flips that align with the 10m CBC bias.
- Bounce Override (very useful): If the 3m flip goes against the 10m bias, it can still fire only if price bounces off the 10m EMA band (Fast & Slow EMA) while that band is trending in the direction of the trade.
3. Stop Loss Logic
- Long SL = Lowest low of the last N candles (default N=2)
- Short SL = Highest high of the last N candles
- The SL is plotted on the chart and tracked internally. The position is invalidated if price closes beyond the SL.
Visual & Usability Features
- Background Coloring: Shows the current 10m HTF bias (green = bullish, red = bearish, gray = neutral).
- EMA Cloud: Filled areas between 9/13 and 13/21 EMAs to visualize trend strength and pullbacks.
- VWAP: Session-anchored VWAP with customizable style.
- Signals:
- Main aligned signals → Lime ▲ LONG or Red ▼ SHORT labels with SL level.
- Bounce overrides → Blue ▲ BOUNCE or Orange ▼ REJECT labels.
- Weak flips (when “Show ALL Flip Arrows” is on) → small faint triangles for context.
- Dashboard: Shows 10m Bias, 3m State, EMA/VWAP environment, Current Position (Main or Bounce), Stop Loss, and Mode (Strong Flip vs All Flips).
- Session Filter: Optional intraday session (default 09:30–16:00).
Best Use Case
- Primary setup: 3-minute chart for entries + 10-minute for bias.
- Works best in trending markets where the HTF bias is clear.
- The bounce override makes it more flexible in choppy or ranging conditions by allowing counter-bias entries when price respects the HTF EMA band.
- “Strong Flips Only” mode significantly reduces noise but gives fewer signals.
릴리즈 노트
What's New- Add setup quality rating
- Add more alerts
- Update bounce/reject logic
- Update script to Pinescript v6
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.