Would be nice to have a method to be able to replace the last value, rather than pushing a new value to the dataset.
This way you can have live indicators, where the last data point will update in realtime until the next period of data is available. Otherwise you have to basically recreate the indicator and re-push all the values with the last value replaced if I'm not mistaken.
That can be easily added. Can you suggest how you would the API to look like? Do you want to pass a boolean flag to the update method to indicate if you wish to replace the last value?
Would be nice to have a method to be able to replace the last value, rather than pushing a new value to the dataset.
This way you can have live indicators, where the last data point will update in realtime until the next period of data is available. Otherwise you have to basically recreate the indicator and re-push all the values with the last value replaced if I'm not mistaken.