Hello!
Please see the triggers attached.
Use the constants inside the file to adjust the trigger settings.
Please note that horses' stall numbers (draw numbers) are part of the so called Horse Racing Silks, so turn them on (Download Horse Racing Silks) in Monitoring Options.
Make sure you've tested the triggers in Test Mode.