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!
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.