HULL Moving Average (a little problem)

 

Hello,


I have created this indicator, but the line is drawn only for past ticks.

I don't undestand why it doesn't work with the next ticks.

Is someone can take a little look to my code, please ?


(NB : What is the last member of LinearWeightedMAOnBuffer function ?? (weigthsum ?) )

Files:
MMHull1.mq5  13 kb