eisiParticipant
Average
Hey Guys !
I tried to build a Screeer , one part of it is the Hull MA. Figured out that part is not working right. First i tried with the Hull formula i found here, and i also tried with simplified creation but it wont work. Does anybody have an idea what is the problem? I want to get a Signal if ,in this case H1 and M15 Hull both are higher or lower then last period.
// Der folgende Code bezieht sich auf den Zeitraum:1 hour
TIMEFRAME(1 hour)
indicator1 = Average[21](close)
indicator2 = Average[21](close)
c1 = (indicator1[1] > indicator2[2])
// Der folgende Code bezieht sich auf den Zeitraum:15 minutes
TIMEFRAME(15 minutes)
indicator3 = Average[21](close)
indicator4 = Average[21](close)
c2 = (indicator3[1] > indicator4[2])
// Der folgende Code bezieht sich auf den Zeitraum:1 hour
TIMEFRAME(1 hour)
indicator5 = Average[21](close)
indicator6 = Average[21](close)
c3 = (indicator5[1] < indicator6[2])
// Der folgende Code bezieht sich auf den Zeitraum:15 minutes
TIMEFRAME(15 minutes)
indicator7 = Average[21](close)
indicator8 = Average[21](close)
c4 = (indicator7[1] < indicator8[2])
SCREENER (c1 and c2 or c3 and c4)
I didn’t look closely at your code but I can tell you, you are not using the Hull-MA anywhere in your code, only the SMA. If you want to use the HULL use must specify this.
indicator=Average[21,9](close)
The number behind the period gives the style of the MA. Omitting it gives you the simple MA. Hull is number 9.
eisiParticipant
Average
Hello!
Thats what i thought what the problem is, but as i said, i made that screener with the program (simplified creation). I finally found a formula in the forum from nicolas. When i use the code as you told me @despair , it says the screener is currently not available, but eventually i got it. Thank you for your help.