Specialized calculator and guide for XAUUSD (Gold) traders.
XAUUSD is one of the most volatile instruments in trading, with ATR typically ranging from 80-150 pips on H1 and 500-1500 pips on D1. Understanding gold's ATR is critical for setting appropriate stop losses — a 30-pip stop that works for EURUSD will be stopped out immediately on gold.
from gfil_calculators.position_size import calculate_position_size
from gfil_calculators.pip_value import calculate_pip_value
# XAUUSD position sizing
result = calculate_position_size(10000, 1.0, 50, "XAUUSD")
print(f"Lots: {result['lots']}") # 2.0 standard lots
# XAUUSD pip value
pip = calculate_pip_value("XAUUSD", 1.0, "USD")
print(f"1 pip = ${pip['one_pip']}") # $1.00