Author Topic: how to include american football but not soccer...  (Read 3002 times)

Tags:
  • All members
  • Posts: 405
Hi Everyone,


I have a trigger that I would like to use in American Football, but I don't want it to trigger in Soccer markets.


If I put in the condition market name does not contain "Football" then it will exclude American Football markets as well as Football (soccer) markets.


Any ideas?

  • Moderator
  • Posts: 3597
*
Re: how to include american football but not soccer...
« Reply #1 on: 16 Feb 2016, 20:13 »
Hi
American Football markets are named differently to soccer markets.
Examples:
markets name contains "Money Line"
markets name contains "Spread"
markets name contains "Touchdown"

all the above conditions would not be valid for soccer markets.

You could also use:
markets name does not contain "Match Odds"
because there is no match odds market in American Football (it's The Money Line)
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: 405
Re: how to include american football but not soccer...
« Reply #2 on: 16 Feb 2016, 21:08 »
Thanks for the suggestions Mark.


My problem is that the trigger works in other sports as well as American Football.  Another trigger works in Soccer. I realise that a solution would be to run a separate instance of mfp for soccer only (hate using the term soccer BTW but for sake of clarity I,m using it here!) but I already run multiple instances and I get stability issues if I add another.


I was hoping there might be an excel style IF statement I could use along the lines of if market_name contains "American" then bet, but its beyond me to work the syntax of that out.

  • Moderator
  • Posts: 3597
*
Re: how to include american football but not soccer...
« Reply #3 on: 16 Feb 2016, 21:40 »
Hi
and not markets betting code is Match Odds (Soccer & Tennis)

or you could use condition blocks?

OR
    markets name contains "American"
    and rest of your conditions for American Football
OR
    markets name contains "the other sport"
    and rest of your conditions for other sport
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: 405
Re: how to include american football but not soccer...
« Reply #4 on: 17 Feb 2016, 08:31 »
Thanks Mark


I'll go down the route of listing each sport for each trigger like you suggested. 


I was trying to find something more elegant that wasn't so long winded to keep speed up, ie omitting one sport for each trigger rather than including the long list of all the other ones for each trigger.

  • Guest
Re: how to include american football but not soccer...
« Reply #5 on: 17 Feb 2016, 08:42 »
How about a list of American Football teams in a variable?. NFL have 32, I think College Football a lot more!

  • Moderator
  • Posts: 3597
*
Re: how to include american football but not soccer...
« Reply #6 on: 17 Feb 2016, 08:44 »
Hi
"and not" rather than "and" for the condition?

and not markets betting code is Match Odds (Soccer & Tennis)
eliminates soccer (and tennis) match odds
also try:
and not markets name contains "Soccer"
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: 3597
*
Re: how to include american football but not soccer...
« Reply #7 on: 17 Feb 2016, 08:48 »
How about a list of American Football teams in a variable?. NFL have 32, I think College Football a lot more!
Hi Larp
Yes, nice idea. Could make your own 'variable' in a text file or list.
selections name is in file (or is in list) 
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: 405
Re: how to include american football but not soccer...
« Reply #8 on: 17 Feb 2016, 09:18 »
Thanks Mark & Larp,


I'll put my thinking head on and use your suggestions.  I'll post here what I ended up doing.


Appreciate the help.

  • Guest
Re: how to include american football but not soccer...
« Reply #9 on: 17 Feb 2016, 10:27 »
Here is the list of college teams for this seasons college football NCAA.


There is a new team, next season (2017) I think,


One other condition


and Ball is not round.


Larp




  • All members
  • Posts: 405
Re: how to include american football but not soccer...
« Reply #10 on: 18 Feb 2016, 07:45 »
Thanks Larp for going to the trouble of getting that list together for me, butI had a brainwave last night.  I've put a condition in to the relevant trigger that says

and market_parent_id is not 6422

This excludes football, but allows the bet in American Football.

  • Moderator
  • Posts: 3597
*
Re: how to include american football but not soccer...
« Reply #11 on: 18 Feb 2016, 08:14 »
Hi armarni
The market_parent or market_parent_id refers to the name of the soccer match e.g. "Arsenal v Hull" and related markets to that soccer match.

I just tested a trigger with the condition:
markets name does not contain "Soccer"

it does exactly what you want, bets in all markets but not soccer markets.
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: 405
Re: how to include american football but not soccer...
« Reply #12 on: 18 Feb 2016, 09:11 »
I'm a bit confused now Mark. I got the idea from this thread:

https://community.welldonesoft.com/archive/a-few-questions/msg7968/#msg7968

where in about the 6th post down, Tim lists the market_parent_id numbers for various sports.  He seem to imply that these numbers relate to whole sports and not just individual games.

If not then I can use your other suggestion, although it seems weird that the word soccer works even though it doesn't appear in the market name that we see.

(also I wrote the market_parent_id number down wrong...from that post it should be 1 and not 6422 which is snooker!)

  • All members
  • Posts: 405
Re: how to include american football but not soccer...
« Reply #13 on: 18 Feb 2016, 09:19 »
Update: I just put market_parent_id into the variables window and you are right, it comes up with a unique number for each market.  I wonder what Tim was going on about in the other thread?...seems strange for him to get it so wrong.

  • All members
  • Posts: 405
Re: how to include american football but not soccer...
« Reply #14 on: 18 Feb 2016, 11:58 »
Another Update

market name does not contain "Soccer" doesn't stop the trigger firing in football markets (got quite a dodgy bet riding on a match in the singapore s league now!)

I found another way of doing it though.  I'm using the trigger expression FIND("Soccer", "market_parent") which returns 1 if the market is soccer, and 0 if not.

Result.  Thanks once again for all the help guys.

 

Please note, BetFair is seems to be currently OFFLINE