Download MetaTrader 5

Random order code

To add comments, please log in or register
Magiceyes
74
Magiceyes  
Hi everyone, i just would like to know the mql4 code to generate random orders when OrderTotal() == 0.
Alain Verleyen
Moderator
31604
Alain Verleyen  
Magiceyes
74
Magiceyes  
Alain Verleyen:

I just want a simple code that is already existing. 
Jan Tarnogrocki
6336
Jan Tarnogrocki  
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
6336
Jan Tarnogrocki  
Jan Tarnogrocki:
I will send you later when I am back at home
Write me a pm to remember me
Jan Tarnogrocki
6336
Jan Tarnogrocki  
 num = 2 * MathRand()/32768; //0 or 1
Magiceyes
74
Magiceyes  
Jan Tarnogrocki:
Ok, but can I have it with a complete mql4 EA script, please? Because I'm little bit lost with mql4. Cordially.
Magiceyes
74
Magiceyes  
Jan Tarnogrocki:
How to place that code in mql4 to make it work, plz?
To add comments, please log in or register