Hello
I've a pine script in which I'm using below command to get hull moving avg for 55 length.
Now, when I try the same equivalent in ToS and compare the value, it does not match.
I tried both above but they both give same results, however does not match with result from pine script and miss by a large difference.
Does anyone know why this happens and whats the correct way to convert pine script hma to ToS?
Thanks!
I've a pine script in which I'm using below command to get hull moving avg for 55 length.
Code:
hma55 = ta.hma(close, 55 )
Now, when I try the same equivalent in ToS and compare the value, it does not match.
def hma55 = HullMovingAvg(close, 55); OR
def hma = MovingAverage(AverageType.HULL, close, 55);
I tried both above but they both give same results, however does not match with result from pine script and miss by a large difference.
Does anyone know why this happens and whats the correct way to convert pine script hma to ToS?
Thanks!