Author Topic: How to deal with a set of variables.  (Read 734 times)

Tags:
  • All members
  • Posts: 347
How to deal with a set of variables.
« on: 11 Sep 2019, 07:24 »
Horse Racing:

Imagine, if you will, a set of variables assigned to each selections index...

Eg:

Selection Index 1 = myvar1
Selection Index 2 = myvar2
Selection Index 3 = myvar3  ... etc etc

Now, we are setting these variables and updating them over time.

so myvar1,myvar2 and myvar3 and all the myvar's are being updated every second with a new value, a 'score' if you like... for how likely they are to win/lose.


After a set amount of time, how can I then 'sort' that list of myvars and, for example, dutch back the top half?

For example...

After X seconds has passed...

I have arrived at..

myvar1 = 1.2
myvar2 = 1.5
myvar3 = -3
myvar4 = 20
myvar5 = 3.2
myvar6 = -4

I then MUST Dutch Back the top half...

I want to Dutch Back

(myvar4 = 20,myvar5 = 3.2,myvar2 = 1.5)

How can I tell what I need to dutch back... how can I write the selection?


  • Moderator
  • Posts: 3604
*
Re: How to deal with a set of variables.
« Reply #1 on: 11 Sep 2019, 14:31 »
Hi
Just an idea, if it's six selections you could probably do it with nested IF(...) and MAXV(...) functions. If you have not seen it yet some related further reading here. 
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: 347
Re: How to deal with a set of variables.
« Reply #2 on: 11 Sep 2019, 14:35 »
Yer its not just 6 selections though... its the whole field.... so could be as much as 20+ runners lol

The thought of trying to do a nested IF statement for all of these permutations does not appeal as you can imagine :-(

 

Please note, BetFair is seems to be currently OFFLINE