How to start script under Expert Advisor?

 

I would like to run script in the external file under Expert Advisor after the condition is done. Anybody knows how to write code in MQL ?


For example:


if (Period() == 5) { RUN SCRIPT SET_ORDER.MQ4 }


How to modify above code ?

 
puncher wrote >>

I would like to run script in the external file under Expert Advisor after the condition is done. Anybody knows how to write code in MQL ?

For example:

if (Period() == 5) { RUN SCRIPT SET_ORDER.MQ4 }

How to modify above code ?

As I remember there is no way to call a script inside EA. The simple way to do is put the code of the script into a single function (whatever as a library or the code of EA itself) and call it as a normal function call.

 
hmmm wheee :(
 
puncher wrote >>
hmmm wheee :(

if (Period() == 5) { SET_ORDER() }

Void SET_ORDER()

{

< Your Script body>

}

Reason: