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
You should place
string PairsDisplay[4];
double xwpr[4];
double lotac;
int jxmd=3;
outside OnTick(), they do not have to be redeclared everytime a new tick arrives...
What happens to global variables when the platform crashes?
Another problem:
If the Expert Advisor's behavior during preliminary testing essentially differs from that during the Championship, the Expert Advisor will be disqualified.
You know, the multi pairs EA has different testing result in different symbol. I test EA in EURUSD, it don't open long trades for AUDUSD, then test it in AUDUSD, it don't open short trades for EURUSD!! And I believe it will open both long and short trades for EURUSD & AUDUSD in ATC. How about this case?
Another problem:
If the Expert Advisor's behavior during preliminary testing essentially differs from that during the Championship, the Expert Advisor will be disqualified.
For example https://championship.mql5.com/2010/en/news/51
Thank you, stringo.
How to resolve the problem that multiple pairs EA has different testing result in different testing symbol? I use onTimer() but it seems useless.
Whether the different from tester bug? If yes, the EA should pass ATC, right?
Can global variables work for array? I don't know. Any example? Thank you!
string globalname;
double data2save[];
int arraysize = ArraySize(data2save);
int i;
// storing values..
for( i = 0; i < arraysize; i++ ) {
StringConcatenate( globalname, "data2save", i );
GlobalVariableSet( globalname, data2save[i] );
}
// getting values..
for( i = 0; i < arraysize; i++ ) {
StringContatenate( globalname, "data2save", i );
data2save[i] = GlobalVariableGet( globalname );
}
Thank you, stringo.
How to resolve the problem that multiple pairs EA has different testing result in different testing symbol? I use onTimer() but it seems useless.
Whether the different from tester bug? If yes, the EA should pass ATC, right?