Author Topic: More cross-market fun with triggers  (Read 1862 times)

Tags:
  • All members
  • Posts: 94
More cross-market fun with triggers
« on: 27 Jul 2016, 17:32 »
Is there a way to check a trigger has run in the win market from the place market without making the trigger global?

I have to say as a newbie to MF all this win-to-place market palaver is getting me quite frustrated!

  • Moderator
  • Posts: 3605
*
Re: More cross-market fun with triggers
« Reply #1 on: 27 Jul 2016, 19:00 »
Hi
There are probably several ways depending of what your triggers do.

For example, if you wanted to check there is at least one matched back bet in the Win market, from your Place market trigger, add this condition to the Place market trigger:
and selections trigger expression winplace_market_mbnum is greater than 0

OR perhaps set a user variable as a flag in your Win market trigger, by adding a second trigger action to the win market trigger:
action: set user variable, name: flag, value 1

now in your Place market trigger use this condition:
and selections trigger expression flag 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.

  • All members
  • Posts: 94
Re: More cross-market fun with triggers
« Reply #2 on: 27 Jul 2016, 21:05 »
I thought I had already tried option 2, but with the same problem that the place market wasn't picking up the variable from the win market - but I'll give it another go.

  • All members
  • Posts: 94
Re: More cross-market fun with triggers
« Reply #3 on: 28 Jul 2016, 17:51 »
Well, after some playing about today I did get something working, but the variables have to be global to be seen from the opposite market.
This causes another problem, though - if two (unrelated) markets go off close to each other, it means they are changing each other's variables. Obviously not the desired effect.  :(

  • Moderator
  • Posts: 3605
*
Re: More cross-market fun with triggers
« Reply #4 on: 29 Jul 2016, 18:20 »
Hi
I've had a look and I can't do it with variables, although there must be a way, will let you know if I find it.

In the meantime a workaround might help:
deactivate the Place market trigger
in the Win market trigger add a second action: activate trigger/block "Place trigger"
in the Place trigger add a second action: deactivate trigger/block "Place trigger"

tested this on a few markets and it seems to do the trick?
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: 94
Re: More cross-market fun with triggers
« Reply #5 on: 29 Jul 2016, 22:57 »
Hiya,

I thought earlier on that 'activate trigger' meant 'do the test' in which case it could be used to chain triggers together, but after reading the help I realised that was not the case.

After rearranging my triggers I think it might be a case of having to duplicate a few win market ones to place market ones and reversing the winplace_ calculations. It won't be elegant, though.

I'll take a look and let you know how I get on.

  • All members
  • Posts: 94
Re: More cross-market fun with triggers
« Reply #6 on: 30 Jul 2016, 10:25 »
After thinking about it this morning, duplicating triggers isn't a good idea either. That might lead to the win trigger picking a different favourite than the place trigger due to price movement, and that would cause chaos!

I've separated some of the triggers into different sessions so that I can run with global variables; the chance of two races being checked simultaneously is now greatly reduced.

 

Please note, BetFair is seems to be currently OFFLINE