How to close bet with a stake that I introduce previously?

Hello, I need to program a bot that when the stop-loss jumps then lay with a stake that I introduce previously. For example, if I make a back to the 3rd favorite with a stake of 1 euro and the stop-loss comes, I want the program close the operation with a lay with a stake of 2 euro. Then if the the 3rd favorite lose, I close the bet without loss. Can anyone help me?

Comments (13)

  1. StefanBelo Says:
    Monday, September 21, 2009

    So you want a bot with the same functionality as the bot: Place Bet and Close Position, but instead of hedging you want to place opposite bet with the same stake as your opening bet?

    In your description you said you want to place a bet with “a stake I introduce previously”, but you continue that you placed a bet with the stake of 1 Euro, and you want to close position with a stake of 2 Euro.

    I think I do not understand something. Could you shed more light on it?

  2. litomas Says:
    Monday, September 21, 2009

    Sorry my english is not very good. Stefan I think I explain you this last week via chat. Yes I want to use
    Place Bet and Close Position, but I want to put the stake that I want when the stoploss arrives. If I Back the favorite with 1 eur and my stoploss arrives, I want the program puts the lay bet at stake of 2 eur, not the stake that automatically calculates the program.I make myself clear?

  3. StefanBelo Says:
    Monday, September 21, 2009

    Yes, that is clear now. I will see if I find some spare time to prepare such custom bot script. Which parameters you want to use from the bot: Place Bet and Close Position? Name just necessary parameters you want to use. I do not want to take them all.

  4. litomas Says:
    Monday, September 21, 2009

    Yes I want to use this parameters:

    AllowPlacingBetInPlay -->enable
    AtInPlayKeepBet -->enable
    BetType
    MaxOdds
    MinOdds
    PlaceBetAtBetterOdds-->enable
    PlaceBetOnRunner
    Stake
    StartFromTime
    StartFromTimeEnabled-->enable
    MinReturnOnInvestment
    PlaceBetInmediately-->enable
    StopLossOnPercentageLiability

    I think don't forget anything. Do you need any more information?

  5. StefanBelo Says:
    Monday, September 21, 2009

    Ok, that is all what I need.

  6. StefanBelo Says:
    Thursday, September 24, 2009

    Betfair bot: PlaceBetClosePostionWithStake

    Your bot name is: Bfexplorer.Scripting.PlaceBetClosePostionWithStake

    Use it with the Bot Executor and My Bot settings. Test it first in the practice mode, if really all work as you wanted.

    You can download the source code of this betfair bot.

  7. litomas Says:
    Friday, September 25, 2009

    The bot don't run. In Output message appears

    Failed to create the bot object instance: Bfexplorer.ScriptingPlaceBetClosePostionWith StakBot

    What can i do?

     

  8. StefanBelo Says:
    Friday, September 25, 2009

    If you exactly typed the error message, then may I ask you what the bot name is?

  9. litomas Says:
    Friday, September 25, 2009

    the bot name is Bfexplorer.Scripting.PlaceBetClosePostionWithStakeBot. Sorry I don't typed the error exactly.

  10. StefanBelo Says:
    Friday, September 25, 2009

    And did you unpack zip file and copy bot script file into the MyBots folder? I did not mention it here because I did not want to repeat what you already read in other bot articles. I will test it and let you know.


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