Author Topic: Soccer Trigger  (Read 125 times)

Tags:
  • All members
  • Posts: 74
  • 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: 74
  • Gender: Male
Re: Soccer Trigger
« Reply #1 on: 23 May 2024, 11:25 »
Anyone can point me a direction to solve this?

  • Moderator
  • Posts: 3628
*
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: 74
  • 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: 3628
*
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.

 

Please note, BetFair is seems to be currently OFFLINE