JolieRouge:
...
Any help would be appreciated.
After rooting around, the answer is this: Because Chikou is 26 candles in the past, you actually have to start copying at 25.
if ( CopyBuffer(i_def,4,25,9,chikou) == -1) { Print("need to fill out chikou"); ichimoku_ready = false; return; }
JolieRouge:
After rooting around, the answer is this: Because Chikou is 26 candles in the past, you actually have to start copying at 25.
thanks

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
So I am working with an EA that gets info from Ichimoku, here is my code:
Now, in the Ichimoku example, there is:
Which, in the example, OnCalculate fills it this wise:
Is it that the Ichimoku Indicator that comes with MT5 does not have this buffer? I left out bits of code that 1) work fine and as expected (all other buffers are correct), and 2) would just make things difficult to read.
Am I doing something massively wrong? All the other buffers are copied correctly. This can't be the real value?, besides, all the values for the entire copied buffer are the same, or seem to be.
Any help would be appreciated.