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

Source code library - Expert Advisors, Indicators and Scripts

Freelancers needed to develop Expert Advisors for traders
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:
7717
Rating:
votes: 1
Files:

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
Last comments | Go to discussion (4)
crom
CROM | 16 Mar 2012 at 18:20

Good job, flaab..


Thanks for sharing...

MQL4 Comments
mql4_comments | 18 Jul 2012 at 03:55

Thx for sharing Flaab! :-)

It does show the dot maybe 3-4 bars later though. Is it supposed to do that?

Point Zero
flaab | 31 May 2013 at 11:21
bnbb2004:

Thx for sharing Flaab! :-)

It does show the dot maybe 3-4 bars later though. Is it supposed to do that?

Yes. The very definition of fractals forces it.
MQL4 Comments
mql4_comments | 9 Nov 2013 at 08:15
why MT4 cant load this indicator ?