What's not an expert, you get your own approach ).
...
Experts in Code Base just as an example of implementation. Not always of high quality and full-featured of course. Anything more than that, you either have to do it yourself or order it.
I do not understand the meaning of the possibility, in MetaEditor, to open new code windows(context menu => New window). If you change one of the windows, the same thing will change in the other one.
In the Help it is written only this:
New Window - opens a copy of the current tab in a new one. At that the serial number of the copy will be added to the tab name;
Hello, can someone explain the win api. Created a dialog box, CreateDialog() function. Why window function is not executed atomically, even when using critical section?
INT_PTR CALLBACK DialogProc(HWND hWnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam)
{
lock.LockObject(); // Далее нужно атомарное выполнение.
MessageBoxA(NULL, "", "", MB_OK); // При запуске программы, вылетает пачка сообщений (одновременно).lock.UnlockObject(); // Переводим в свободное состояние (критическая секция).return FALSE;
}
If the loop is long (or perpetual) how can it be interrupted without terminating the terminal process? When the user gave the command - to remove the script from the chart, the function will return true (false before this event). As a result, the conditions for subsequent iterations will not be met.
Надежный торговый робот не может быть создан без понимания механизмов работы торговой системы MetaTrader 5. Клиентский терминал получает от торгового сервера информацию о позициях, ордерах и сделках. Чтобы правильно обработать эти данные средствами MQL5 необходимо хорошо представлять как происходит взаимодействие mql5-программы и среды исполнения терминала.
If the loop is long (or perpetual) how can it be interrupted without terminating the terminal process? When the user gave the command - to remove the script from the chart, the function will return true (false before this event). As a result, the conditions for subsequent iterations will not be met.
Ok, it makes sense to me now. I just compared it to MQL4 and could not catch the difference.
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.
Advisers
adviser
examples
more...
Did you run the Expert Advisor initially in the tester?
What do the log files say?
Looks like that Expert Advisor is not trading at all.
Put in from others, where it trades from any two bars to where it goes, and it worked.
Now I am trying to figure out how to trade correctly.
Every Expert Advisor has its own approach.)
20_200 expert_v4.2_AntS.mq5
I am trying to understand how it works and if it trades correctly.
...
What's not an expert, you get your own approach ).
...
I do not understand the meaning of the possibility, in MetaEditor, to open new code windows(context menu => New window). If you change one of the windows, the same thing will change in the other one.
In the Help it is written only this:
What are new windows for?
Hello, can someone explain the win api. Created a dialog box, CreateDialog() function. Why window function is not executed atomically, even when using critical section?
INT_PTR CALLBACK DialogProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { lock.LockObject(); // Далее нужно атомарное выполнение. MessageBoxA(NULL, "", "", MB_OK); // При запуске программы, вылетает пачка сообщений (одновременно). lock.UnlockObject(); // Переводим в свободное состояние (критическая секция). return FALSE; }In the standard MC indicators, we added !IsStoped() in for.
Can you tell me why it's done, what is it for?
If the loop is long (or perpetual) how can it be interrupted without terminating the terminal process? When the user gave the command - to remove the script from the chart, the function will return true (false before this event). As a result, the conditions for subsequent iterations will not be met.
If the loop is long (or perpetual) how can it be interrupted without terminating the terminal process? When the user gave the command - to remove the script from the chart, the function will return true (false before this event). As a result, the conditions for subsequent iterations will not be met.
Ok, it makes sense to me now. I just compared it to MQL4 and could not catch the difference.
Happy New Year!
Please help, send me an example of how to work withORDER_TIME_SPECIFIED, I can't make the expiry time of an order properly.
Here's a snippet of code
it's all very crooked, i know, but i couldn't find an example at a certain time, had to do it myself, now it's getting annoying and cumbersome