Trendline Indicator, setup Scanner

MQL5 Indicators Scripts

Specification

Hello, I need an indicator and a scanner based on this indicator.

The indicator would draw trend lines like in the screenshot (something similar to ZigZag). The change in the direction of the trend drawing occurs when the next candle breaks, depending on the current direction, high or low of the previous candle or the rise of an inside bar, outside bar. ( image.png)

-When the next candle has a higher high and a higher low than the previous candle, the trend is drawn upwards

-When the next candle has a lower high and a lower low than the previous candle, the trend is drawn downwards

-In case of Inside bar, there is a change in the direction of the drawn trend

-In the case of the outside bar, the indicator should check whether the current candle first broke the high or low of the previous bar and draw a trend depending on it

Attached I am sending a version of the indicator on mt4 (unfortunately I do not have the source code).


Scanner is supposed to search for 1 setup and send a notification.


Setup - Action knocks out the previous bottom/peak, 3 consolidation trends are formed, where the 3rd trend knocks out a correction ( 1 consolidation trend). A notification is created when the last candle in the 3 trend is broken out. ( setup. jpg)


Action- ( green line on screen)

previous bottom - 1 dołek

1 consolidation trend- red arrow

2nd- yellow...

3rd- blue...

break of 3rd  consolidation trend - purple line 



Files:

PNG
image.png
9.2 Kb
JPG
setup.jpg
24.9 Kb
JPG
qqq.jpg
10.5 Kb
JPG
qq.jpg
16.9 Kb
JPG
q.jpg
6.2 Kb

Responded

1
Developer 1
Rating
(155)
Projects
239
70%
Arbitration
3
67% / 33%
Overdue
20
8%
Free
2
Developer 2
Rating
(152)
Projects
228
80%
Arbitration
22
27% / 50%
Overdue
11
5%
Free
Published: 24 articles, 1882 codes
3
Developer 3
Rating
(1)
Projects
1
0%
Arbitration
2
0% / 50%
Overdue
0
Free

Project information

Budget
50+ USD