OPEN-SOURCE SCRIPT

RiskCalc FX & Gold

1 299
RiskCalc FX & Gold is a multi-market position sizing tool designed to help you manage risk quickly and accurately. With this script, simply enter your account capital, the percentage of risk you wish to take, and your stop in ticks. Depending on the selected market—Forex or XAUUSD—the script automatically adjusts its calculations:

  • Forex: Assumes 1 lot equals 100,000 units.
  • XAUUSD: Assumes 1 lot equals 100 ounces.

The script calculates your risk in dollars and, using a fixed value of 1 USD per tick per lot, determines the ideal position size in both lots and total contracts. Results are displayed in a clear, centralized table at the top of the chart for real-time decision-making.

Perfect for traders operating across multiple markets who need an automated and consistent approach to risk management.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.