Well declare a counter to be varied by the tester 0 .. 999 999 999 999 and no Genetic optimization!
And vary your vars in OnInit(). But you have to print the varied vars otherwise you won't know them!
Well declare a counter to be varied by the tester 0 .. 999 999 999 999 and no Genetic optimization!
And vary your vars in OnInit(). But you have to print the varied vars otherwise you won't know them!
Hi Carl, thanks for your response.
From the documentation, it says that the print function won't work in optimisation strategy tester. So I am not sure if this method can work.
Are you aware of a way around this?
Cheers,
Results tab -> right click on a line -> copy -> paste somewhere. |
I would like to use the Strategy Tester Optimiser (MT4) to do random (use random combinations of my variables) passes, rather than the Genetic Algorithm optimise these variables for a particular factor (Profit etc).
If anybody knows such a way to achieve this, I would be very grateful to hear from you.
Results tab -> right click on a line -> copy -> paste somewhere. |
Setup the tester to optimize custom value and return random value from OnTester event handler in EA code. Keep genetics on.
Thanks Stanislav,
I will read about the OnTester now, as I don't already have that function in my code.
If you would be willing to give a little more into how this works it would be greatly appreciated.
Thanks again,
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello All,
I would like to use the Strategy Tester Optimiser (MT4) to do random (use random combinations of my variables) passes, rather than the Genetic Algorithm optimise these variables for a particular factor (Profit etc).
If anybody knows such a way to achieve this, I would be very grateful to hear from you.
All the best,
W