Author Topic: Comparing two markets and in-play/pre triggering  (Read 2034 times)

Tags:
  • All members
  • Posts: 53
Hello,

I hope you are doing fine.

I would like to find an easy way to compare different markets without using multiple triggers and slowing down the whole process. I am able to monitor 300-400 markets at once and it is quite computationally expensive so adding anything extra to it may be a problem. Basically, what I would like to do is to find a way to compare matched/unmatched volume on one market let's say "First Half Goals 0.5" with "First Half Goals 1.5" and fire the trigger when certain condition is fulfilled e.g. matched volume on market1 > matched volume on market2. Could you please tell me if it is possible to do an easy way?

I also would like to use different conditions in my trigger depending on whether the game is pre or in-play. Let's say I have a trigger with a condition g_ticks(back_price,lay_price) is less than X. Do I have to make a new trigger to have X different for in-play and pre markets? If that is the case then I would have to increase the computational cost twice to accomodate different strategy. There are "Deactivate" and "Activate" trigger options but don't they just kill the trigger indefinitely for all markets? I would like to do it for each market separately. A possible way I could imagine:

1) Check the status of the market
2) If it's before the match deactivate the in-play monitoring trigger
3) If it turns in-play, turn off the pre-game monitoring trigger and switch on in-play trigger

Is it even possible?

Thank you in advance,

LiAlH4

  • All members
  • Posts: 53
Re: Comparing two markets and in-play/pre triggering
« Reply #1 on: 30 Aug 2017, 05:32 »
One extra question:

Are exponential functions implemented in the editor? Let's assume I want my trigger to fire if back_price is larger than A*exp(-x/B) where A, x and B are known parameters. I hope that is possible because I do not want to expand a triexponential function into Taylor series. 

Thanks once again,

LiAlH4

  • Administrator
  • Posts: 8821
  • Gender: Female
*
Re: Comparing two markets and in-play/pre triggering
« Reply #2 on: 30 Aug 2017, 07:43 »
Hello!

No, exponential functions are not implemented in MF Pro.

Quote
let's say "First Half Goals 0.5" with "First Half Goals 1.5" and fire the trigger when certain condition is fulfilled e.g. matched volume on market1 > matched volume on market2. Could you please tell me if it is possible to do an easy way?

Are you asking whether this is possible to do without loading both markets into the program? The answer is unfortunately "no": how would the program know their matched volume without fetching their data from BetFair?

To check different conditions depending on the market status, just add blocks of conditions, like this:

AND
  OR
     Market's Status is Idle
     and Selection's Trigger Expression g_ticks(back_price,lay_price) is greater than X
  OR
     Market's Status is In-Play
     and Selection's Trigger Expression g_ticks(back_price,lay_price) is less than Y
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

  • Moderator
  • Posts: 3597
*
Re: Comparing two markets and in-play/pre triggering
« Reply #3 on: 30 Aug 2017, 13:27 »
Hi
you can easily check variables in other markets of the same game using cross-market prefixes
for example:

you want to bet in First Half Goals 1.5, selection: Over 1.5, if matched volume in this market is greater than matched volume in First Half Goals 0.5

conditions:
markets betting code is First Half Goals (Soccer) 1.5
and selections index is equal to 2
and markets matched volume is greater than football15_market_volume
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: 53
Re: Comparing two markets and in-play/pre triggering
« Reply #4 on: 30 Aug 2017, 15:56 »
Hi,

Thank you for a quick reply.

Apropos exponential functions. Will MF Pro work equally fast if the equation used in the trigger is very long or complicated? I could always expand the exponential functions into taylor series but that would give me a crazy long equation.

Ad.
"Are you asking whether it is possible to do without loading both markets into the program? The answer is unfortunately "no": how would the program know their matched volume without fetching their data from BetFair?"

I load all the markets. Just do not want to have two separate but nearly identical triggers acting on the same market twice. It looks like Mark's solution is what I am looking for. Mark, if I omit the selection index =2 will I get the total market_volume from both under and over selections? or is there another variable for that? Shouldn't it be matched "volume is greater than football05_market_volume" because we compare it to u/o 0.5 market.

Oxa your solution to the In-Play/Idle problem makes sense, but I am looking at my code now and just have no idea how to implement into it.

Would you be able to look at my trigger and let me know if there is any way to do those changes or improve its performance? If I attach a protected trigger will you be able to deprotect it yourself or is there any other way to share the code not publicly?

Thank you once again for all your help,

LiAlH4


  • Moderator
  • Posts: 3597
*
Re: Comparing two markets and in-play/pre triggering
« Reply #5 on: 30 Aug 2017, 18:12 »
Mark, if I omit the selection index =2 will I get the total market_volume from both under and over selections? or is there another variable for that? Shouldn't it be matched "volume is greater than football05_market_volume" because we compare it to u/o 0.5 market.
Hi
in the example I gave, I want to bet on Over which is selection index 2, so the condition I used in the betting trigger was
and selections index is equal to 2

it can be a little confusing, if you look in the manual in market variables:
market_volume is the total matched amount in a market
and in the prefixis for cross-market betting:
football15_ is First Half Goals 0.5
football16_ is First Half Goals 1.5
football2_ is Correct Score
etc...
so if the betting trigger is betting in First Half Goals 1.5, and we want to check market volume in First Half Goals 0.5 in a condition in the betting trigger, the variable would be: football15_market_volume 
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: 53
Re: Comparing two markets and in-play/pre triggering
« Reply #6 on: 31 Aug 2017, 04:13 »
Mark and Oxa,

Thanks for your help. Football15 and 16 variables work perfectly. I do not need an exponential function anymore because I managed to fit my odds-dependent volume condition with another function that requires only power operator "^". It is working fine right now.

I think I also figured out how to make that that extra condition block mentioned by Oxa but had no change to test it yet. I will let you know if I encounter any difficulty.

Once again thank you and have a nice day,

LiAlH4

  • Administrator
  • Posts: 8821
  • Gender: Female
*
Re: Comparing two markets and in-play/pre triggering
« Reply #7 on: 31 Aug 2017, 08:31 »
LiAlH4, I'm so glad you sorted the things out. And also want to thank MarkV for helping you!
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

 

Please note, BetFair is seems to be currently OFFLINE