The screen plot of the ZigZag indicator and the pivot points of the identical internal ZigZag mostly agree, however there are additional data points in the internal indicator. Bars (1364) and (1365) at a price of 55.02 do not belong. This problem persists throughout the sessions bars.
private ZigZag aZZ; // in variables region aZZ = ZigZag(DeviationType.Percent , zzDev, false); // in the OnStartUp call Print("\n ("+CurrentBar.ToString()+ ") - " + aZZ.ZigZagHigh[0]); // in OnBarUpdate
(1359) - 55.22 (1360) - 55.22 (1361) - 55.22 (1362) - 55.22 (1363) - 55.22 (1364) - 55.02 (1365) - 55.02 (1366) - 55.09 (1367) - 55.09 (1368) - 55.09 (1369) - 55.09 (1370) - 55.09
Comment