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
I can't unfold it - I'll break my leg, it turns out that for those who build a system based on news releases - MT5 is rubbish, the time zone of quotations is repeatedly and at times chaotically changed. You are programmers, not programmers.
You should not wave your sword like that to the left and right,
You have a problem with time zones changing, it's not in the absence of news history in the tester, and in the absence of an api to the news in MQL5 (unacceptable to get such things through the objects, especially in the tester the objects do not work).
ZS We are waiting.
If we are talking about our company, we have no plans to develop systems to support virtual orders.
I'm sorry, maybe I didn't express myself correctly, but I didn't mean any system. It is simply an EA attached to a chart, in which you can virtually set orders and then monitor their profits.
You should not wave your sword like that to the left and to the right,
The problem is not so much in the change of time zones, but in the absence of news history in the tester, and the absence of an api to the news in MQL5 (it's not good to get such things through the objects, especially in the tester the objects do not work).
FW We are waiting.
It would be absolutely correct if you presented the quotes always in a certain time zone, you start with GMT+1, and the main array is like that.
It would be absolutely correct if you presented the quotes always in a certain time zone, you start with GMT+1, and the main array is like that.
This is not a question for MQ but for the broker, he is responsible for the quotes, MQ only provides the format.
Come on - what's a broker got to do with it - I'm discussing your quotes.
Other quotes - no way.
Come on - what's a broker got to do with it - I'm discussing your quotes.
Other quotes - no way.
Here is the code:
...
double ma_1_buf[], ma_2_buf[], kii_s_buf[];
...
void OnTick()
{
...
ma_1_handle=iMA(NULL, 0, period_ma_1, 0, MODE_LWMA, PRICE_CLOSE);
ma_2_handle=iMA(NULL, 0, period_ma_2, 0, MODE_LWMA, PRICE_CLOSE);
(I add a stop here)
...
CopyBuffer(ma_1_handle, 0, 0, 2, ma_1_buf);
CopyBuffer(ma_2_handle, 0, 0, 2, ma_2_buf);
...
}
Everything works fine, then I add one more line to get a handle for the custom indicator:
kii_s_handle=iCustom(NULL, 0, "KII_S.ex5", 10, 2);
and on getting the "ma_1_handle" handle, the error 4806 - The requested data was not found. What is the error?
Here's the code: