ZigZag

ZigZag:

ESB supports standard ZigZag for obtaining any properties of the indicator. Parameters are:

  • Depth: zigzag depth (default: 12)
  • Deviation: zigzag deviation (default: 5)
  • Backstep: zigzag backstep (default: 3)

In all of ZZ indicators, indicator shift is important and ZigZag is considered from indicator shift.

For obtaining an extremum (peak or trough), you need to set the index of that extremum. See image below:

  • index: number of extremum, peak or trough as is shown in image above

(Be careful about Shift of indicator and index of extremum or peak or trough)

NameParametersDescription
[ZIGZAG] Main Linedepth, deviation, backstepReturns value of the ZigZag
[ZIGZAG] Extremumdepth, deviation, backstep, indexReturns value of the Nth extremum that N=Index
[ZIGZAG] Peakdepth, deviation, backstep, indexReturns value of the Nth peak that N=Index
[ZIGZAG] Troughdepth, deviation, backstep, indexReturns value of the Nth trough that N=Index
[ZIGZAG] is Up Linedepth, deviation, backstepReturns true if zigzag line slope is positive
[ZIGZAG] is Down Linedepth, deviation, backstepReturns true if zigzag line slope is negative
[ZIGZAG] is Swingdepth, deviation, backstepReturns true if desired candle shift is a zigzag extremum
[ZIGZAG] is Swing Peakdepth, deviation, backstepReturns true if desired candle shift is a zigzag peak
[ZIGZAG] is Swing Troughdepth, deviation, backstepReturns true if desired candle shift is a zigzag trough
[ZIGZAG] Next Upper Extremumdepth, deviation, backstep, min distance, max candles, max extremums   Note: distance is in points   default: 12,5,3,50,1000,100Returns value of next upper extremum by this conditions: Ext distance to current price > min distancemax candles: maximum number of candles to checkmax extremums: maximum number of extremums to check
[ZIGZAG] Next Lower Extremumdepth, deviation, backstep, min distance, max candles, max extremums   Note: distance is in points   default: 12,5,3,50,1000,100Returns value of next lower extremum by this conditions: Ext distance to current price > min distancemax candles: maximum number of candles to checkmax extremums: maximum number of extremums to check
[ZIGZAG] is Up Trenddepth, deviation, backstep, min extremums     default: 12,5,3,2Returns true if ZigZag shows up trend   min extremums: minimum number of extremums for identifying trend
[ZIGZAG] is Down Trenddepth, deviation, backstep, min extremums   default: 12,5,3,2Returns true if ZigZag shows down trend   min extremums: minimum number of extremums for identifying trend
[ZIGZAG] is Side Marketdepth, deviation, backstep, min extremums   default: 12,5,3,2Returns true if ZigZag shows down side market   min extremums: minimum number of extremums for identifying trend