OPEN-SOURCE SCRIPT
Updated

PumpC CBC EMAs + VWAP

333
PumpC CBC EMAs + VWAP Indicator for Tradingview

Introduction
This is an indicator for the Candle By Candle (CBC) Flip strategy, based on the CBC Flip concept taught by MapleStax and inspired by the original CBC Flip indicator by AsiaRoo. The CBC Flip strategy is a simple yet effective approach to gauge if bulls or bears are in control for any given candle.

The logic behind the CBC Flip is as follows:

  • Bullish Flip: If the most recent candle’s close is above the previous candle’s high, bulls have taken control.
  • Bearish Flip: If the most recent candle’s close is below the previous candle’s low, bears are now in control.
  • No Flip: If neither condition is met, the previously dominant side (bulls or bears) remains in control until one of these conditions is satisfied, flipping the market sentiment—hence the name CBC Flip.


The PumpC CBC EMAs + VWAP Indicator enhances this simple strategy by adding trend confirmation filters using EMAs and VWAP, along with time-restricted signal generation and fully customizable alerts.

What Does This Indicator Do?
The PumpC CBC EMAs + VWAP Indicator helps traders identify CBC Flips to spot potential trend continuations or reversals. It combines candlestick logic, trend filters, and time-based restrictions to provide high-probability trade signals.

  • CBC Flip DetectionBullish Flip: Current close is above the previous candle’s high.
    Bearish Flip: Current close is below the previous candle’s low.
    Strict Flips: Require a liquidity sweep for higher accuracy.
    All Flips: Looser conditions that generate more frequent signals.
  • EMA and VWAP Trend Confirmation (Optional)
    This filter ensures that long signals only trigger when the Slow EMA is above the VWAP, confirming an upward trend. For short signals, the Slow EMA must be below the VWAP.
  • Time-Based Filtering
    The indicator allows you to set a specific trading window (e.g., 9:00 AM to 3:00 PM), helping you avoid low-volume or high-risk periods.
  • Visual Labels and Alerts
    • Labels: Arrows (▲ for long and ▼ for short) mark CBC Flip points on the chart.
    • Alerts: Fully customizable notifications for each signal type, based on your chosen filters.


Key Features
  • CBC Flip Detection: Identify potential reversals and trend continuations.
  • Strict vs. All Flips: Choose between higher-accuracy strict flips or more frequent all flips.
  • EMA-to-VWAP Filter: Optional trend confirmation filter to reduce false signals.
  • Customizable EMAs and VWAP: Configure lengths and colors for visual clarity.
  • Time-Restricted Signals: Focus on your preferred trading session.
  • Custom Alerts: Notifications for long and short signals based on filter settings.


Credits and Inspiration
  • The CBC Flip strategy was created by MapleStax.
  • This indicator is inspired by the original CBC Flip indicator by AsiaRoo.
  • Additional enhancements include EMA-to-VWAP filtering, custom alerts, and time-restricted signal generation for a more comprehensive trading experience.


Risks and Disclaimer
This indicator is for educational purposes only and does not constitute financial advice.
Trading involves significant risk, and past performance does not guarantee future results. Always test this indicator in a simulated environment before live trading.
Release Notes
📌 Update Notes – Version X.X (Time Filter Toggle Added)
This update introduces a new input setting that allows users to enable or disable the time-based filtering of trade signals. Previously, the script would always filter signals based on the selected time range (e.g., 9:00–15:00). With this update, you can now toggle the time range filter on or off, giving you more flexibility to analyze setups across the full trading day or only within your preferred trading session.

🔄 What’s New:

✅ Added "Enable Time Range Filter" checkbox under the Time Filter section.
✅ When enabled, the script filters signals based on the selected Start and End Hour.
✅ When disabled, the script ignores time restrictions and evaluates conditions on all bars.
This enhancement allows traders to easily backtest or use the strategy in full-session or intraday modes based on their preferences — without altering the script code.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.