Random outputs
-
Hello friends,
I have a question please. I know this question, probably, hasn't been asked before but how can i have a block or group of blocks that gives random signals? The 'Random outputs' block seems to give only alternating signals, at least in back testing.
The reason i need this, I want to experiment with different risk management ideas and to know they work and improve on them i need the most gambling-ish entry signals possible.
Thank you,
A -
@akulus You can generate random numbers with MathRand mql4 function. Here's an example that buys 20% of the time and sells 20% of the time:
https://fxdreema.com/shared/zqkptwoqbIf you use MathRand, remember to first set up the pseudorandom generator with function MathSrand.
https://docs.mql4.com/math/mathrand
https://docs.mql4.com/math/mathsrand