how can i finish my OnTick function

 

I am a beginner in mql language and software.

i developing a EA but i have no idea about how can i finish OnTick function 


what i want to do is like this;

void OnTick()
{
        if(x>y)
        {

        OrderSend(blablabla);
        //and here the program should end
        }
}


 thanks for help^^

 
carry_00:I am a beginner in mql language and software. i developing a EA but i have no idea about how can i finish OnTick function what i want to do is like this; thanks for help^^ 
I suggest studying many different examples in the CodeBase and trying to understand how they work, and then adapting them to what you want.
 
Fernando Carreiro #:
I suggest studying many different examples in the CodeBase and trying to understand how they work, and then adapting them to what you want.
This is not the answer I was expecting but thanks anyway...
 
carry_00: i developing a EA but i have no idea about how can i finish OnTick function

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)

 
William Roeder #:

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)



OK thanks for sources and reply