Forum

Get values from Zigzag indicator - performance issue

Hello, I want to get calculated values from the Zigzag indicator . My code looks like this: bool GetZigZagValues( double &get_values[], datetime &get_times[], int handle) { double values[]; // An array for the values of the zigzag datetime times[]; // An array to get time int

ZigZag indicator gives wrong value in Strategy Tester (only for period: 2015.01.05 - 2015.01.06)

Hello, I use the indicator ZigZag in my Expert Advisor and I noticed that this indicator gives me a wrong value in Strategy Tester for the period 2015.01.05 - 2015.01.06 (EURUSD - H1). Everything works fine until 2015.01.09 at 06:00 (see screenshot 1), but then the last high changes to a low (see