Problems with Mql4 EA

 

Hello alls

I,m trying to finish Ea, but error code is coming all time.

COde are next:

'input' - name expected Tendencías MA.mq4 52 1

And part that comes this on EA are next:

/+---------------------------------------------------------------+

//|         PROCESAMIENTO PRELIMINAR                                                     |

//+---------------------------------------------------------------+

input (Period_MA_1) OnTick()


  if (Bars<Period_MA_1) // No hay suficientes barras 

    { 

     Alert("No hay suficientes barras en la ventana. El AE no trabaja."); 

    return(INIT_SUCCEEDED);   // Salida de start()

    } 

  if(Work==false) // Error crítico 

    {

    Alert("Error crítico. AE no trabaja.");

    return(INIT_SUCCEEDED);  // Salida de start() 

   }

I tried all my best but still coming.

I'm really thankful if someone could help me...

Thanks,

Joan

 

Forum on trading, automated trading systems and testing trading strategies


When you post code please use the CODE button (Alt-S)!

Use the CODE button

 
input (Period_MA_1) OnTick()

This is gibberish. Learn to code it.
 
William Roeder:
This is gibberish. Learn to code it.

Many thanks William,

I tried but still doesn't work.... I believe is a problem with all code mql4...

 
Joan45: I tried but still doesn't work.... I believe is a problem with all code mql4...
  1. "Doesn't work" is meaningless — just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires — meaningless.

  2. Don't post code that doesn't compile. The problem is not "with all code." The problem is you not understanding the language. Learn. 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 yours.

  3. Once you get that far, Show us your attempt (using the CODE button) and state the nature of your problem.
              No free help 2017.04.21

  4. Why did you post your MT4 question in the Root / 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.