OPEN-SOURCE SCRIPT
Position Size 📐 DT/ST (Today's Open)

💡 Purpose:
This indicator automatically calculates intraday (DT) and swing trading (ST) position sizes based on your account capital, risk per trade, and stop-loss percentage, using today’s daily open price as the entry price reference.
⚙️ Main Functionalities:
Dynamic Position Sizing
Calculates Full size position based on the maximum risk you allow per trade.
Breaks it down into ¼ Size, ⅓ Size, and ½ Size positions for flexible scaling.
Two Distinct Trading Styles:
DT (Day Trading) – Uses your specified intraday stop-loss % (default: 2%).
ST (Swing Trading) – Uses your specified swing stop-loss % (default: 10%).
Lot Size Rounding
Automatically rounds quantities to a chosen lot size (e.g., 1 for cash equity or futures lot size for derivatives).
Customizable Table Position
Display the table anywhere on your chart: Top Right, Top Left, Bottom Right, or Bottom Left.
Optimized for Dark or Light Themes
Yellow header with black text for visibility.
Blue row labels for strategy type.
Grey background with white text for calculated values.
Live Market Adaptation
All values update in real-time as today’s daily open price changes (on new daily candles).
Works for any symbol, asset class, or time frame.
🧮 Formula:
Position Size (Full) = Max Risk ₹ / (Price × StopLoss%)
¼, ⅓, and ½ Sizes = Scaled from Full size
📌 Ideal For:
Traders who want quick, ready-to-use position sizes right on their chart.
Those who follow fixed risk-per-trade and need fast decision-making without manual calculations.
This indicator automatically calculates intraday (DT) and swing trading (ST) position sizes based on your account capital, risk per trade, and stop-loss percentage, using today’s daily open price as the entry price reference.
⚙️ Main Functionalities:
Dynamic Position Sizing
Calculates Full size position based on the maximum risk you allow per trade.
Breaks it down into ¼ Size, ⅓ Size, and ½ Size positions for flexible scaling.
Two Distinct Trading Styles:
DT (Day Trading) – Uses your specified intraday stop-loss % (default: 2%).
ST (Swing Trading) – Uses your specified swing stop-loss % (default: 10%).
Lot Size Rounding
Automatically rounds quantities to a chosen lot size (e.g., 1 for cash equity or futures lot size for derivatives).
Customizable Table Position
Display the table anywhere on your chart: Top Right, Top Left, Bottom Right, or Bottom Left.
Optimized for Dark or Light Themes
Yellow header with black text for visibility.
Blue row labels for strategy type.
Grey background with white text for calculated values.
Live Market Adaptation
All values update in real-time as today’s daily open price changes (on new daily candles).
Works for any symbol, asset class, or time frame.
🧮 Formula:
Position Size (Full) = Max Risk ₹ / (Price × StopLoss%)
¼, ⅓, and ½ Sizes = Scaled from Full size
📌 Ideal For:
Traders who want quick, ready-to-use position sizes right on their chart.
Those who follow fixed risk-per-trade and need fast decision-making without manual calculations.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。