PROTECTED SOURCE SCRIPT

CP Double Cross

14
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.

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。