OPEN-SOURCE SCRIPT
已更新 LotSize Calculator - psyplo

This indicator provides a convenient on-chart lot size calculator designed to assist traders with precise position sizing based on account balance, risk tolerance, and trade parameters.
Key Features:
Custom Account Sizing: Define your account size and risk percentage per trade.
Flexible Risk Units: Choose between percentage or fixed currency risk models.
Support for Multiple Currencies: Select from a wide range of currencies including USD, EUR, GBP, INR, and even crypto options like USDT.
Dual Sizing Methods: Configure position size using either quantity or lot-based models, with optional rounding.
Visual Trade Levels: Displays configurable entry, stop loss (SL), and take profit (TP) lines on the chart.
Style Customization: Customize the color, line style, and visibility of each level for better chart readability.
Ideal Use Case:
Designed for manual traders seeking real-time clarity and consistency in risk management without needing to calculate lot size externally.
Disclaimer:
This tool is for informational purposes only. Always practice responsible risk management and perform due diligence before trading.
Key Features:
Custom Account Sizing: Define your account size and risk percentage per trade.
Flexible Risk Units: Choose between percentage or fixed currency risk models.
Support for Multiple Currencies: Select from a wide range of currencies including USD, EUR, GBP, INR, and even crypto options like USDT.
Dual Sizing Methods: Configure position size using either quantity or lot-based models, with optional rounding.
Visual Trade Levels: Displays configurable entry, stop loss (SL), and take profit (TP) lines on the chart.
Style Customization: Customize the color, line style, and visibility of each level for better chart readability.
Ideal Use Case:
Designed for manual traders seeking real-time clarity and consistency in risk management without needing to calculate lot size externally.
Disclaimer:
This tool is for informational purposes only. Always practice responsible risk management and perform due diligence before trading.
發行說明
This indicator provides a convenient on-chart lot size calculator designed to assist traders with precise position sizing based on account balance, risk tolerance, and trade parameters.Key Features:
Custom Account Sizing: Define your account size and risk percentage per trade.
Support for Multiple Currencies: Select from a wide range of currencies including USD, EUR, GBP, INR, and even crypto options like USDT.
Dual Sizing Methods: Configure position size using either quantity or lot-based models, with optional rounding.
Visual Trade Levels: Displays configurable entry, stop loss (SL), and take profit (TP) lines on the chart.
Style Customization: Customize the color, line style, and visibility of each level for better chart readability.
Ideal Use Case:
Designed for manual traders seeking real-time clarity and consistency in risk management without needing to calculate lot size externally.
Disclaimer:
This tool is for informational purposes only. Always practice responsible risk management and perform due diligence before trading.
Release Notes: Session 2025-06-23
Added
- Risk-reward ratio, profit in account currency, and risk in account currency displayed in the table.
- Toggle options to selectively show/hide each row in the table (e.g., Entry, TP, SL, Profit, Risk, RR, Lots/Qty).
- Table color customization for each individual row via user-defined input.
- Tooltip descriptions for most input fields to improve user understanding.
- Currency formatting logic to display ₹, $ or currency code appropriately.
Changed
- Currency conversion function rewritten to avoid runtime errors and ensure compatibility across various asset types and user-selected currencies.
- Risk Unit input section removed; now always assumes percentage-based risk calculation.
- Input sections refactored and organized into logical groups:
- Trade Sizing
- Line Settings (subdivided into Colors, Type & Thickness, Visibility)
- Table Settings (General, Toggles, Colors)
- Reordered script structure so all variables are computed before being used in the table logic (to avoid undeclared variable errors).
Fixed
- Syntax errors related to line breaks and mismatched return types.
- Table disappearing or failing to display when non-default currency was selected.
- Redundant or invalid parameter entries in table.cell() functions.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。