I robot di trading e gli indicatori tecnici più utilizzati, i segnali di notizie, i programmi MQL5 più recenti in CodeBase e pronti all'uso, gli argomenti del forum più popolari.
Programming Patterns - ObserverWhen the subject changes, it notifies and updates its observers, who know nothing about each other.
ZigZag Based on Close PricesThe code is based on indicator ZigZag which is in-built in MT4.
I have changed it so that it isn't calculated on highest Highs and lowest Lows, but instead uses highest Close and lowest Close of chart price history.
See attached chart for differences: ZigZag (red) versus ZigZagClose (yellow).