Author Topic: Getting user variables from a different event market  (Read 1687 times)

Tags:
  • All members
  • Posts: 33
  • Gender: Male
If I have a trigger which (continuously) calculates user variables individually per selection from within the Each Way market, what is the best/easiest/quickest way to make these variables usable in the win and place markets of the same event?




  • Tim Vetrov
  • Administrator
  • Posts: 4870
  • Gender: Male
*
Re: Getting user variables from a different event market
« Reply #1 on: 22 Aug 2020, 18:05 »
Use eachway_ market variables prefix. Works like winplace_ prefix.
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • All members
  • Posts: 33
  • Gender: Male
Re: Getting user variables from a different event market
« Reply #2 on: 23 Aug 2020, 11:09 »
That's what I was hoping would work, but it doesn't seem to want to carry anything that's created (i.e. 'eachway_back_price' works, but 'eachway_myvar' doesn't). If I put 'myvar' into engineer mode in the EW market it returns the calculated figures (e.g. "5"), but if I do 'eachway_myvar' from the win market or 'winplace_myvar' from the place market then I just get "myvar" instead of figures.

All the user variables are set individually per selection, with the block set as all matching selections in horse races, executed no more often than X seconds. Conditions are set so that the variables are created only within the EW market (i.e. market name contains Each Way), as some of the user variables draw on details in the win and place markets (using eachway_ and winplace_, so terms would need to be adjusted if the same calculations were run from within the win/place markets).

The setup creates exactly what I want in the EW market, but I'm not sure if there's something in my setup preventing 'prefix_myvar' from working, or whether 'prefix_' only works with existing variables? If it does only work with existing variables, then what's the best workaround for moving these between markets (ideally without tripling the calculation load or writing to a file)?
















 

Please note, BetFair is seems to be currently OFFLINE