Guardian Tick Values - stored values

Help improve Bet Angel.
Post Reply
PeterLe
Posts: 3715
Joined: Wed Apr 15, 2009 3:19 pm

Hi
I posted the below, but noticed I hadn’t posted in the suggestions thread.
I’d appreciate it if this could be considered for future releases please
Thanks
Regards
Peter

Previous Post…
Morning
is there an easy (and efficient) way to calculate the number of ticks between the back and lay prices for every selection in-play (horse racing), rearm every refresh, using guardian automation...
I guess i could create a formula for each odds step change (ie 1.01 to 2, 2 to 3) etc and assign a value, then subtract one from the other (something similar to how i do it in C# for the increments etc shown below)
Or whether it would be more efficient to assign a store value depending on the odds..ie SV = 1 for odds 1.01...SV = 350 for 1000, then subtract one from another, But I would need a lot of SV's (350) and that doesn't sound efficient?
Any thoughts please for the simplest solution?
Thanks
Peter

EG:

namespace HorseRacing
{
public class BetfairPriceIncrements
{
//Double
public double TicksDown(double odds)
{
double increment = 0;
if (odds < 1.01)
{
return 1.01;
}
else if (odds <= 2.0)
{
increment = 0.01;
}
else if (odds <= 3.0)
{
increment = 0.02;
}
else if (odds <= 4.0)
.
.
.
Post Reply

Return to “Suggestions”