Ideal ZigZag

Ideal ZigZag

Advantages :

  1. The most expensive function is iBarShift which totally replaces all cycles in the code needed for peaks retrieval.
  2. All information needed to build ZZ for every bar is accessible not only in every moment but also for every extern code.
  3. No suspended peaks
  4. An efficient method to find peaks is available
  5. Very fast
  6. Works correct at history insertions and when switching TFs.
  7. Perfect for use in EA.

Disadvantages :

1. Memory requirements. This indicator uses 5 buffers instead of 2 (or even 1) in other similar implementations. But (IMHO) this is a good price for advantages #6 and #7. None of the fast ZigZags I have seen can process history insertions without a full rebuild. Mine does it. Moreover, it does it an inefficient way

2. Additional lines are available. This is required to make the data visible for any external code. These lines should never be visible.

Principle:

The ZZ is drawn by the channelling principle.

The channel width can be defined in Points (XLab_ZZ) or in Percent (XLab_ZZP)

Register to download