correct trend indicator source code

 

Good Morning. Can someone help me fix this source code of mq5 that can make it run ... please. Thank you+

***

Files:
trend.mq5  14 kb
 
Gustavo Adolfo Ortega Osorio :

Good Morning. Can someone help me fix this source code of mq5 that can make it run ... please. Thank you+

Step 1: throw out all the includes

Step 2: use arrays that ALREADY are in OnCalculate

 
I do not know how to do it. can you fix it for me?
 
Gustavo Adolfo Ortega Osorio :
I do not know how to do it. can you fix it for me?

Where did you get this code?

This is NOT MQL5 code.
 
  1. Gustavo Adolfo Ortega Osorio: I do not know how to do it. can you fix it for me?

    Help you with what? 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.08.21

    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.04.21


  2. The code it MT4 with a little MT5 which wont work.

    Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page)?
              General rules and best pratices of the Forum. - General - MQL5 programming forum?
    Next time post in the correct place. The moderators will likely move this thread there soon.