• Overview
  • Reviews (1)
  • Comments (3)

ZigZagLW Addition

This is a functional extension of the ZigZagLW indicator. It detects the beginning of a new trend signaling of a new indicator line shoulder of a specified level. This is a stand-alone indicator, which means you do not need the activated ZigZagLW indicator for correct operation.

Algorithm logic

To understand the logic of the indicator, let's take a look at the screenshots consistently displaying the conditions for the signals formation. The chart has ZigZagLW indicator with the Short_term and Medium_term lines. Besides, the chart also has the present indicator with term = Medium_term and SoundSignal = false. This means the Medium_term line is tracked.

The first screenshot displays the А price level. When it is crossed by the current price, a new Medium_term shoulder of the ZigZagLW indicator is formed and the addition provides a buy signal.

The second screenshot shows the condition described above but the signal is not activated. The reason lies in ZigZagLW which is calculated based on formed bars, while the last bar has not been formed yet.

On the third screenshot, the bar and the new Medium_term shoulder of the ZigZagLW indicator have formed and the addition activates the buy signal near the current price.

The fourth screenshot reflects the natural movement of the price.

The following screenshots show the formation of a sell signal.

Input parameters

The inputs are displayed on the last screenshot:

  • Term – select the ZigZagLW indicator line for tracking. It can accept the following values:
    • Short_term
    • Medium_term
    • Long_term1
  • SignalSound – enable/disable a sound when a buy/sell signal is activated.

The page https://www.mql5.com/en/code/19646 provides a link to a sample Expert Advisor which demonstrates the use of the indicator for building a mechanical trading system.

Note: similar MQL4 indicator is also available.

Recommended products
EVGENII PANIN 2020.01.30 22:04 

Индикатор показывает все, что угодно, но только не то, что написано в описании к индикатору. Сигналы все падают в никуда - статистика 8 убыточных ан 2 прибыльных. Зря потраченные деньги