Rolling Window

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
Emtaxx
Posts: 323
Joined: Mon Feb 10, 2025 10:00 pm

Hi all,

Does anyone know/or how to create a rolling window counter before? I'm a bit puzzled on how its able to be created with storing the LTP over a 20 seconds period.
User avatar
jamesedwards
Posts: 4119
Joined: Wed Nov 21, 2018 6:16 pm

Emtaxx wrote:
Tue Jul 29, 2025 2:56 pm
Hi all,

Does anyone know/or how to create a rolling window counter before? I'm a bit puzzled on how its able to be created with storing the LTP over a 20 seconds period.
What is a rolling window counter?
Emtaxx
Posts: 323
Joined: Mon Feb 10, 2025 10:00 pm

Where I am using a counter from 1 to 10. I believe I need to set it up in a way where...

10 becomes 9 -> 9 becomes 8 -> 8 becomes 7.... 1 Becomes LTP.

The LTP is always being overwritten with the most up to date data.

I tired the counter method, that You helped me with and that was great, however It only collects the data in that window. I need it to be rolling.
User avatar
jamesedwards
Posts: 4119
Joined: Wed Nov 21, 2018 6:16 pm

Emtaxx wrote:
Tue Jul 29, 2025 3:34 pm
Where I am using a counter from 1 to 10. I believe I need to set it up in a way where...

10 becomes 9 -> 9 becomes 8 -> 8 becomes 7.... 1 Becomes LTP.

The LTP is always being overwritten with the most up to date data.

I tired the counter method, that You helped me with and that was great, however It only collects the data in that window. I need it to be rolling.
Do you mean you want the last 10 LTPs each with an individual SV? Or the last 10 LTPs at each second over a 10 sec period?
Emtaxx
Posts: 323
Joined: Mon Feb 10, 2025 10:00 pm

Yeah what I want is the 'the last 10 LTPs at each second over a 10 sec period' they need to be stored as SV tho I can run them through calcs

and when its goes onto the next second being 11 (or it resets back to 1), it forgets the old figure and replaces is with the new value.
User avatar
jamesedwards
Posts: 4119
Joined: Wed Nov 21, 2018 6:16 pm

Emtaxx wrote:
Tue Jul 29, 2025 3:40 pm
Yeah what I want is the 'the last 10 LTPs at each second over a 10 sec period' they need to be stored as SV tho I can run them through calcs

and when its goes onto the next second being 11 (or it resets back to 1), it forgets the old figure and replaces is with the new value.
test 16.baf
You do not have the required permissions to view the files attached to this post.
Emtaxx
Posts: 323
Joined: Mon Feb 10, 2025 10:00 pm

Thanks James, you really are inspiring..

I'm yet to get my stupid monkey brain round the whole concept yet. But I will carry on with what you've given me and chatgpt what I can, Any qustions I'll be back
Post Reply

Return to “Bet Angel - Automation”