Hi, If anyone can help with this i would really appreciate it.
I want to take the mt4 AMA indicator and load it onto IG Index's advance charts as a custom indicator.
I have loaded the code (copy below)found on a site recommended by IG Index, into the indicator creator software, then gone to verify it, the creator is asking to define variable P (query box screen grab in .doc attached plus coding and desired MT4 settings) I have also attached a different AMA MT4 file, in case it is easier to alter that?
Fixing this will save me running 2 charting packages, which would be great!
Appreciate any help
Paul
ONCE ama = UNDEFINED
signal = ABS(MOMENTUM)
noise = SUMMATION(ABS(MOMENTUM[1]))
IF noise>0 THEN
er = signal / noise
ELSE
er=1
ENDIF
fastsc = 2 / (2+ 1)
slowsc = 2 / (30 + 1)
factor = SQUARE(er * (fastsc - slowsc) + slowsc)
IF BARINDEX = p THEN
ama = CLOSE
ELSIF BARINDEX > p THEN
ama = ama + factor * (CLOSE - ama)
ENDIF
RETURN ama
I want to take the mt4 AMA indicator and load it onto IG Index's advance charts as a custom indicator.
I have loaded the code (copy below)found on a site recommended by IG Index, into the indicator creator software, then gone to verify it, the creator is asking to define variable P (query box screen grab in .doc attached plus coding and desired MT4 settings) I have also attached a different AMA MT4 file, in case it is easier to alter that?
Fixing this will save me running 2 charting packages, which would be great!
Appreciate any help
Paul
ONCE ama = UNDEFINED
signal = ABS(MOMENTUM)
noise = SUMMATION(ABS(MOMENTUM[1]))
IF noise>0 THEN
er = signal / noise
ELSE
er=1
ENDIF
fastsc = 2 / (2+ 1)
slowsc = 2 / (30 + 1)
factor = SQUARE(er * (fastsc - slowsc) + slowsc)
IF BARINDEX = p THEN
ama = CLOSE
ELSIF BARINDEX > p THEN
ama = ama + factor * (CLOSE - ama)
ENDIF
RETURN ama
Attached File(s)
AMA.mq4
3 KB
|
290 downloads
Variable P box, AMA coding and desired settings.doc
132 KB
|
315 downloads