MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Source code library - Expert Advisors, Indicators and Scripts

Update to MetaTrader 4 build 735 and Test the VPS for Free
To post a new code, please log in or register

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2012.03.16 06:10
Double ZigZag (no repaint)

Double ZigZag (no repaint) - indicator for MetaTrader 4

| English Spanish Portuguese

Views:
10271
Rating:
votes: 1

Description:

This indicator is very simple: it shows signals triggered using two different ZigZag indicators (fast and slow) without any filtering.

It does never -ever- repaint a past signal and therefore is useful to study the real behavior of the ZigZag indicator -which does repaint- as a trading tool over time.

As you can see, many signals are repainted by ZigZag indicator over time. Fractals have been used to reduce the number of highs and lows painted.

It depends on original MetaQuotes ZigZag indicator -attached-.

Images:



Recommendations:

  • Do not trade this indicator by itself
  • This indicator has been made for educational purposes only -not for actual trading-
  • You can use this indicator template to filter zigzag signals with your trading strategy
  • You can study the relationship between not-repainted fast and slow zigzag signals over time

Color convention:

  • Orange dots are signals shared by both ZigZags
  • Blue dots are only Fast ZigZag signals
  • Red dots are only Slow ZigZag signals (only seen if fast ZigZag is hidden)

Input parameters:

  • CalculateOnBarClose (default: true) - Determines if unclosed bar is evaluated
  • ZigZagFast (default: 6) Set as 0 to hide it
  • ZigZagSlow(default: 24) Set as 0 to hide it