MultiZigZagAnother Variant of ZigZag (Economic ZigZag)

0
(0)
이름:
MultiZigZag - Another Variant of ZigZag (Economic ZigZag) [ ]
작가: nen (2008.11.24 10:08)
다운로드됨: 7558
다운로드:
MultiZigZag - Another Variant of ZigZag (Economic ZigZag) 1
MultiZigZag.mq4 (19.6 kb) 보다
It is based on the algorithm of the zigzag delivered together with MetaTrader 4 ~에 2005-2006.

The algorithm is wonderful. It is the algorithm which is used in many custom indicators. Initially this algorithm was translated to MQL4 by Rosh. Many thanks to him for that. I would like to know who has invented this algorithm. If somenody knows, please write the name (or nickname) of the author in comments. Also I would like to know in which language it was previously written and in which trading platform it was used.

The main disadvantages of the initial, 2005-2006, 버전:

1) A big loading of the processor by the reason of the full recalculation of the zigzag on every tick. The low-power PCs virtually hanged during the intense movements at the market.

2) The inacccurate drawing. The fractures of the zigzag just hanged down "in the air" without binding to the maximum (최저한의) of the bar. But conceptually the zigzag must show the exact position of minimum (최고) 차트에서.

3) The zigzag begins hovering if you try to scroll back the history and it is drawn without visual binding to the chart.

This version of zigzag is relieved from all disadvantages listed above. Only the last three rays of the zigzag are recalculated. At that, the recalculation is performed only when the prices step out of the calculated part of the zero bar. I.e. when the minimum or maximum of the zero bar is zeroised, or when a new bar appears, or when the history is being uploaded.

Each of three zigzags uses two buffers. One buffer is for the maximums and the other one is for minimums. This allows to output the maximum and the minimum on a single bar. There are two vacant buffers. Those who want can write up the code and insert the fourth specimen of the code. This can be a good lesson for the apprentice MQL4 programmers. Or you can use the vacant buffers for some other tasks, in case the zigzag will be inserted into the developed systems.

The calculation and drawing of the zigzags from larger timeframes are implemented without using the icustom() 기능. For the automation purposes we can discard the indicator buffers. In this case we can calculate the zigzags for all timeframes simultaneously and also for any number of the symbols. If only there is enough ram memory. The realization of calculation without the icustom() function allows to perform, 예를 들어, the search of the patterns (Gartley or the others) not only on the current timeframes, but on any chosen timeframe and also on several timeframes simultaneously.

매개변수.

Most of the external parameters are the string variables.

The parameters separated by commas are written in each string variable for each zigzag. The separator of the parameters is comma.

The first digit is for the first zigzag, the second one - for second and the third is for third. Separated by commas.
ExtDepth, ExtDeviation and ExtBackstep are the standard parameters for the zigzag.
If you set ExtDepth=0, then the corresponding zigzag will not be displayed.

ExtMaxBar - the number of the bars the zigzag will be calculated on.
GrossPeriod - the periods of the charts specified in minutes the data will be taken from for the zigzag calculation. If you specify 0 the zigzag will be calculated on the current timeframe.

You can specify the following values: 0-1-5-15-30-60-240-1440-10080-43200.
ExtReCalculate - the number of extremums of the zigzag beginning from 0 that are recalculated in the real time mode. It is used for the zigzags from the larger timeframes. It is recommended not to change this parameter.

The zigzags are displayed from H1-H4-D1 on default. The zigzags will be displayed beginning from the 1 minute timeframe and finishing with the daily timeframe. Only one zigzag that is drawn by the data taken from the D1 timeframe will be displayed on the daily timeframe. Only the zigzags on the basis of the larger or current timeframes are drawn.

The example in the picture: the zigzag from H1 is drawn with the Aqua color, H4 - with the Red and D1 - with the Yellow.

MultiZigZag - Another Variant of ZigZag (Economic ZigZag) 2

이 게시물이 얼마나 유용했나요??

평가하려면 별표를 클릭하세요.!

평균 평점 0 / 5. 투표수: 0

현재까지 투표가 없습니다! 이 게시물을 가장 먼저 평가해 보세요..

이 게시물이 귀하에게 도움이 되지 못했다니 죄송합니다!

이 게시물을 개선해 보겠습니다.!

이 게시물을 개선할 수 있는 방법을 알려주세요.?



작가: 외환 위키 팀
우리는 경험이 풍부한 Forex 트레이더 팀입니다. [2000-2023] 우리 자신의 조건에 따라 삶을 살기 위해 헌신하는 사람들. 우리의 주요 목표는 재정적 독립과 자유를 얻는 것입니다., 우리는 자기 교육을 추구하고 Forex 시장에서 자립 가능한 라이프 스타일을 달성하기 위한 수단으로 광범위한 경험을 얻었습니다..