Author Topic: Soccer Trigger  (Read 124365 times)

Tags:
  • All members
  • Posts: 80
  • Gender: Male
Soccer Trigger
« on: 21 May 2024, 20:21 »
Hello. I have a trigger for soccer but I need some help to finish this because I´m stucked....


BOT parameters:

Lay Bet:
- Bet on MATCH ODDS
- lay 50% of the full stake in pre live on the underdog with the odds between 3.5 and 6

Greenup:
- If the favourite scores a goal close the bet in hedge

Distribute Loss
- If the match reaches 70 minutes 0-0 close hedge

Second Lay Bet:
- if the underdog scores, lay the other 50% of the stake

Second Greenup
- if the favourite draws 1-1 close the bet on hedge

No Bet
- if the match ends with the non-favourite winning, it's a total loss

I already have the trigger of the first Lay Bet, and the distribute Loss if is 0-0 after 70 mins (I think it´s right).

But my difficult is to determine which the teams scored first to fire the next triggers.

Can you help me on this?

Thank you




  • All members
  • Posts: 80
  • Gender: Male
Re: Soccer Trigger
« Reply #1 on: 23 May 2024, 11:25 »
Anyone can point me a direction to solve this?

  • Moderator
  • Posts: 3653
*
Re: Soccer Trigger
« Reply #2 on: 23 May 2024, 14:50 »
Hi
Lay Underdog - 1st bet
I don't think you want to include The Draw in the first lay bet trigger (its possible Draw price could be rank 3)
selections index is between 1 and 2
and selections back price is the maximum
and then your other conditions for first bet
also set a user variable in this trigger e.g. udog, value sel_index

Lay again Underdog - if the underdog scores first
selections index is equal to udog
and selections lay matched is greater than 0
AND
OR
  selections index is equal to 1
  and selections trigger expression market_score1 is equal to 1
  and selections trigger expression market_score2 is equal to 0
OR
  selections index is equal to 2
  and selections trigger expression market_score1 is equal to 0
  and selections trigger expression market_score2 is equal to 1

Greenup -Close all bets if favourite equalize 1-1
selections trigger expression market_score1 is equal to 1
and selections trigger expression market_score2 is equal to 1

I have not tested this
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 80
  • Gender: Male
Re: Soccer Trigger
« Reply #3 on: 25 May 2024, 09:12 »
Thanks MarkV. I'll give it a try with your suggestions and see if it's all good...

The only doubt I have is about that user variable e.g. name udog, value sel_index . How does the program knows the right index (1 or 2) for the underdog?

  • Moderator
  • Posts: 3653
*
Re: Soccer Trigger
« Reply #4 on: 25 May 2024, 09:53 »
 The only doubt I have is about that user variable e.g. name udog, value sel_index . How does the program knows the right index (1 or 2) for the underdog?
Hi
The conditions for the first lay bet identify the underdog and then in the same trigger record the index of the selection who had the first lay bet. So this trigger has 2 actions: Lay and Set User Variable.
selections index is between 1 and 2
and selections back price is the maximum
and then your other conditions for first bet
also set a user variable in this trigger e.g. udog, value sel_index  
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 80
  • Gender: Male
Re: Soccer Trigger
« Reply #5 on: 28 May 2024, 06:47 »
Hello again MarkV....

I´ve been around here with this trigger and I think it misses something that I can´t figure...

So:

- Lay Underdog 1st bet -> It´s working
- Close if 0-0 at 70mins -> It´s working
- Lay again Underdog -> It´s working

but

- GreenUp if Fav scores first -> not working
- GreenUp is Fav equalizes 1-1 -> not working

I´ve try with 2 games, where the Fav plays at home and away. It happens both ways. Won´t trigger the "Greenup if Fav scores first". I think that what is missing is the same in both triggers (if Fav scores first and if Fav equalizes 1-1). The error is the same ("None of the selections qualifies for the tradeout").


The games are:

- "Lazio vs Empoli" - 12/05/2024
- "Nottm Forest - Chelsea" - 11/05/2024


Maybe it´s in the blocks and how they are build (AND, OR, OR).....

Can you see where this is stucked?


Again, thank you for your help....



  • All members
  • Posts: 80
  • Gender: Male
Re: Soccer Trigger
« Reply #6 on: 28 May 2024, 06:48 »
Sorry, forgot to put the trigger....

  • Moderator
  • Posts: 3653
*
Re: Soccer Trigger
« Reply #7 on: 28 May 2024, 13:29 »
Hi
GreenUp - Fav Scores First change All Matching Selections to All Market's Selections

GreenUp - Fav equalizes 1 - 1 change to All Market's Selections and add these conditions:
and trigger lay again underdog - if the underdog scores first number of runs in the market is greater than 0
and trigger greenup - fav scores first number of runs in the market is equal to 0

please test in test mode 
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 80
  • Gender: Male
Re: Soccer Trigger
« Reply #8 on: 01 Jun 2024, 12:59 »
I MarkV... I already made the changes that you suggested and it worked fine. The triggers are working. Thank you.


But I have another issue, that sometimes happens. I have the trigger "GreenUp - Fav equalizes 1-1", that fire when the Favourite equalizes 1-1 (that´s the name ;D;D;D) and it fires 2 minutes after the goal for the odds to stabilize. But sometimes the odds takes to long time to stabilze and the trigger "catch" a lower odd and put me in red (that´s not the objective).


So, there are some trigger expression (or another feature) to "see" if the back price is over the average of the 2 lays matched (because I have trigger to fire a second lay bet if the underdog scores first)?


Do you understand what I mean (sorry for my English)? I´ve been around here and I can´t find any feature or see any trigger expression to solve this....



  • All members
  • Posts: 80
  • Gender: Male
Re: Soccer Trigger
« Reply #9 on: 01 Jun 2024, 13:36 »
I'm very boring (I know, sorry)....

But I can I select the matches that I know that will have the score in the screen? I see that not every matches have the score, so how can I delete or not to bet in those matches?


  • Moderator
  • Posts: 3653
*
Re: Soccer Trigger
« Reply #10 on: 01 Jun 2024, 18:47 »
I MarkV... I already made the changes that you suggested and it worked fine. The triggers are working. Thank you. But I have another issue, that sometimes happens. I have the trigger "GreenUp - Fav equalizes 1-1", that fire when the Favourite equalizes 1-1 (that´s the name ;D;D;D) and it fires 2 minutes after the goal for the odds to stabilize. But sometimes the odds takes to long time to stabilze and the trigger "catch" a lower odd and put me in red (that´s not the objective). So, there are some trigger expression (or another feature) to "see" if the back price is over the average of the 2 lays matched (because I have trigger to fire a second lay bet if the underdog scores first)? Do you understand what I mean (sorry for my English)? I´ve been around here and I can´t find any feature or see any trigger expression to solve this....
Hi
and selections back price is greater than bm_layavp

or you can use market current trade out value:
and selections trigger expression market_tradeout is greater than 0 (or any positive amount)
 
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • Moderator
  • Posts: 3653
*
Re: Soccer Trigger
« Reply #11 on: 01 Jun 2024, 18:55 »
I'm very boring (I know, sorry).... But I can I select the matches that I know that will have the score in the screen? I see that not every matches have the score, so how can I delete or not to bet in those matches?
say give it a few minutes to see if score is there.

DELETE MARKET
in-play
conditions:
markets minutes since the is off is greater than 3
and selections trigger expression score_exists is equal to 0

or if you want to check for score in the betting trigger:
and selections trigger expression score_exists is equal to 1
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

 

Please note, BetFair is seems to be currently OFFLINE