OPEN-SOURCE SCRIPT
Güncellendi

LotSize Calculator - psyplo

88
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.

Sürüm Notları
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.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.