News
Current BetFair Sports API status: online. Current BetFair Games API status: online.

WellDone Betting Bots -- February 08, 2012, 18:20
Pages: 1
Print
Author Topic: Setting another Market as trigger condition  (Read 1664 times)
Layne
New member
*

Reputation: +0/-0
Posts: 11


« on: January 23, 2010, 05:00 »

Hi,

I may have a "mission impossible" for you all. Or maybe not... Smiley


What?
I would like to set up a trigger related to the state of another market.

Why?

i.e.
Let's say i've a system regarding NBA basketball.
If the away team is winning at half time, i want to back the home side.

The problem is configuring MF to determine (automatically, of course) when half time comes and who is winning...

A condition like "minutes after the off..." won't work correctly since, you know, basketball games could last a very different amount of minutes, just think about timeouts, free throws and so on.

The only workaround i could think of, is checking a sub market state:
i.e., if the market "Half time match odds" has been settled or if the away team has hitted 1.01 then i am relatively sure that we are at half time and that the away team is leading.

Is it possible to set up a condition like that? If not...i think it would be a very, very useful one.

Layne


Logged


alfaman
Élite
Sr. Member
*****

Reputation: +1/-0
Posts: 262


« Reply #1 on: January 23, 2010, 07:15 »

Hi Layne & Oxa,

I am sure this can be done, I was asking about a similar thing here:

http://community.marketfeederpro.com/troubleshooting-8/help-linking-markets/

Perhaps Oxa could tell us if there is a posting on the site anywhere explaining linking markets (other than the place market which has special varibales) or, if not, consider preparing one.

You may be able to fathom it out from the football example I put a link to ni the thread above. 

It is done be ensuring the two markets share the same "parent market id".

alfaman
Logged


Oxa (WellDoneSoft)
Administrator
Hero Member
*****

Reputation: +21/-1
Useful
Gender: Female
Posts: 910



WWW
« Reply #2 on: January 29, 2010, 11:06 »

Please check this trigger example:

http://www.marketfeederpro.com/solutions/trigger-example/miscelaneous-betting/back-after-half-time/
Logged



I know I'm gonna die so my revenge is living well.
Layne
New member
*

Reputation: +0/-0
Posts: 11


« Reply #3 on: January 31, 2010, 16:05 »

Thanks Oxa,

i've still a couple of questions:

- should i monitor both the markets adding them to "my markets" or ... ?
- i'm thinking about a similar strategy regarding tennis but when Set 1 is over i would like to delete the "match odds" market if nothing was matched. How could i do it?

If useful i've noticed that  evert "Set 01 Winner" markets has the same markets id of the "match odds"+2 (i.e. "match odds" id =101107501, "Set 01 Winner" id=101107503)  .



Logged


Oxa (WellDoneSoft)
Administrator
Hero Member
*****

Reputation: +21/-1
Useful
Gender: Female
Posts: 910



WWW
« Reply #4 on: February 03, 2010, 19:04 »

- should i monitor both the markets adding them to "my markets" or ... ?

Yes, certainly. The parameters of a market can only be checked if it is being refreshed.

- i'm thinking about a similar strategy regarding tennis but when Set 1 is over i would like to delete the "match odds" market if nothing was matched. How could i do it?

You need to replace the name patterns in the triggers, i.e. instead of "Half Time" put there some part of the market's name, e.g. "Set 1".
You can adjust every trigger according to your needs.
Logged



I know I'm gonna die so my revenge is living well.
Layne
New member
*

Reputation: +0/-0
Posts: 11


« Reply #5 on: February 06, 2010, 16:24 »

Hi again Smiley

I've uploaded a trigger i've developed for a test tennis strategy.
It works as it is intended:

- check the favourite odds and eventually delete market if out of planned range
- remember the favourite
- Lay remembered favourite if price falls below a certain value
- Lay again remembered favourite if price falls further
- Distribuite profit if remembered favourite price rises >1.98

This part works since i've already tested it.

Now i've added an additional trigger that i hope Smiley would monitor "Set 01 Winner" and delete "Match odds" (but deleting both markets would be even better...how to do it?) when the set is over IF nothing was matched.

Could anyone checks it and let me know if i'm on the right track? Smiley

Sorry to be so insisting in my help requests but it's just the second trigger i'm working on and i guess it's a bit more complicated than average...

Logged


Maddox
Élite
Full Member
*****

Reputation: +1/-0
Thanks!
Gender: Male
Posts: 111


« Reply #6 on: February 09, 2010, 15:20 »

I’ve made a few changes but looks like you’ve got the right idea.

Changed the layout, starting at the top.
First trigger will fire as normal but will also fire if the last trigger “delete market at the end of 1st set if nothing matched” is executed. That would hopefully do the job.

Logged


Layne
New member
*

Reputation: +0/-0
Posts: 11


« Reply #7 on: February 15, 2010, 19:24 »

Dear Maddox, Oxa et al Smiley

I've been working on this trigger so far, trying as hard as i can to solve it on my own and stop my annoying requests Wink

I am "almost there" but i've still a problem or two (the latest version of the trigger is attached).

In brief it should (in triggers orders)
- remember the fav in the "match odds" markets
- delete the "match odds" markets if fav price is outside the right price bracket OR when the 1st set is over and nothing was matched.
- lay fav if price shorten in "match odds" markets
- lay further is price falls again in "match odds" markets
- check and "remember" if 1st set is over (it's considered over when the "Set 01 Winner" market is settled OR when any player lay odds are 1.01).
- distribute the profit in "match odds" markets if the underdog lay price is under 2.02.

The main problem is: i can't close the trade with the "distribute profit" trigger since MF monitors just the "remembered" fav laying price while that rule should considers the other player odds...
So I tried to change the rule to back the remembered fav when its lay odds are >2.0 but again it doesn't work since having the rememberd fav a negative P/L there is no profit to spread...

Again, but not completely sure about that, looks like that when the underdog wins the first set the "end of 1st set" trigger won't start.

Layne



Logged


Maddox
Élite
Full Member
*****

Reputation: +1/-0
Thanks!
Gender: Male
Posts: 111


« Reply #8 on: February 15, 2010, 21:09 »

Had a quick look, first thought was change the last trigger to a back or lay with an IF formula something like =if(profit_loss<0, -profit_loss, profit_loss)
Logged


Pages: 1
Print
 
Jump to:  

Anone designed by pixelslot.
Powered by SMF 1.1.16 | SMF © 2011, Simple Machines