
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
Igor, I asked you a question in the 'Library of functions to work with INI files.' but there was no reply :(
Thanks... replied...
The ClosePosBySelect() function.
Closes one pre-selected position. This function is rather auxiliary, because it is called from several other functions, which help to select positions to close by some conditions.
Thank you... answered...
Another question (or rather statement) there too :)
The ClosePosBySelect() function.
Closes one pre-selected position. This function is rather auxiliary because it is called from several other functions that help select positions to be closed according to some conditions.
Hello!
Excuse me !
1) I don't understand the meaning of the line for (it=1; it<=NumberOfTry; it++)
what kind of loop is this?
2) I also do not understand the condition if (!testing() ......) break;
3) and lastly, what function is this ? ErrorDescription(err)," ,
If you don't mind, please explain .
1. this is a cycle of trade attempts. If the trade server returns errors, the function will make NumberOfTry attempts to close the position after all. I usually set NumberOfTry=5.
2. this condition implements the ability to correctly exit the cycle of attempts when the Expert Advisor working online is stopped. Without this condition, in order to call, for example, properties of the EA, we had either to wait until the EA uses all trade attempts, or remove the EA from the chart.
3. Look in file ..\experts\libraries\stdlib.mq4
I would like to ask how to make an EA work in an infinite loop, while having access to the settings of its parameters?
I wrote in start like this
But in this case, the Expert Advisor hangs and I cannot do anything with it except remove it from the chart
Valera, make it so:
The ClosePosBySizeProfitInCurrency() function.
This function closes only those positions for which the profit in the deposit currency exceeds a certain specified value. You can specify which positions must be closed using the function parameters:
Valera, make it so:
Alas, this also broadcasts the ekspert and does not give access to its parameters until you remove it from the chart
Alas, this also broadcasts the EA and does not give access to its parameters until you remove it from the chart
It does, however, give you the option of stopping the EA by pressing the 'EAs' button on the toolbar.