Author Topic: Variable scope individual markets  (Read 2205 times)

Tags:
  • All members
  • Posts: 347
Variable scope individual markets
« on: 21 Oct 2015, 08:43 »
I don't think Set user variable for individual markets is working properly....
A variable I am setting which is incrementing +1 when certain conditions occur in a market is not happening on a per market basis.
The variable is just incrementing on and on and not resetting itsself to 0 when a new market becomes monitored.

I have set the optioin to monitor market individually... and indeed even on the view user variables window, when i change the variable view to the specific market and not global scope i am seeing the variable count to be high like its occuring over all previous markets and not individually!


  • Guest
Re: Variable scope individual markets
« Reply #1 on: 21 Oct 2015, 09:21 »
Hi

Does your trigger condition reset the user variable to 0 once per market? If not, then I think you should try that.

Larp

  • Tim Vetrov
  • Administrator
  • Posts: 4870
  • Gender: Male
*
Re: Variable scope individual markets
« Reply #2 on: 21 Oct 2015, 09:28 »
Nope, I think you have it set in global scope, for example in "constants" block?
Proud to be 🇺🇦
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • All members
  • Posts: 347
Re: Variable scope individual markets
« Reply #3 on: 21 Oct 2015, 09:36 »
Nope dont get it..... in the constants block you cant set global scope?

Anyway I have attacehd the trigger can anyone help ?

As you can see the variables index are not workin gon a per market basis

  • Guest
Re: Variable scope individual markets
« Reply #4 on: 21 Oct 2015, 10:44 »
Hi,

You are correct that it was not working for the trigger as you had it written. I have no idea why not.

But, I made a few changes to your trigger file; deleted the constants as you had them initialised in a trigger, then re-ordered the conditions so the Selections Index was read first, then the lay price and then the pdif_1

From the sample races I tested, albeit only on 3, the variables are being recorded individually for each market and this is visible on the UserVariables popup screen.

Hope it works for you
Larp

  • All members
  • Posts: 347
Re: Variable scope individual markets
« Reply #5 on: 21 Oct 2015, 10:50 »
Will test now  Larp many thanks for your time in fixing this I appreciate it x

 

Please note, BetFair is seems to be currently OFFLINE