PROTECTED SOURCE SCRIPT

CP Double Cross

17
CakeProfits Double Moving Average Signals

This indicator is a refined double Special Moving Average system with integrated trend confirmation, cooldown suppression, alerts, and visual feedback.

🔹 Core Features

Double Special Moving Averages (Fast & Slow) to identify precise crossovers.

Trend EMA filter (default 800 EMA) to align signals with higher-timeframe trend.

Signal Suppression / Cooldown to avoid back-to-back false signals (user-defined bars).

Long & Sort Labels plotted directly on the chart (Long = Go long, Short = Go Short).

Alerts ready for both bullish and bearish crossover confirmations.

Background Visuals (Toggle) – highlights active cooldown zones with soft green/red shades, easily switched ON/OFF.

🔹 How It Works

A Bullish Signal (Long) fires when the Fast MA crosses above the Slow MA, slope is confirmed, and price is above the trend EMA.

A Bearish Signal (Short) fires when the fast MA crosses below the slow MA, slope is confirmed, and price is below the trend EMA.

After a signal, the indicator enters a cooldown period (number of bars set by the user) where no new signals can appear, helping to reduce noise.

During cooldown, the chart background can be shaded (green for bullish, red for bearish) for quick visual confirmation.

🔹 Inputs

MA Lengths (Slow & Fast)

Trend EMA Length & Source

Bars to Suppress Signals (cooldown)

Background Toggle & Colors

✅ Best used as a confirmation tool for entries/exits alongside broader strategy and risk management.

⚠️ Disclaimer: This script is for educational purposes only and not financial advice.

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.