#property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Blue #property indicator_color2 Red
To call the indicator from other programs in mql4 use two constructions:
iCustom(NULL, 0, "Zigzag2_R_", 12, 5, 3, 0, index) - peaks iCustom(NULL, 0, "Zigzag2_R_", 12, 5, 3, 1, index) - bottoms
The block of processing the outside bar is given as an example. For such a situation you may use your own algorithm.

Translated from Russian by MetaQuotes Ltd.
Original code: /ru/code/7762
Chaikin Oscillator
Chaikin Oscillator (CHO). Based on the book by Eric. L. Nyman Malaya entsiklopedia treidera (Small Encyclopedia of Trader)
Accumulative Swing Index - ASI
Accumulative Swing Index is used to analyze futures.
Chaikin's Volatility - CHV
The volatility indicator by Chaikin accounts for the spread changes between the maximal and minimal prices. It defines the volatility value based on the range width between the maximum and minimum.
NRMA
NRMA is the famous indicator by Konstantin Kopyrkin.