![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hallo everybody,
trying to understand how the standard ZigZag code works. Can anybody provide a commented version?
What I particularly don't understand is the following:
IndicatorBuffers(3);
//---- drawing settings
SetIndexStyle(0,DRAW_SECTION);
//---- indicator buffers mapping
SetIndexBuffer(0,ZigzagBuffer);
SetIndexBuffer(1,HighMapBuffer);
SetIndexBuffer(2,LowMapBuffer);
SetIndexEmptyValue(0,0.0);
What does "SetIndexEmptyValue" result in? And how do the three Buffers work? For every bar there ist either a 1 in HighMapBuffer or in LowMapBuffer?
If somebody could clarify a little bit the way the code works I would be very grateful.
Thanks in advance,
Hotte300