OPEN-SOURCE SCRIPT
Telah dikemas kini 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.
Nota Keluaran
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.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.