How many elements are there in your . . .
PLOT1 and Rlsp Arrays ?
Hi,
I guess you mean that the PLOT1 array could be substitute by a single variable. It seems to me that there shouldn´t be a problem in saving the variable EMA3 in an array. And then, create another with a 3 periode EMA.
In terms of MQL, at the point I am, I can not figure out why I am getting a zero value.
I am following the same structure as other indicators (for instant the custom macd that is by default in the terminal), but I am doing something wrong.
¿Could you give me another clue? I must be missing something really basic.
Thanks
Hi,
I guess you mean that the PLOT1 array could be substitute by a single variable.
No, what I actually meant was . . . How many elements re there in your arrays ? 1, 10, 1000 ? or maybe 0 ? how many ?
Have a read of this, it will help you : https://book.mql4.com/variables/arrays
How many elements are there in your . . .
PLOT1 and Rlsp Arrays ?
those are not explicitly user-defined arrays. They are intended as output buffers, and recommended better names (like PLOT1Buffer, etc).
and this line:
Rlsp[i]=iMAOnArray(PLOT1,Bars,3,0,MODE_EMA,i);-----> replace Bars with 0, if the whole array is what you want?
those are not explicitly user-defined arrays. They are intended as output buffers, and recommended better names (like PLOT1Buffer, etc).
and this line:
Hi,
Is working fine now.
Also my mistake for using confusing names. I take note of the recommendation
Thanks a lot.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I am trying to code the RelativeSlope indi.
The Rslp buffer always returns a "zero"when it is just a 3 periode EMA of the PLOT1 buffer.
I would appreciate some advice about what is causing this issue.
Thanks in advance