ZigZag Indicator with Trend Identification

2018.03.12 Indicators

Job finished

Execution time 2 minutes
Feedback from customer
With commitment and patience

Specification

Hi,

i need an ZigZag Indicator which also identifies the higher trendlevels.

The ZigZag indicator should start at a reltive high or low. Relative high is where the previous high of a candle and the next high of a candle was lower, relative low same but the previous low and next low must be higher. There should be an input how many candles in the past the indicator should look for this, e.g. 100, means 100 candles back, if 102 fullfill the creteria of relative high or low, then start with this.

Once the first candle found, the indicator should paint the lines indicating an upward or downward movement.

(1) Upward (2) cannot occur as there isnt a relative high or low (3) downward (4) neutral, wait for next candle

Once the initial movement is defined, all of the four situations above may occur. Lets assume there is an upward movement. (1) Continuing upward (3) turning from upward to downward (4) neutral, next candle, still upward .... what about (2)? its having higher high and lower low. Rule here: The existing overrules, if upward, then continuing upward when the candle body is long, if downward, continuing downward, WHEN the candle body is short, else turn.

On this lowest trendlevel the trend is defined. Its going up and down, creating 123 pattern. The next higher trendlevel only refers to the lowest trendlevel. As long the lowest trendlevel is in a downtrend, the upper trendlevel is in a downward movement, if the lowest trend is in an upward trend, the upper trendlevel is in an upward movement.

Ok but when the upward / downward movement of the upper level begin? When the lowest level starts an upward or downward trend by 123 pattern. Attention! When the lowest trend level breaks an upward or downward trend is the same as if a counter trend established.

Input is the number of historic candles. Outcome is the lowest trend level with lines, as per logic, it doesnt repaint. The upper level is painted based on the lowest trendlevel and will not repaint too.

Example

more examples grey line is lowest trend level, green and red are the upper trend




Another example for clarification,the lowest trend level (grey line) follows the highs and lows of the candles. Only the four situations explained above can occur. The upper trend level only follows the lowest trend level. You see how the trend breaks at the lowest level also defines upward or downward movements of the upper level. I have more examples if needed.




Responded

1
Developer 1
2018.03.12
Rating
4.44
(34)
Projects
116
28%
Arbitration
56
14% / 48%
Overdue
62
53%
Loaded
2
Developer 2
2018.03.12
Rating
4.85
(209)
Projects
308
43%
Arbitration
56
18% / 68%
Overdue
70
23%
Working
3
Developer 3
2018.03.12
Rating
0
Projects
0
0%
Arbitration
0
Overdue
0
Free
4
Developer 4
2018.03.12
Rating
4.82
(128)
Projects
234
65%
Arbitration
30
37% / 23%
Overdue
83
35%
Free
5
Developer 5
2018.03.12
Rating
4.93
(174)
Projects
249
31%
Arbitration
18
22% / 33%
Overdue
51
20%
Working
6
Developer 6
2018.03.13
Rating
0
Projects
0
0%
Arbitration
0
Overdue
0
Free
7
Developer 7
2018.03.13
Rating
4.71
(164)
Projects
292
42%
Arbitration
116
16% / 41%
Overdue
126
43%
Busy
8
Developer 8
2018.03.13
Rating
5
(4)
Projects
4
75%
Arbitration
0
Overdue
1
25%
Free

Project information

Budget
100+ USD
Deadlines
to 5 day(s)