how does ZigZag code work? New comment [Deleted] 2009.09.05 21:32 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 ZigZag Ask! Zigzag indicators New comment
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