Miro asked for a bot to trigger execution of many different bots depending on clicked odds and bet type on a ladder, so here there is MiroTriggerBot.
To use this bot trigger you need to add action bots to My Bots, and then create CSV file with triggered odds and bet type, action bot name, and addition bot parameters if you want to change them when the bot is executed.
Mandatory parameters are: Odds, BetType, Bot Name following by additional bot parameters in pair of parameter name and value. Use ; to separate parameters in CSV file:
2.0;Back;Trade 2 ticks
For now there are supported BetType, Boolean and Float values for additional bot parameters.
To use this bot trigger, click on Add a new bot and select Execute Trigger Bot. Enter TriggerParameters in this format: CsvFile:F:\Temp\MiroTestData.csv, then enter TriggerFilePathName, for instance I have got this trigger bot in the folder:
And the bot trigger file name is: MiroBotTrigger.fs, so TriggerFilePathName in my case is:
In Miro’s bot trigger specification he said that he will set different bot settings for every odds on ladder, and twice as he wants to set different triggers for back and lay bet clicks on ladder, so totally 350 * 2 = 700 rows in CSV file.
I think this bot trigger could have some potential for other users, so I change implementation of this bot to execute triggered bot if CSV file contains trigger settings for exact bet type and odds, and if no bot is found then default action bot is executed, if BotName parameter is set for Execute Trigger Bot.
Download “MiroBotTrigger” script if you want to test it or build your own script from it.