Random order code

 
Hi everyone, i just would like to know the mql4 code to generate random orders when OrderTotal() == 0.
 
 
Alain Verleyen:

I just want a simple code that is already existing. 
 
Magiceyes:
I just want a simple code that is already existing.


I will send you later when I am back at home
Write me a pm to remember me
 
Jan Tarnogrocki:
I will send you later when I am back at home
Write me a pm to remember me
 
 num = 2 * MathRand()/32768; //0 or 1
 
Jan Tarnogrocki:
Ok, but can I have it with a complete mql4 EA script, please? Because I'm little bit lost with mql4. Cordially.
 
Jan Tarnogrocki:
How to place that code in mql4 to make it work, plz?