Please I need help to code a trend line either on mt4 or mt5

 
Please I have been battling on how to create a trend line ea.

The idea I want to code is a trend line with two point.

1. First high point will look back from current candle back to 48 previous candle

2. Second high point will look back from current candle back to 24 previous candle

3. The first low point will look back from current candle back to 48 previous candles

4 the second low point will look back from current candle back to 24 previous candles

5. Once current time = 00:01 let a static trend high and low line be created base on the above concept

6. Once current time >= 23:59 let all static lines high and low be deleted

 

You haven't stated a problem, you stated a want.
     How To Ask Questions The Smart Way. (2004)
          Prune pointless queries.

You have only four choices:

  1. Search for it (CodeBase or Market). Do you expect us to do your research for you?

  2. Beg at:

  3. MT4: Learn to code it.
    MT5: Begin learning to code it.

    If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into your code.

  4. Or pay (Freelance) someone to code it. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum (2019)

We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
          No free help (2017)