I recently started writing indicators using MQL4, and I could not solve the issues that I faced in the mq4 file attached. In this simple testing file, I wish to copy my MACD array to the Short Array, but it seems that the Short Array does not store any data successfully.
Hope someone could kindly offer his/her help.
Thanks very much for the reply.
I do not quite understand this. Do you suggest to put all definitions of these arrays to the top where Long and Short are defined? I tried so, and it still does not work.
Although EMA_12, EMA_26 and Signal have no size at beginning, didn't I add values into these arrays in my loop function?