Compile

 
I needed to compile a script first and then a robot

I give you the coded script

Automatic translation applied by moderator

Files:
script2.mq5  6 kb
 

Please explain in more detail. Your query makes no sense.

Also, please post in English. Either use the automatic translation tool, or post in one of the other language forums.

 
you may virus that change text. that's why I can't compile that script
 
alberto paredes garcia #: you may virus that change text. that's why I can't compile that script

There is no virus. Your code has extra text at the end which is not compilable ...

//+------------------------------------------------------------------+
Los cambios principales fueron:

Corrección en rutas de #include
Corrección caracteres de escape en variables
Agregar ; al final de ChartOpen
Agregar llaves { } al bloque if--------------------------------------------------+

You need comment it out. Do you even know how to code?

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

/*
Los cambios principales fueron:

Corrección en rutas de #include
Corrección caracteres de escape en variables
Agregar ; al final de ChartOpen
Agregar llaves { } al bloque if--------------------------------------------------+
*/