Because it's a combat EA even in frame mode. This is the reason why you need to check the frame flag in OnChartEvent, otherwise this kind of trouble can happen
sinputuint Range = 100;
#define SETRANGE(A, START, STEP, END) ParameterSetRange(#A, true, A, START, STEP, END)
voidOnTesterInit() { SETRANGE(Range, 0, 1, Range); }
voidOnTesterDeinit() {}
voidOnChartEvent(constint id,constlong& lparam,constdouble& dparam,conststring& sparam)
{
staticconstbool IsFrame = MQLInfoInteger(MQL_FRAME_MODE);
// if (!IsFrame) // без этой проверки Терминал (не только Агент) начнет выставлять ордера на реальном счете во время запуска ОптимизацииOrderSend(_Symbol, OP_BUY, 1, Ask, 100, 0, 0);
}
This seems to be the first time this has been voiced. Which means that Market Products creates a nasty vulnerability... And it's very hard to get around this vulnerability. Detecting it is similarly difficult.
Good afternoon. Maybe not to the right place, hint, in therhimnal instead of Russian words (menu, etc.) set of Russian letters not connected... How to fix it, reinstalling MT4 did not help.
Denis Rodionov: Hello. Maybe not to the right place, tell me instead of the Russian words (menu, etc.) set of Russian letters are not related... How to fix it, reinstalling MT4 did not help.
It is most likely that you are not set to Cyrillic, or someone else has changed it.
In the language and region settings you need to find the tab where the menu item is
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Good afternoon!
While optimising the EA I found that it is performing non-sanctioned trading!
I.e. when I start optimisation the EA automatically starts in real time.
Although the problem can be solved by enabling the banning of algotrading or manually removing the EA, the effect seems to me to be undesirable.
Good afternoon!
While optimising the EA I found that it is performing non-sanctioned trading!
I.e. when I start optimisation the EA automatically starts in real time.
Although the problem can be solved by enabling the banning of algotrading or manually removing the EA, the effect seems to me to be undesirable.
This is the forum for trading, automated trading systems and strategy testing.
Peculiarities of mql5 language, tips and tricks
fxsaber, 2018.02.22 09:47
Because it's a combat EA even in frame mode. This is the reason why you need to check the frame flag in OnChartEvent, otherwise this kind of trouble can happen
This seems to be the first time this has been voiced. Which means that Market Products creates a nasty vulnerability... And it's very hard to get around this vulnerability. Detecting it is similarly difficult.
In Market Discussions there is no possibility to edit your post.
In Market Discussions there is no possibility to edit your post.
What is it?
What is it?
Social trading ))
Hello. Maybe not to the right place, tell me instead of the Russian words (menu, etc.) set of Russian letters are not related... How to fix it, reinstalling MT4 did not help.
It is most likely that you are not set to Cyrillic, or someone else has changed it.
In the language and region settings you need to find the tab where the menu item is
It is most likely that you are not set to Cyrillic, or someone else has changed it.
You need to find the tab in the language and region settings where the menu item is.
Here's how it works. It's Russian in the settings