Specific zigzag

MQL4 Indicators

Job finished

Execution time 2 days
Feedback from employee
Thank you very much, it has been a please to work with.
Feedback from customer
Excellent programmer. Very responsive, attentive to his clients and their expectations. Friendly, courteous, and committed to delivering a fully finished project. Highly recommended.

Specification

Dear programmers


I have a new order.

It's a zigzag-type indicator. (MQL4)

I can choose the color of the trendlines and their thickness. Bullish and bearish trendlines have the same color.

I can choose a different color for each time frame.

The zigzag appears individually on each timeframe, I mean there is no overlap of the different timeframes.

I can choose from how many candles in the past the indicator starts,

Obviously, trendlines connect highs to lows, and lows to the next highs.


Here are the rules of th zigzag :


A bullish segment is defined as: a succession (at least one)

of bullish candles (without interruption) followed by a succession (at least one) of bearish candles (without interruption). Be careful because the bearish candles are included in the segment. We then determine the high point of this segment. (It is therefore perfectly possible that this high point is the top of a bearish candle.)


From this high point the next bearish segment begins.


A bearish segment is defined as: a succession (of at least one) of bearish candles (without interruption) followed by a succession (of at least one) of bullish candles (without interruption). Note that bullish candles are included in the segment. We then determine the low point of this segment. (It is therefore entirely possible that this low point is the bottom of a bullish candle.)


Then from this low point begins the next bullish segment, and so on.


Special case: If a candle is neither bearish nor bullish (opening price = closing price) We consider that this candle has the same color as the previous candle.


I attach an illustration.


Thank you.


Files:

Responded

1
Developer 1
Rating
(208)
Projects
310
34%
Arbitration
59
36% / 39%
Overdue
100
32%
Working
2
Developer 2
Rating
(845)
Projects
1446
72%
Arbitration
119
29% / 47%
Overdue
355
25%
Working
Published: 3 articles

Project information

Budget
30+ USD