I'm trying to code a modified MA cross EA using the Jurik Moving Average (see attached file). If I wanted to get the current value of the JMA based on the most recent close would it be this:
<table class="docvar" border="0" cellpadding="0" cellspacing="0"><tbody><tr valign="top"> <td><nobr> iCustom(</nobr></td> <td>NULL, PERIOD_H1, "JMA", 14, 0, 300, 0, 0)</td></tr></tbody></table>
Then would the JMA value for the previous close be given by the same string with a 1 for the very last parameter instead of a 0?
Sorry for the stupid question. I though this was correct, but the code doesn't work. I'm a pretty decent C++ programmer, but the MT4-specific language features are killing my ability to write a working EA.
<table class="docvar" border="0" cellpadding="0" cellspacing="0"><tbody><tr valign="top"> <td><nobr> iCustom(</nobr></td> <td>NULL, PERIOD_H1, "JMA", 14, 0, 300, 0, 0)</td></tr></tbody></table>
Then would the JMA value for the previous close be given by the same string with a 1 for the very last parameter instead of a 0?
Sorry for the stupid question. I though this was correct, but the code doesn't work. I'm a pretty decent C++ programmer, but the MT4-specific language features are killing my ability to write a working EA.
Attached File(s)
JMA.mq4
12 KB
|
649 downloads