Thanks for your observations again Dallas. Always appreciate how much time and effort you put into the forum.Dallas wrote: ↑Sat Sep 25, 2021 6:06 pmI've just shut my BA down for the night so can't check the file till morning
Just to answer this part though from the end of your post
When you only look at the end of a log and see identical outputs, you don't realise that some further up might be different.
The SV is showing the average just from now till 10 secs (or at least that's what the earlier files where doing), so the average could be different anywhere within the log and return back to same values several times
ie, if you get a lull in activity then that's going to cause the average value get closer to the latest stored value and after 10 secs (at the most) it will be back to exactly the same as the latest stored value
To address your point about lulls in activity. My log was tracking reported volume in the last minutes before the off of a race at Newmarket.
In the final 30 seconds of my log total volume increased by approximately £58,000.
In every second of that final 30, total volume as stored in HL 1 was higher than the previous second. And in every one of those final 30 seconds the figure reported by test_avg was identical to HL 1 to the penny.
So I'm at a loss with these findings when I would expect the average for the last 10 seconds to always be lower than HL1 if HL 1 is increasing during this period. I'm assuming here that the average will add up the last 10 HL1 readings and divide by 10 in my sample rule?
Thanks again