Close Position for whole Market

close position whole market

Exists any solution (code, methods) which close whole market with overall profit in one step (like is in Bet Wizard - Close Position)?

Is it possible run bot with this code on the last selection (sort by LTP) with condition:
If profit from all selection > 0.30 then Close Positions for whole Market ?

Comments (18)

  1. StefanBelo Says:
    Monday, February 22, 2010

    Bfexplorer.Scripting.ClosePositionForMarket

    I have created the betfair bot script: Bfexplorer.Scripting.ClosePositionForMarket

    You can find the C#.net source code for this betfair bot script here. Download it and unzip to the MyBots folder.

    The only parameter it uses is: MinReturnOnInvestment,so if you want to close your position on a market when potential profit reaches 0.3 Euro, set this parameter to 0.3

  2. Mir. Says:
    Wednesday, February 24, 2010

    Thank you, very much!

    Absolutely perfect for manually trading, bot-trading and also for monitoring interaction between selections.

  3. machdesign Says:
    Friday, July 23, 2010

    How can I edit the Bot Criteria

    Hello,

    How can I edit for example this bot (Bfexplorer.Scripting.ClosePositionForMarket) in Bot Executor? I've got the script in MyBots folder, however i'm not able to get it into the Bot Executor and edit it. What should i do? Could you please explain step by step how to take the Bot script from the MyBot folder and get it to the Bot Executor for set the Bot Criteria?

    Thank you very much!
    Martin

  4. StefanBelo Says:
    Saturday, July 24, 2010

    My Bot bot type

    If the betfair bot script: Bfexplorer.Scripting.ClosePositionForMarket.cs is not yet in the MyBots folder, (you can find this folder in Bfexplorer PRO application folder), then copy this file to the MyBots folder.

    To run betfair bot script using the tool Bot Executor, you need to configure your bot using the "My Bot" bot type. 

    Set the parameter MyBotClassName to: Bfexplorer.Scripting.ClosePositionForMarket, this parameter says the Bot Executor which betfair bot script to execute.

    The only bot parameter for this bot is: MinReturnOnInvestment, so you need to set your profit at which the bot closes all your open position/s to get required profit.

    You can find more information on the forum searching for: Bfexplorer.Scripting.

  5. machdesign Says:
    Thursday, July 29, 2010

    Bfexplorer.Scripting.ClosePositionForMarket

    Excellent, thank you very much!

    It perfectly close the positions. But is it possible with this bot to stop all the bots running on the market and cancel all the unmatched bets ?

    And second question, how can i setup in any bot to stop him for example 10 seconds after the event starts ?

  6. StefanBelo Says:
    Friday, July 30, 2010

    This bot script was programmed according to Miro's specification with the only one point: to close position if preset profit on a market is reached.

    Yes, you can program any bot script that would stop all running bots on a market and cancel all unmatched bets before closing position on the market.

    The bot: Place bet and close position is able to stop (close position) at preset time. You can set following time parameters: ClosePositionAfter, ClosePositionAt, ClosePositionAtOnlyStopBot

  7. machdesign Says:
    Friday, July 30, 2010

    Stop all running bots and close all unmatched bets

    Thank you for the answers. Stefan, how much does it cost if you program this procedure? I mean this is the same as Miro's, but if the profit reaches the value, then stop all running bots and cancel all unmatched bets on the market.

  8. StefanBelo Says:
    Friday, July 30, 2010

    For Bfexplorer PRO subscribers, I offer betfair bot script development for free. Of course, only when dealing with simple bot scripts. I do so during weekends if I find some spare time. Read more about it here:

    C# Betfair Application Development - Betfair bot for this week

    If you want your bot script sooner, you can ask other programmers on this forum, or on other betfair forums on the Internet. My experiences are that you will not find more people willing to help you for free, and that is because of simple fact that programming is not so common skill among betfair users, and because no one shares what could give you advantage or profitable strategy.

    Have a look at on this Czech forum, I know you are Czech:

    mam dotaz k market feedru, nebo vlastne i k botum obecne, ale nechci zakladat novy thread. potreboval bych funkci, ktera by zjistila vysi castky na kurzu rekneme 5 ticku pod aktualne obchodovanou cenou. nebo by napriklad nasla prvni kurz, na kterem je castka vyssi nez x. procetl jsem manual k mfp, ale nic takoveho jsem tam nenasel. podobne ani v betting assistant. nevite nekdo, jestli nekde (v MFP, BA nebo i jinem softu) takova funkce je?

    What is required on this Czech forum, can be easy implemented by simple bfexplorer bot script. At least two of Czech users there have got some experiences with programming maybe, so you can ask for help there as well.

  9. machdesign Says:
    Monday, August 02, 2010

    Laying last 3 selections

    Hello Stefan,

    could you please advise how to create a bot for trading on last 3 selections (sorted according to the odds)? I mean the last three favorites. And finaly to close the market with the NET stake?

    I'm not able to create such a bot in Bot Executor. I use the "Probability to loose" criteria, which works correctly, however only for one selection. And I'm also not able to combine the trading bot (PlaceBetClosePosition) with the close position by Net stake bot (ClosePositionOnOutcome).

    When I use this setting (below) the bot does not work.
    BotType MyBot
    ExtraBotType ClosePositionOnOutcome
    MyBotClassName Bfexplorer.Scripting.SetupBotOnRunners

    On the other hand, when I use the (SetupBotOnRunners) as (PlaceBetClosePosition), I'm able to trade on three selections, but only the first three favs. I'm not able to set the Market criteria or Selection criteria for the last three favs.

    Thank you in advance for your help!

  10. StefanBelo Says:
    Tuesday, August 03, 2010

    The betfair bot script: Bfexplorer.Scripting.SetupBotOnRunners is able to execute built-in bot, the Bot Executor offers only, on preset market selections. The bot uses two parameters: PlaceBetOnProbableWinner and PlaceBetOnRunners.

    Of course, you must set the rest of parameters your action bot will use, so if you set ExtraBotType to PlaceBet, then you must set all the parameters your PlaceBet bot uses. If you want to execute your bot on 3 underdogs, you must set: PlaceBetOnProbableWinner to False, PlaceBetOnRunners to 3.

    I have got two hints for you when dealing with custom bot scripts:

    You can find such bot scripts in the MyBots folder. Those files are C# source codes of such betfair bot scripts, so you can open them in Notepad and in the header read the list of parameters the bot uses (Used parameters: ...)

    Bot parameters are mapped to the Selection Property, so if you are in doubt, which parameters to set for your ExtraBotType when using the betfair bot script: Bfexplorer.Scripting.SetupBotOnRunners, then setup your action bot script in the Bot Executor and start it, then open Selection Property window to see which parameters are used by your bot.

    This weekend I updated Bfexplorer PRO adding the new action bot: Close position in the market, so you can use 11 built-in bots and some of them combine into your bot batch file, to create without programming your new betfair bot.


Do you want to comment this article? Sign up here or login.