![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
Updates to the 441 build servers were released last night for our demo server and the brokers will have an update on Saturday.
Unfortunately due to the high volume of changes, the last official 425 server update was a month ago. Now updates to the servers will be more frequent again.
The bug with the history after the weekend was fixed a long time ago, it shouldn't happen again in the 441 build.
Noticed an oddity with build 441
When testing on history for last 1.5 years, M5, GBPUSD, only opening prices. There were 20 runs in 50 minutes, with 8 agents running.
It used to be several orders of magnitude faster. And I also noticed that the longer the test, the slower and slower the runs get.
Only 22 runs have been done in 75 minutes so far.
Noticed an oddity with build 441
When testing on history for last 1.5 years, M5, GBPUSD, only opening prices. There were 20 runs in 50 minutes, with 8 agents running.
It used to be several orders of magnitude faster. And I've also noticed that the longer the test, the slower and slower the runs get.
My MetaEditor, when trying to compile, complains about the last line of the given code fragment:
It says the following: 'CopyRealVolume' - no one of the overloads can be applied to the function call
I can't understand the reason...?
My MetaEditor, when trying to compile, complains about the last line of the given code fragment:
It says the following: 'CopyRealVolume' - no one of the overloads can be applied to the function call
I cannot understand the reason...?
Perhaps you should cite all the related code fragments.
Try it this way. This error(no one of the overloads can be applied to the function call) appeared in my code when the array type did not correspond to the necessary one or brackets were missing near arrays.
I guess you have to quote all the related code sections, don't you?
Try it this way. I had such an error(no one of the overloads can be applied to the function call) appear if the array type did not match the required one or if brackets were missing for arrays.
I guess my wife is right when saying that sometimes you should sleep at night...
Indeed, the wrong type of array was specified, I corrected it and everything is OK. Thanks for the tip.
I'm going to take a nap...
I am not generating events for some reason
I checked under the debugger...
Maybe I'm doing something wrong, tell me
I am not generating events for some reason
I checked under the debugger...
Maybe I'm doing something wrong, tell me.
Check the chart settings, there were changes in the 439 build - https://www.mql5.com/ru/forum/23/page11#comment_62184
I am not generating events for some reason
I checked under the debugger...
Maybe I'm doing something wrong, tell me
I want to collect tester's ticks for testing of virtual trading, I do the following (M1 timeframe is specified everywhere, EURUSD pair):
//Collect tester's ticks: c'20.08.2010 00:00:00' to D'01.10.2010 00:00:00'
void OnTick()
{
MqlTick last_tick;
if(SymbolInfoTick(Symbol(),last_tick))
{
if(last_tick.time>=D'20.08.2010 00:00:00')Print(last_tick.bid);
}
else Print("SymbolInfoTick() failed, error = ",GetLastError());
if(last_tick.time>=D'01.10.2010 00:00:00')ExpertRemove();
}
Then I take these ticks from the log and put them into an array in another Expert Advisor. When comparing the volume of ticks for the above period and ticks in the log file, I notice that there is data loss in the ticks file.
The ticks in the file: 1159105, and the tick volume for this period: 1161872
What could it be due to? How do I get the correct ticks from the tester?