What is best way to count tick increments?

Please post any questions regarding the program here.

Moderator: 2020vision

What is best way to count tick increments?

Postby cjones198 » Sun Sep 27, 2020 8:09 pm

Hi all

I was just wondering if anybody had a good formula for allowing you to only log a price when it moves x number of ticks?

For example
I want only to log a price if it moves 2 ticks.
Let's say I open a market and start recording at a price of 2.80. When the price hits either 2.76 or 2.84 it logs the price and copies it to another cell on another sheet. The copying and paste and making sure the cell offsets i can do. I even came up with a formula to log price changes but wasnt precise enough, the problem occurs because of crossovers.

How I'm doing it now. I have a variable called Price which is the current price of the horse.
So it goes like if Price <> sheets("Market").cells(5,15).Value and Price <= sheets("Market").cells(5,15)- (2 * tick increments) then
Blah blah blah plot
So I am asking excel in this example price is 2.80 , cell 5,15 is 2.84, 2 * tick increments (0.02) so 2.84 - 0.04 = 2.80, so Price is less than or equal to 2.80.
But..... I want it precise so it logs only 2 tick increments so no <= only a = used.
The problem occurs at a crossover using this formula, say I open a recording at 2.98, 2 ti is from this is of course 3.05, so using my calculation but only using a = and not <= we have Price =2.98 cell(5,15) = 3.05, 2 * 0.05 = 0.1
So 3.05 - 0.1 = 2.95 so it needs to = 2.98, how I got over this to use <= I set tick increments to variable Price and not cell (5,15)
cjones198
 
Posts: 102
Joined: Wed Aug 05, 2020 10:02 pm

Re: What is best way to count tick increments?

Postby alrodopial » Mon Sep 28, 2020 3:11 pm

alrodopial
 
Posts: 1355
Joined: Wed Dec 06, 2006 9:59 pm

Re: What is best way to count tick increments?

Postby cjones198 » Mon Sep 28, 2020 3:18 pm

thanks mate!!
cjones198
 
Posts: 102
Joined: Wed Aug 05, 2020 10:02 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 16 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.