How to check time ?
Posted in Bot programming by PD1970
How can I check the time elapsed from the beginning of the game ? (from a bot)
Best regards
JM
Posted in Bot programming by PD1970
How can I check the time elapsed from the beginning of the game ? (from a bot)
Best regards
JM
Wednesday, February 11, 2009
Use VS IntelliSense
If you decided to develop your own bot scripts you certainly use Bfexplorer BOT SDK. I am sure you loaded the BotTestApplication solution into Visual Studio and have a look at at least on the Bot class as all your bots will be divided from this class if you will not extend already existing bots PlaceBetBot or PlaceBetClosePositionBot for instance. The based three objects you will use with your bot are:
Your bot runs on MonitoredMarket and on it selection: Runner
So if you want to know what the official start time of your market is, you will use:
monitoredMarket.MarketDetails.MarketTime
It is quite simple with Visual Studio and IntelliSense to browse all available object properties.