How to draw lines from candlestick patterns and delete it when new candle crosses it

 

Hi, I am newbie here and saw this article

https://www.mql5.com/en/articles/101

Candlestick patterns made me more interesting to see how the chart behaves when these patterns forms.

If you see this indicator https://www.mql5.com/en/market/product/60813?source=Site+Market+MT5+Indicator+Free+Search+Rating006%3acandlestick+patterns

it draws trend lines and disappears when new candle crosses it.

It would be nice if I had the code of that indicator(CandlestickForMt5)

So if anyone know how to implement the same function in the article(Analyzing Candlestick Patterns) it would be of much help.

I searched the forum and implemented to draw lines with OBJ_TRENDLINE but I don't know how to disappear it when new candle crosses it:(

Please someone help! The code is in the article itself(https://www.mql5.com/en/articles/101)

I want to implement the trend lines from this indicator - CandlestickForMt5 (https://www.mql5.com/en/market/product/60813?source=Site+Market+MT5+Indicator+Free+Search+Rating006%3acandlestick+patterns)

Analyzing Candlestick Patterns
Analyzing Candlestick Patterns
  • www.mql5.com
Construction of Japanese candlestick chart and analysis of candlestick patterns constitute an amazing area of technical analysis. The advantage of candlesticks is that they represent data in such a manner that you can track the dynamics inside the data. In this article we analyze candlestick types, classification of candlestick patterns and present an indicator that can determine candlestick patterns.