Bot Executor: Place Bet and Close Position Bot
The Place Bet and Close Position bot is a trading bot what means that after opening bet is matched it executes the trading logic according to preset parameters. The parameters you can use are following to place opening bet:
And to close position:
The bet is placed either on the preset odds or when offered odds range is met at the moment when bot is executed. Setting the BetType to Lay and Odds parameter to 2.2 with the parameter PlaceBetAtOdds set to true will place the lay bet at odds 2.2.
Setting the parameter PlaceBetAtOdds to false and defining the odds range by MinOdds and MaxOdds will place a bet only when offered odds are in preset odds range. In this mode you can define the PlaceBetAtBetterOdds parameter to true, so the bet will be placed at better odds when backing on the best offered lay, and when laying at the best offered back odds.
You can restrict bet placing only for pre event trading by setting the parameter AllowPlacingBetInPlay to false. If the market supports keep bet feature for in-play market you can set the parameter AtInPlayCancelBet to false, otherwise set it to true.
If you place a bet in odds range criteria and market moves against your position the bot automatically chases the odds if the offered odds is in range.
If you want to lay you can set the parameter StakeIsMyLiability to true if you want your stake to be your liability.
If you want to place a bet with a stake as the percentage of your available balance set the parameter StakeIsPercentageOfAvailableBalance to true.
To enable bet placing from preset time only before the event starts you have to set the parameter StartFromTimeEnabled to true and the StartFromTime parameter to time span, for instance 0:01:30 if you want the bet placing was executed 1 minute 30 seconds before the event starts.
After the opening bet is matched the bot starts its trading logic. The bet can be closed/trade out at odds you set by odds difference in ticks or by setting the minimal percentage of return on the investment/liability.
If you want to close position by odds difference set the parameter UseMinOddsDifference to true and the MinOddsDifference parameter to number of ticks you want close your position. For instance if you opened your position by backing at 2.04 and want to close your position after the odds drops down at 1.95 you want to close position at odds difference of 7 ticks.
To close position at a preset profit set the parameter UseMinOddsDifference to false and the parameter MinReturnOnInvestment to 5 if you want to close your position with 5% profit.
The closing bet is placed immediately after the opening bet is matched if you set the parameter PlaceBetImmediately to true, otherwise the bot waits on market conditions for closing your position at preset parameters.
If you want to repeat the trading cycle after the bot closes your position set the parameter RepeatTradingCycle to true. This feature is available only when you set closing criteria by the parameter MinReturnOnInvestment, so the parameter UseMinOddsDifference must be set to false. To repeat the trading cycle bot needs the parameter IncreaseProfit to increase profit percentage for each new trading cycle. If you want to stop the trading cycle after the bot reaches preset profit use the parameter StopTradingCycleAtProfit, otherwise set this parameter to 0.
As not all tradings could go in your favor you can use the parameter StopLossOnPercentageLiability to set your percentage loss on your liability. The bot acts only on last matched odds in the stop loss mode avoiding this way false offered odds. If you do not want to use stop loss feature set this parameter to 0.
You can instruct the bot to close the position after the event official start by setting the parameter ClosePositionAfterEnabled to true and setting the time span by the parameter ClosePositionAfter. In this case the bot closes your position at current offered odds, in a profit or loss depending on your position.
I want to trade on a favorite starting to back with 100 on better odds trading out with the profit of 5% or a loss of 20% of my liability.
As you want to trade on a favorite you must use the market criteria and sort the market selections so the bot will really place the bet on the favorite, and set the following bot parameters:
I want to trade on the selection starting to back with 100 on better odds when odds is in range from 1.85 to 2.1, if matched trading out with the profit of 5% or a loss of 20% of my liability. If the odds is again in the preset range I want the bot repeats the trading cycle and stops at a profit of 15% of my original stake.