Specialized calculator and guide for XAUUSD (Gold) traders.
XAUUSD margin requirements are unique because of gold's high price per ounce (currently ~$2,650). At 1:100 leverage, 1 standard lot (100 oz) requires $2,650 margin. At 1:500 leverage, only $530. However, gold's volatility means lower leverage is strongly recommended.
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