PROTECTED SOURCE SCRIPT
Mis à jour Position Size Calculator

This indicator is a Position Size Calculator designed for stock traders. It calculates the optimal number of shares, investment amount, and potential risk (in ₹) based on your account size, selected risk percentage (0.05% to 0.20%), entry price, stop loss, and brokerage charges. The output is neatly displayed in a table on the chart, helping you manage risk and position sizing efficiently while trading.
Notes de version
This indicator is a Position Size Calculator designed for stock traders. It calculates the optimal number of shares, investment amount, and potential risk (in ₹) based on your account size, selected risk percentage (0.05% to 0.20%), entry price, stop loss, and brokerage charges. The output is neatly displayed in a table on the chart, helping you manage risk and position sizing efficiently while trading.Notes de version
The Position Size Calculator is a risk management tool that helps traders calculate the ideal position size, investment amount, and potential risk in rupees based on account size and stop-loss method.✅ Key Features:
Entry Based on Current Price:
Automatically sets the entry price using the current market price (close) for instant decision-making.
Stop Loss Mode Selection:
Choose between Low of Day (LOD) or a Fixed % Stop Loss to suit your risk strategy.
Dynamic Stop Loss % Calculation:
Automatically calculates the actual stop-loss percentage for LOD-based exits.
Capital Risk Configuration:
Define your risk per trade as a percentage of account size (e.g., 0.2%) to maintain consistent risk exposure.
Delivery Cost Adjustment:
Incorporates brokerage cost into risk calculations for more accurate estimations.
Automated Position Sizing:
Calculates:
Number of shares
Investment amount
Risk in rupees
…all based on your risk preferences and stop-loss type.
Tabular Summary Display:
A clean table shown on the chart's bottom-right corner, summarizing:
Risk %
Stop Loss (₹ & %)
Entry Price
Number of shares
Capital investment
Rupee risk
🧾 Conclusion:
This indicator simplifies risk-based position sizing using either the current price and flexible stop-loss strategies. It's ideal for traders who want disciplined entries and controlled capital exposure, especially in delivery trading.
Notes de version
Changelog:Manual Entry Mode
Allows setting a custom entry price via settings or by dragging a green line on the chart.
Manual Stop Loss Mode
Set SL via input or drag a red line directly on the chart.
Draggable Entry & SL Lines with Labels
Easily adjust prices and view live labels on the chart.
Smart Number Formatting
Table values now use K, L, or Cr for better readability.
Table Position Option
Choose where the table appears: top/bottom left/right.
⚠️ Note
If using Manual Entry or Manual SL, you must adjust prices manually after changing symbols (a TradingView limitation).
Script protégé
Ce script est publié en source fermée. Toutefois, vous pouvez l'utiliser librement et sans aucune restriction - en savoir plus ici.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script protégé
Ce script est publié en source fermée. Toutefois, vous pouvez l'utiliser librement et sans aucune restriction - en savoir plus ici.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.