Trabajo finalizado
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Tarea técnica
I would like to build a simple indicator “TrendLine34” that will connect highest high , lowest low as on the attached pictures. Resistance levels and support levels. Swing levels and inner swing candles.
When the indicator will start to draw the trendline from point A to point B, the trendline should be at least 12 candles longer – picture -11.
Every new candle it should be extended until it will reach a candle as a 3rd touch.
When the 3rd touch will appear, the indicator should mark this specific candle in the BLUE box (option to change the color) 30 second before the price will be close. (30 seconds, - option to change the time)
The candle should blink for 30 seconds before the end of the candle.
The Blue Box blinking .
When the candle will cross the trendline on the 3rd touch, but it will return and close the price above the trendline or on the trendline, the box should remain BLUE.
BUT if the candle on the 3rd or 4th touch will cross the trendline , the box should be RED (option to change the color ) .
The Blue Box or Red Box should appear ONLY 30 seconds before the end of the candle.
The trendlines and Boxes should stay on the chart for about 5 days, unless I change in the variables, to keep it for only 1 day.
Default set up should be the last 5 days.
When there is a situation that there are only 2 points A and B connected and there was no 3rd touch. Such trendline should stop drawing the trendline after 5 days.
When the indicator is applied to the chart, there should be lines and boxes for the last 5 days.
There have to be at least 3 candles apart in order to draw a line between them.
It should work on all time frames.
Please add in variables the possibility to change the color and style of the lines and thickness.
Also please add minimum number of candles between point A and B and C. Default 3 candles minimum.
Please add expiration time and name of the account holder to the code as a protection.