Download MetaTrader 5

Random order code

To add comments, please log in or register
Have you developed a profitable strategy? Share it with millions of traders via Signals!
Magiceyes
74
Magiceyes 2015.05.21 13:55 
Hi everyone, i just would like to know the mql4 code to generate random orders when OrderTotal() == 0.
Alain Verleyen
Moderator
30707
Alain Verleyen 2015.05.21 14:00  
Magiceyes
74
Magiceyes 2015.05.21 17:37  
Alain Verleyen:

I just want a simple code that is already existing. 
Jan Tarnogrocki
6335
Jan Tarnogrocki 2015.05.24 13:34  
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
6335
Jan Tarnogrocki 2015.05.24 13:58  
Jan Tarnogrocki:
I will send you later when I am back at home
Write me a pm to remember me
Jan Tarnogrocki
6335
Jan Tarnogrocki 2015.05.24 13:59  
 num = 2 * MathRand()/32768; //0 or 1
Magiceyes
74
Magiceyes 2015.05.28 11:40  
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 2015.05.30 15:59  
Jan Tarnogrocki:
How to place that code in mql4 to make it work, plz?
To add comments, please log in or register