PROTECTED SOURCE SCRIPT
Lot Size Calculator by MohammadReza

Overview:
Size your position from your risk in USD and the two lines you place on the chart (Entry & Stop). The script measures that price distance, draws Risk/Reward boxes, and shows a compact table with Risk, Entry, Stop, Target (from R/R), Lots, and Pips—so you instantly know what lot size to use.
How to use:
1. Add the indicator to an XAU chart.
2. Set “Risk $” in Inputs.
3. Place/adjust the Entry and Stop lines on the chart.
4. Read “Lots” in the table and trade with consistent sizing.
Inputs:
* Risk $ (your dollar risk per trade)
* Entry Price and Stop Loss (can be adjusted on chart)
* R/R (auto-calculates Target)
* Appearance options for risk/reward boxes, table position/colors, and layout
Notes:
* Gold-only display (XAU).
* Table rows can be toggled (Risk, Entry, Stop, Target, Lots, Pips).
* Fully customizable colors and widths.
* Educational tool; verify contract specs with your broker.
Size your position from your risk in USD and the two lines you place on the chart (Entry & Stop). The script measures that price distance, draws Risk/Reward boxes, and shows a compact table with Risk, Entry, Stop, Target (from R/R), Lots, and Pips—so you instantly know what lot size to use.
How to use:
1. Add the indicator to an XAU chart.
2. Set “Risk $” in Inputs.
3. Place/adjust the Entry and Stop lines on the chart.
4. Read “Lots” in the table and trade with consistent sizing.
Inputs:
* Risk $ (your dollar risk per trade)
* Entry Price and Stop Loss (can be adjusted on chart)
* R/R (auto-calculates Target)
* Appearance options for risk/reward boxes, table position/colors, and layout
Notes:
* Gold-only display (XAU).
* Table rows can be toggled (Risk, Entry, Stop, Target, Lots, Pips).
* Fully customizable colors and widths.
* Educational tool; verify contract specs with your broker.
Skrypt chroniony
Ten skrypt został opublikowany jako zamknięty kod źródłowy. Możesz jednak używać go swobodnie i bez żadnych ograniczeń – więcej informacji tutaj.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.
Skrypt chroniony
Ten skrypt został opublikowany jako zamknięty kod źródłowy. Możesz jednak używać go swobodnie i bez żadnych ograniczeń – więcej informacji tutaj.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.