Did you set the range of each parameter properly?
Ying Siang Ng #:
Did you set the range of each parameter properly?
Did you set the range of each parameter properly?
I think so, all inputs are in the correct range. I don't get any error when running the test. I attach the picture of how I define them. Thanks
Files:
inputs.jpg
45 kb
Ying Siang Ng #:
Ok thank you. Are you referring to ParameterSetRange() to be called within OnTesterInit() ?
From you answer, I can tell you didn't get my question. You need to set optimisation parameters range at your tester.
![Documentation on MQL5: Event Handling / OnTesterInit Documentation on MQL5: Event Handling / OnTesterInit](https://c.mql5.com/36/79/documentation-on-mql5-event-handling.png)
Documentation on MQL5: Event Handling / OnTesterInit
- www.mql5.com
OnTesterInit - Event Handling - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Ying Siang Ng #:
From you answer, I can tell you didn't get my question. You need to set optimisation parameters range at your tester.
I define the optimisation parameter as follow
void OnTesterInit(){ ParameterSetRange("addedToSL", true, 0.000150, 0.0, 0.00005, 0.0005); ParameterSetRange("TpRR", true, 1.0, 0.0, 0.1, 5.0); ParameterSetRange("RsiTsDiff0", true, 0.5, 0.0, 0.05, 1.0); ParameterSetRange("RsiTsDiff1", true, 0.5, 0.0, 0.05, 1.0); ParameterSetRange("RsiTsDiff3", true, 0.5, 0.0, 0.05, 1.0); }
But what I do not understand is that even the optimization "All symbols selected in marketwatch" is not working, while this is unrelated to the input
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi all,
I am quite new with MQL5 and trying to optimize an EA I wrote. I have no trouble testing my strategy on a single pair but once I try to optimize the inputs or test it on multiple symbols, the test run but not a single trade is taken on any pass. Any one had a similar problem?
Here is how I declared my input and how I'm trying to test only the tpRR input to begin with.
Thanks for any help!