Hi,
I've written a vba class in Excel, and I call a process within it from the Worksheet_Calculate event for specific runners in horse race.
The process checks for the current odds matching some nominated odds and places a back bet.
This seems to work fine in debug mode, stepping through the code.
However, 10 minutes before a race, the odds are moving quite fast, and either the process doesn't create a back bet at all, or if it does, the bet doesn't get matched before the current odds change.
Is this my code that's inefficient (using a class), or is there a means of setting parameters in Cymatic to scan the bet command range more frequently to ensure the bet is picked up and fired into the market?
I set Application.EnableEvents = False to ensure the process doesn't get interrupted whilst building the bet and set it back to True after the event.
It's as if Excel is running too slow to be able to catch the current odds before they change?
Do I possibly need to slow down Cymatic's refresh rate, rather than speed something up?
Any clues would be greatly appreciated.