Getting started with gold automation runs in five stages: write the rule, size it in dollars per ounce against the 100-ounce contract, demo at least 100 XAUUSD trades, go small live, then review live against demo monthly.
Check the broker gold symbol specification first — contract size, swap and typical spread in London and at rollover — because those numbers drive every lot size and cost assumption in the system.