Professional ZigZag – indicator MetaTrader 5

Figure 1. Typical ZigZag with input parameters [12;5;3] and [12;0;0]
Attention! This version of ZigZag indicator is based on ZigZag code, and published here with permission of its author, PPC. I have tested that version and fixed an error in algorithm. This code is the MQL5 version of the Zigzag indicator MetaTrader 4. Attention! The AlexSTAL_OutsideBar.mqh library should be located in  ..\MQL5\Include\ folder of the … Read more