Watch how to download trading robots for free
Find us on Twitter!
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
Views:
86880
Rating:
(40)
Published:
2005.11.29 11:56
Updated:
2016.11.22 07:32
ZigZag.mq4 (8.21 KB) view
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

ZigZag Indicator tracks and connects extreme points of the chart, the distance between these points being equal or higher than the percentage specified for the price scale.

Depth is the minimal amount of bars where there will not be the second maximum (minimum) Deviation pips higher or lower than the previous one. I.e., ZigZag can always diverge, but it can converge (or completely draw together) more than at the Deviation value only after Depth bars. Backstep is the minimal amount of bars between maximums/minimums.

After the ZigZag has captured the lowest point, it starts to search for the turn point until the rollback down from the maximum value exceeds the parameter. As soon as rollover down exceeds the parameter, the second (in this case, the upper) point is considered for captured, and ZigZag starts to search for the third one (in this case, for the lower one), etc.

Full description of ZigZag is available in the Technical analysis: ZigZag

ZigZag indicator

ZigZag indicator

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

Stochastic Oscillator Stochastic Oscillator

The Stochastic Oscillator indicator compares where a security’s price closed relative to its price range over a given time period.

Relative Strength Index (RSI) Relative Strength Index (RSI)

The Relative Strength Index (RSI) technical indicator is a price-following oscillator that ranges between 0 and 100.

Close Close

Close - script closing first market order if it is first in the list.

Delete Pending Order Delete Pending Order

Delete pending order - script printing selected first in list pending order data and deleting pending order.