Article

How to cancel all unmatched orders on the market/selection by bot?

Hi!

I need some help.

Heh... It looks like an easy task but I can't figure out how to do that... I need to cancel all unmatched orders on the market/selection.

Also, I've got another question. How to place orders at all selections in the market at once? For example, there are 25 selections(Horse Race) and I want to lay at 1.1 on every selection. I see there's a bot named "Place Bet" but it can only place bets on specific selection so does it mean that I need to make 25 bots for that task?

It would be nice if there was an option that I can tick and make the bot to place the order at all selections at the market.

Any help would be appreciated.

Thanks.


Updated by Stefan:

Here is the video preview of your bot trigger. It offers two parameters LayOdds and LayStake, by default are set to 10.0 @ 1.1 The offset bet as you call it, in bfexplorer terminology Hedge bet is managed by action bot entered by parameter BotName. This approach allows to setup different types of bots for closing a bet position on a selection.

It was not required but depending on the lay odds you enter it could happen that at one moment can be matched lay bets on more than one selection; the bot trigger manages such situations as well.




Download “Horse Racing Trade First Favourite Bot Trigger” script if you want to test it or build your own script from it.

Comments ( 89 )


  • Ilya Nikol
    22.9.2015 15:25:09

     

    Btw... Stefan, Bet Angel and Market Feeder didn't invent any of the features that these platforms have. They just took them from equity trading platforms.

    All that features were there 10 years ago when I stared to learn trading on the equity market.

     

  • Mir.
    22.9.2015 15:28:54

    I'm waiting for the right time to propose the killer improvements for automated solutions.

    For example "sandbox trading": trading 2 or more strategies on ONE MARKET - in PracticeMode, Sandboxed.

    This feature will allow test many strategies in real time on the same market. How many strategies you have got for soccer matches, for horse racing, for greyhound betting?

    Which is the best?

    ------------------

    Markets are changing. Results of strategies too.


    But, follow up! -> if some trading strategy has a good results today, it can switch to Real Money Mode automatically. So easy. Without huge risk.

    ....

    etc.

     

    Bfexplorer. This is powerfull tool.

     

  • Betfair Bot
    22.9.2015 15:33:57

    I did not test Market Feeder yet, therefore I have no idea if what you claim is true, for instance show me on some video how easy you can setup and execute your horse racing strategy for laying the field and trading out (back offsetting) the first matched lay bet. Miro, you have got Market Feeder as well, so for two experts it should not be any problem.


    Cancel all unmatched bets on all open markets. Well the question is why you would like to cancel them all without checking exact market situation first?


    I think is better to open such market and decide. Yes, I can understand an emergency situation, for instance you need to cancel all bets because you do want to leave your bets unmanaged, for such situations betfair offers hearbeat api method which cancels unmatched bets when losing the Internet connection to betfair servers as well. I tested this api method and it works fine, well I did not see any betfair app which would offer this functionality.

  • Betfair Bot
    22.9.2015 15:37:14

    Miro, your killer improvement is already implemented with tool called Bot Executor. You can run different strategies on the same market. To analyze results you can use Bfexplorer Console to process data, and save data in a suitable format.

  • Betfair Bot
    22.9.2015 15:43:45

    Ilya, I need to see a best feature you talk about, because I think a lot of features is already in bfexplorer, and I am not able to understand why you cannot find them. Therefore I need a comparison with a tool you are familiar with, for instance Cymatic, I hound your comments on their forum, so it should not be a problem for you to show us how your horse racing strategy is automated with Cymatic or Bet Angel, or by a tool of your choice, as you tested a lot of betfair apps.

  • Mir.
    22.9.2015 16:40:26

    Ilya, read as I wrote. You are "a new fresh blood" maybe you are want to the same things as I want, but I cannot explain it.

    Some things "are", but differently works... etc.
    A slightly different user interface and experience is completely different

    --------
    For example Bfexplorer Console:
    Maybe nice tool, but for non-programmer user is stressful. How can I do it this and this... I already do not ask because they already bigger fool can not even be here...

  • Betfair Bot
    22.9.2015 17:33:51

    Miro, what I said about wanting to see some examples of features, user interface and so on, was meant to you as well. In many cases we discussed here a lot of stuff, and in many cases I did not know what you had been talking about.


    I do not know if you watched the issue with Execute Trigger Bot problems Eduardo had. I said about a common sense many times. Well, in this case bot trigger compilation issue is a problem with missing assemblies, bfexplorer cannot find when compiling bot trigger file, used F# compiler requires installed Visual Studio, and it is clear that it makes sense. Bfexplorer users, who will want to use this option, will have to install Visual Studio, to develop bot triggers, debug them or just use them. It is the same like users of other betfair automation software are required to install Microsoft Excel.


    The second problem can be really assigned to a common sense. Well, I am familiar that Windows (operating system) blocks files downloaded from the Internet. I download a lot project files from the Internet, and of course I unblock such files. I simply assumed that this common sense is used by all computer users. So I tested what Eduardo downloaded and unzipped to his folders, the problem was as well that Eduardo uses Spanish version of Windows, so for me who is used to read a screen when operating with programs, was difficult to understand, otherwise I would solve this issue a lot of sooner, and not after almost a week of testing my code and looking for a problem in places where I could not find any.


    You used/use Market Feeder, so just for comparison or just to see what I can improve, it would be a god idea if you show me a video with horse racing strategy Ilya want to implement using bfexplorer platform. I actually made such video already, will download bot trigger assembly soon.

  • Mir.
    22.9.2015 17:39:33

    Stefan, for understanding of the Market Feeder Pro is enough to read the manual:

    http://marketfeeder.co.uk/download/MF8_manual_eng.pdf

     

    Maybe funny, but there are huge quantity ready-made options, variables, addressing bets, logs... etc.
    Triggers are .xml files. You can duplicate, modify hundred values in minute etc.

    Some operations are comfortable in Bfe, especially with prebuilt bots.

    The difference is that you can all put together like Lego cubes. Without the support programmer.

     

     

  • Betfair Bot
    22.9.2015 17:49:21

    Miro, I want to see what you say about Lego cubes. I have no intention to install that product or read manual.  I really have no spare time for such things.


    You already read the manual and have Market Feeder installed. Just make that strategy and show us video, I believe it will be interested for those who never used this app, and for me to see what I can do better with further bfexplorer feature development.

  • Mir.
    22.9.2015 18:23:55

    Stefan,

    there are many variation how to Lay the Field and etc. ...

     

    This trigger puts bet only if the Best Lay Price on Selection is equal or less than 1,10 and Greenup if Back price on this Selection =>1,35.

    By changing 2 parameters trigger place Lay bets immediately, and after first matched Lay bet -> Cancel all others... No need, custom script.

    http://marketfeeder.co.uk/learn/triggers/laying-greening-up/