Unfortunately there isn't the concept of 'when you set the value into the history list' only what the value is at any given time.sniffer66 wrote: ↑Tue Mar 09, 2021 1:28 pmHow about referencing them by count, as per my original suggestion then ? My assumption is that wouldn't require a key
As an example, say I save a History value for 1st Serve% In at the end of each selections service game. I want to compare the value 6 service games ago with the current value so I reference the value 6 entries ago in History List x in my SV condition. I can't do that with the current time based compare.
e.g. Imagine we are capturing from 2pm.
At 14:00:01 you set a history list with the value of 1 and 100ms later at 14:00:01.100 give it the value of 2.
At 14:00:02.800 you give it a value of 3
At 14:00:04.200 you give it a value of 4.
From the history lists point of view (stored as half-second OHLC data against the chart price data) the values from 2pm are:
14:00:00.0 : null
14:00:00.500: null
14:00:01.0: High 2, Low 1, Close 2
14:00:01.500: Close 2 (no need to store OHL as value didn't change)
14:00:02.0: Close 2
14:00:02.500: Open 2, High 3, Low 2, Close 3
14:00:03.0: Close 3
14:00:03.500: Close 3
14:00:04.0: Open 3, High 4, Low 3, Close 4
14:00:04.500: Close 4
14:00:05.0: Close 4
14:00:05.500: Close 4
So you've given it 4 values, but two are in the same data point and there are ten datapoints between 14:00:01 and 14:00:05.500.
To do what you ask, you'd have to hunt back from the most recent datapoint and derive a new list of values regardless of time. You'd probably have to just use the 'close' values as the specific order of multiple values set in the same half second timeframe would be lost.
Not impossible, but not as performant as a direct lookup x half-seconds ago, and generally would have to be treated as a special case for History List interaction. i.e. You'd probably have to do it by Setting another Stored Value with the value of a history list 'x' changes ago, rather than just having it inline in an Automation condition or on display on the ladder/One-click.
Just thought, there's also the issue of if you Set the history list with the Same value. It's not going to know when that happened as nothing changed.
Hope that makes sense.