I have written my first bot and it seems to be working ok, the bot carries out the following
* Waits for a Horse race to go inplay
* Backs the favorate using a call to a standard place back bet bot
* Monitors the race and if the favorate changes it then closes the position and lays the old favorate
The problem is in test mode the lay bet often takes several attempts to get matched and by the time it does the race is nearly over and I lose all my stake. The only way I could find to close my position was to use 2 bots one to execute on all and one to close my position.
Is there a command I can use from within the script to close my position on the previuos favorate ?
Also is there a list of BFexplorer commands for use in scripts that would be a great referance