Author Topic: Import from text file and ranking  (Read 4097 times)

Tags:
  • All members
  • Posts: 72
Import from text file and ranking
« on: 05 Jul 2015, 11:17 »
I import selections for auto trading based on my own rankings and then use a match index to make the selections (to account for non runners) In the bigger handicaps I will back two or more horses. Here is my issue

Horse_a            1
Horse_b            2
Horse_c            2
Horse_d            3

So horses b and c have the same ranking and when I back two horses it will pick horse_a as expected and 1 of b and c (using match index between 1 and 2).
What I can't work out is how the program picks horses of the same rank, it seems to be random, not alphabetical order, not on price before off etc.
Can you tell me how identically ranked horses are selected and is there any way to change it.
Many thanks                     

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: Import from text file and ranking
« Reply #1 on: 07 Jul 2015, 09:04 »
hi
try setting your trigger to once per selection.
so any selection that is withing your conditions will be bet on.


mcbee
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.

  • Guest
Re: Import from text file and ranking
« Reply #2 on: 07 Jul 2015, 11:46 »
Hi,


If you are using the Horses Index as an identifier, it has been discovered that Betfair sometimes randomly changes the horses index on the API for no good reason. They have been asked why they do, but I never found out why. This can occur even when there are no non-runners or late withdrawals.

larp

  • All members
  • Posts: 72
Re: Import from text file and ranking
« Reply #3 on: 07 Jul 2015, 12:51 »
Thank you for the responses

trigger is set to execute once per selection with condition match index between 1 & 2

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: Import from text file and ranking
« Reply #4 on: 07 Jul 2015, 13:55 »
hi
with you using index between 1 and 2, the trigger can only pick 2 selections.
that is from index 1 and 2.
if you want to pick the fav or second fav then use rank in place of index.


mcbee
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.

  • Élite
  • Posts: 431
*
Re: Import from text file and ranking
« Reply #5 on: 16 Jul 2015, 06:07 »
Hi all, I have a similar problem to this but I don't think the solutions above help me.

I load a text file which has a ranking against every selection in the race, 1 - n, but I only want a trigger to pick those with a ranking of eight or above.

So I use the expression:

imported_3 => 8

This is fine unless a selection is withdrawn, and in that case I only want to pick a selection if there are seven or more with the lower ranking. Currently if the number in the file is eight and say there have been two withdrawn selections, the expression above will still pick up the one with a ranking  of 8 despite it's now really being six best and the race.

I think I need to set variable which is loaded first with the numbers from the text file but then is amended if a runner drops out but I cannot think how to do that.

Any thoughts on this I or an alternative method to achieve the same end?

Thanks


  • Guest
Re: Import from text file and ranking
« Reply #6 on: 16 Jul 2015, 09:23 »
Hi,

I would try to use IF and back book percentage to determine what the situation is just before the bet time.

There a a few different scenarios to allow for including
1. withdrawals not in your list
2. withdrawals both in and not in your list
3. the high risk reward of dutch backing 8 of only 9,10 or 11 runners. Should you reduce the number of selections in your list for that?

There are other scenarios to think of  too. You would need to have a complete overview of what to do in each one, then write the conditions.

I am sure it will be of help to people to see developed.

Larp

  • Élite
  • Posts: 431
*
Re: Import from text file and ranking
« Reply #7 on: 16 Jul 2015, 13:56 »
Thanks Larp,

It is less complex than you suggest. I am betting on the selections at the race start (1second before) at the available back price or BSP.
There are other conditions as well as this one. I don't care about non runners after the official start time.

I only want to rule out betting on the ones that are 8th or 9th ranked according to the numbers I enter on my spreadsheet, when if in fact, due to one or a couple being withdrawn, they are actually say 6th or 7th ranked.

  • Guest
Re: Import from text file and ranking
« Reply #8 on: 16 Jul 2015, 15:37 »
Hi,

What about if you have done your betting and your selections does not include a short favourite but does include a short second favourite. Then the fav is withdrawn, hence your second favourite is now a very short price and your other selections are much shorter prices. Has your risk reward not risen dramatically? Or maybe I am just reading it incorrectly? Ah, for some reason I had assumed you were Dutching an amount to win. So it may not be as risky.

The key I think is to set the number of runners when you first monitor the market But if you are not going to monitor until very late, then I don't have any easy suggestions. I think you have to be more specific before anyone can write a "catch-all" parameter/variable, but I may be wrong.
Larp

  • Élite
  • Posts: 431
*
Re: Import from text file and ranking
« Reply #9 on: 16 Jul 2015, 19:59 »
I think what I will do is set up a User variable trigger to fire just before the off with a condition

imported_3 < 7

then use the matching_number variable.  If it has found seven selections then none of the runners rated under 7 have been withdrawn.

If matching_number is say 5 then I will know two have been two withdrawn selections and I can set the variable called "adjustment" to 7-matching_number.  In this exampke that will be 2.

Then, in the main trigger, rather than using the condition

 imported_3 > 7

I will use:

imported_3 > 7 + adjustment

That might do it!

  • Élite
  • Posts: 431
*
Re: Import from text file and ranking
« Reply #10 on: 17 Jul 2015, 08:32 »
Yes, that idea worked in case anyone is struggling with a similar conundrum.

 

Please note, BetFair is seems to be currently OFFLINE