Here's a slight variation on the "random entry" theme. This version of the expert advisor actually uses a random number generator to decide whether to go long or short. It ought to be a pretty good simulation of simply tossing a coin to decide on the direction of each trade.
This version has an extra input setting. If "ReallyRandom" is set to true, then every backtest run should see a different sequence of simulated tosses of the coin. If that input is instead set to false, every backtest run should see exactly the same sequence of simulated coin tosses.
Compare it with the original version of GuruEx01 and see what difference a really random entry makes, compared to using the last tick to determine the entry direction.


Reply With Quote
