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!
保護スクリプト
このスクリプトのソースコードは非公開で投稿されています。 無料かつ制限なしでご利用いただけます ― 詳細についてはこちらをご覧ください。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。
保護スクリプト
このスクリプトのソースコードは非公開で投稿されています。 無料かつ制限なしでご利用いただけます ― 詳細についてはこちらをご覧ください。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。