From Bet Angel forum: Automation for on the WAVE strategy / Soccer
Could someone explain or make a automation file for the following:
1 - Min. 00:00 - Back the correct score 0-0
2 - If goal back Team who scored with greening
3 - If goal from opposite back draw with greening
4 - If goal form A or B ... again back the leader with greening...
5 - Green all at 85 Min.
Is this possible? I think yes but how?
This football trading strategy can be executed by custom bot trigger by orchestrating execution of two bots: “Place Bet” and “Close Market Bet Position”
By default the bot trigger uses three bot settings (two of them set by “Place Bet” bot, and one set by “Close Market Bet Position”):
Back 0 – 0
Close My Football Bet Position
The user did not specify its staking plan, so initial stakes and the way how “Place Bet” bot places back bet on correct score 0 – 0 selection, and then later on team selections when goal is scored must be set correctly.
The user asks to green up bet position, but what happens when goals is scored, mainly his staking plan is not defined. When another goal is scored by other team, and bot trigger already placed back bet, then of course previous bet creates loss position so next bet stake should be calculated returning previous los maybe.
In my initial bot trigger code such stake calculation is not defined, “Back Goal” bot setting is at least set to place bet with Stake Type: Payout, so payout must be bigger than stake amount placed by “Back 0 – 0” bot.
Have a look at the bot trigger code in line 188, here you can add a new stake amount adding loss from previous bets.
When testing this bot trigger on two markets, in both cases bot traded profit, but only because in both cases first scoring team won.
The bot trigger executes “Back Goal” bot only when selection on which the bot is executed changes, so for instance when team scores again so winning team does not changes the bot is not executed.
Test this bot in the practice mode.