Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

ZigZag_Oscillator - indicator for MetaTrader 5

Views:
14953
Rating:
(26)
Published:
2019.02.07 08:48
\MQL5\Indicators\Examples\
ZigZag.mq5 (9.33 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Indicator ZigZag Oscillator displays in a separate chart window a colored histogram of the Close price distance from the ZigZag pivot point (break).

It has four configurable parameters:

  • ZigZag Depth - parameter ZigZag Depth
  • ZigZag Deviation - parameter ZigZag Deviation
  • ZigZag Backstep - parameter ZigZag Backstep
  • ZigZag pivot point - pivot point to start calculating the distance from

Calculations:

ZZOsc = 100 * (Close - LastZZ) / LastZZ

where:

LastZZ - ZigZag price on the pivot point

If the pivot point is equal to zero, then the counting will be started from the nearest left ZigZag break or from the end of its last ray.

Fig. 1. ZigZag Oscillator + ZigZag, ZigZag pivot point = 0


Fig. 2. ZigZag Oscillator + ZigZag, ZigZag pivot point = 1


Fig. 3. ZigZag Oscillator + ZigZag, ZigZag pivot point = 2

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/23420

MTF_Stochastic_RSI MTF_Stochastic_RSI

Indicator Multi timeframes Stochastic RSI

PriceChannel PriceChannel

A price channel based on a bar of user-defined duration (timeframe).

Fraktrak xonax Fraktrak xonax

A trading system based on breaking through iFractals

Advanced_Fractal_Overlay Advanced_Fractal_Overlay

Indicator Advanced Fractal Overlay