Dimitri Mikhalev: I don't need them all, just the latest one...
The last is not necessarily bar zero. You need to find it.
icustom ZigZag - Trend Indicators - MQL4 and MetaTrader 4 - MQL4 programming forum - Page 5#4
The last two zeros are the value of the index buffer, and bar.
You can loop through each bar and get the buffer index values 0-9 and that gives you the values.
So, the following gives the value of bufferindex 0 at bar 10.
double zig = iCustom (NULL,0,"ZigZag", 12,5,3,0,10);
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
HI all!
I am relatively new, and know relatively little.
Can somebody explain to me what I should do to be able to access the latest top or bottom that the ZigZag indicator plots out?
I don't need them all, just the latest one...
I use this line to access the zigzag, but I don't even know what the last two 0's stand for (what are they?) and when I try to print the value of zig, it only givees me 0.0