PROTECTED SOURCE SCRIPT

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

287
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!

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.