Predefined MM HULL (20 periods) uses TYPICALPRICE and matches exactly my two custom indicators:
Custom HULL 1
1
2
3
4
5
6
Period=20
src=CustomClose
x1=WeightedAverage[Period](src)
x2=(2*WeightedAverage[round(Period/2)](src))-x1
HullMA=WeightedAverage[round(sqrt(Period))](x2)
RETURNHullMA
Custom HULL 2
1
2
p=20
RETURNaverage[p,7](TypicalPrice)
Predefined HULL MOVING AVERAGE (20 periods) uses CLOSE , so it cannot match the other two. If you use CLOSE also with the other predefined MM HULL (and custom ones) they will match.
Using CustomClose implies the properties to ask users what price they want the indicator to be applied to (a dropdown list will allow you to select Close, Low, High, Open, TypicalPrice. MedianPrice, ….).
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue