Moving Average update on tick

 

Hi I'm playing with the IMA/MODE_SMA averages. on 1min charts.

To get the rate of change(angle of the curve) I'm using deltas between current MA value and the one calculated at the last bar.

However because the Bars are no exactly aligned with Ticks the results seem to be a bit erratic around Bar boundaries.

Is there any moving average functions that work with ticks and unevenly spaced data (wrt time) or do you have to roll your own?
 
I would say just "roll your own". This question have been asked many, many times. Measurement of time in bars isn't the same as measurement in price. This from what I understand would always cause some "erratic" behaviors. Extending the concept to Ticks seem allot worse IMO. You'll have to get very creative to make this work for you.
 
ydrol:

Hi I'm playing with the IMA/MODE_SMA averages. on 1min charts.

I don't know if it suits your needs, you can use the open price of the bar as the base of MA calculation. (default is close price.)
Reason: