Hi ,
Can you please assist with mt4 version of this indicator. It is such super great indicator , very GOOD! Please help with an mt4 version ?
Kind regards,
How can one mark the bar that transitions the mark from HH or LL?
I would Print test the variables in the code, one or two at a time, to the Experts tab of MT5. Each of the Duplex zigzags have a dedicated code block that contains BL and BH variables. Within the backets of, and at the end of, each respective code block, try inserting:
//in the fast zigzag block Print("Fast BL value: ",BL[bar]); Print("Fast BH value: ",BH[bar]); //in the slow zigzag block Print("Slow BL value: ",BL[bar]); Print("Slow BH value: ",BH[bar]);
Then look at the Experts tab of MT5. You might have to try experimenting with a fixed number like [0] or [1], etc. Basically, you have to dig up the code that's ahead (logically) of the indicator buffers because, as your question infers, the buffers are coded to empty values to allow for recalculation on the fly.
Update to Post #3:
Having done some Print testing myself, I verified that the ZigzagLawnBuffer1 and ZigzagPeakBuffer1 buffers/arrays retain their values by:
BH=high[bar]; BL=low [bar]; // ***** TEST CODE ***** Print("Slow ZZLawn1: ",ZigzagLawnBuffer1[94]); Print("Slow ZZPeak1: ",ZigzagPeakBuffer1[63]);
Although I haven't tested ZigzagLawnBuffer2 nor ZigZagPeakBuffer2, they likely retain their values as well. It appears that we need to loop through the 4 buffers/arrays and log the values that don't equal zero. Then save those values to 4 new buffers for use with iCustom, or save those values as GlobalVariables (for terminal wide access).
- 2018.03.01
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Boa_ZigZag_Arrows_Duplex:
Two Boa_ZigZag indicators with different periods, which appear as arrows on one chart.
Author: Nikolay Kositsin