hull ma in indicator code
Forums › ProRealTime English forum › ProBuilder support › hull ma in indicator code
- This topic has 7 replies, 3 voices, and was last updated 6 years ago by robertogozzi.
Tagged: Hull Average
-
-
11/30/2018 at 1:46 PM #86086
Hello,
I have a HULL moving average in my chart and am trying to use it as a condition in my code. Unfortunately I can not find the right words to describe the HULL MA. if I use average it is ok but it seems not to recognise an average being a HULL one.
Can someone help or advice me?
Thanks in advance
Mert
11/30/2018 at 2:11 PM #86088123Period = 20HullAverage = WeightedAverage[ROUND(SQRT(close))](2 * WeightedAverage[ROUND(Period / 2)](close) - WeightedAverage[Period](close))You can find the calculations for many different averages within this indicator code:
https://www.prorealcode.com/prorealtime-indicators/average-filter-regression/
11/30/2018 at 2:17 PM #8609011/30/2018 at 2:55 PM #86095There is no built in Hull MA in PRT so you have to hard code it into your strategy.
123456789Period1 = 20Period2 = 50HullAverage1 = WeightedAverage[ROUND(SQRT(close))](2 * WeightedAverage[ROUND(Period1 / 2)](close) - WeightedAverage[Period1](close))HullAverage2 = WeightedAverage[ROUND(SQRT(close))](2 * WeightedAverage[ROUND(Period2 / 2)](close) - WeightedAverage[Period2](close))If HullAverage1 crosses over HullAverage2 thenbuy 1 contract at marketendif11/30/2018 at 3:01 PM #8609711/30/2018 at 3:14 PM #86098There’s no built-in HULL MA by itself, but clicking on the properties of MA ypou can select HULL to be displayed (only) on charts.
Oddly enough ProOrder does not recognize average types beyond 6 with AVERAGE[Periods,Type] and reports an error if you write 8 as type!
11/30/2018 at 3:30 PM #86101Oddly enough ProOrder does not recognize average types beyond 6 with AVERAGE[Periods,Type]
I thought that it was above 7 not 6?
Not having 8 and 9 is almost as if someone put them in the platform but then never told the person responsible for putting them in ProOrder that they had done it!
11/30/2018 at 3:44 PM #86103Lack of communication 😀
-
AuthorPosts
Find exclusive trading pro-tools on