PROTECTED SOURCE SCRIPT
CPR + 44 MA Breakout Alert with Qty (Crypto, INR Risk)

CPR + 44 EMA Breakout Alert with Quantity (Crypto | INR Risk-Based)
This indicator identifies high-probability **breakout and breakdown trades** based on two powerful intraday levels: the **Central Pivot Range (CPR)** and the **44-period Exponential Moving Average (EMA).
📌 Key Features:
Reference Candle Logic: The script first marks a "reference candle" — a candle that breaks out above or below both CPR and 44 EMA from the opposite side.
* Bullish Reference: Closes above both CPR top (TC) and 44 EMA from below.
* Bearish Reference: Closes below both CPR bottom (BC) and 44 EMA from above.
Signal Alerts:
* A **Buy signal** is triggered when a future candle **crosses above the high** of the bullish reference candle.
* A **Sell signal** is triggered when a future candle **crosses below the low** of the bearish reference candle.
* Position Sizing (Crypto):
* Input your **risk in INR**, and the indicator calculates your **position size in crypto quantity** using the live price and risk-based stop-loss distance.
* Includes two inputs: `riskINR` (default ₹600) and `rewardINR` (default ₹1000).
* Converts INR to USD using a user-defined exchange rate (default 85).
* Visual Markings:
* Buy/Sell signals are shown using **plotshapes**.
* Quantity is displayed near the candle using a dynamic label like: `Buy Qty: 4.25`.
🔔 Alerts:
Built-in alert conditions for both Buy and Sell entries. You can use these to automate or notify your trades, with messages formatted for crypto symbols (e.g., `BTCUSD.P Buy`).
** Important Note: ** Mainly Built for the Delta Exchange Broker in India for ALGO Trade Signals for automated trading whenever the alert is triggered. You can customise it for just getting the alerts or according to your needs. Just message me to get the Pine Script!
This indicator identifies high-probability **breakout and breakdown trades** based on two powerful intraday levels: the **Central Pivot Range (CPR)** and the **44-period Exponential Moving Average (EMA).
📌 Key Features:
Reference Candle Logic: The script first marks a "reference candle" — a candle that breaks out above or below both CPR and 44 EMA from the opposite side.
* Bullish Reference: Closes above both CPR top (TC) and 44 EMA from below.
* Bearish Reference: Closes below both CPR bottom (BC) and 44 EMA from above.
Signal Alerts:
* A **Buy signal** is triggered when a future candle **crosses above the high** of the bullish reference candle.
* A **Sell signal** is triggered when a future candle **crosses below the low** of the bearish reference candle.
* Position Sizing (Crypto):
* Input your **risk in INR**, and the indicator calculates your **position size in crypto quantity** using the live price and risk-based stop-loss distance.
* Includes two inputs: `riskINR` (default ₹600) and `rewardINR` (default ₹1000).
* Converts INR to USD using a user-defined exchange rate (default 85).
* Visual Markings:
* Buy/Sell signals are shown using **plotshapes**.
* Quantity is displayed near the candle using a dynamic label like: `Buy Qty: 4.25`.
🔔 Alerts:
Built-in alert conditions for both Buy and Sell entries. You can use these to automate or notify your trades, with messages formatted for crypto symbols (e.g., `BTCUSD.P Buy`).
** Important Note: ** Mainly Built for the Delta Exchange Broker in India for ALGO Trade Signals for automated trading whenever the alert is triggered. You can customise it for just getting the alerts or according to your needs. Just message me to get the Pine Script!
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.