Relying on MODE_TICKVALUE and MODE_TICKSIZE is how it should be done. I'd still check it once by hand on each broker, since a few MT4 servers report incorrect tick values for CFDs. For a 100 oz contract with a 0.01 tick, the value should be 1 dollar per lot in a USD account. On non-USD accounts the tick value also moves with the exchange rate, so caching it at startup isn't safe.
The slippage scaling is where gold differs from FX. The rule of multiplying by 10 for 3 or 5 digits was written for currency pairs. XAUUSD is usually quoted with 2 digits, so the input is used as is, and a slippage of 3 means 3 cents. On gold that's very tight, and during the US data releases it will mostly produce requotes rather than fills. For metals I'd define slippage in price terms or as a fraction of ATR.
Gating on IsNewBar with shift 1 is a clean way to avoid intrabar noise.