Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 727

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
If it is a question of increasing the lot size of a new order relative to the maximum lot size of already open orders, then when counting orders, remember the maximum lot size of orders
like this:
I have the lots counted. I would like the step to also increase with each trade. By coefficient
I have the lots counting. I would like the pitch to increase with each trade. By the coefficient.
This is the second time you've written about the "magic step" and we have to guess what the step is! )))
If we are talking about the opening prices of "extreme" orders and you want to place new orders relative to the opening prices of these orders, then the principle is the same, when recalculating orders look for the maximum/minimum opening prices by order type, roughly so:
ZZY: if we are talking about closed orders, the code will be different, and the principle of enumeration of orders is slightly different - look for an order with the maximum closing time and remember its parameters
Hi all. Can you tell me why the Print function does not work in the indicator.
Hi all. Can you tell me why the Print function does not work in the indicator.
there is no reason for it not to work, see the experts' logbook for your messages
there's no reason not to work, look in the experts' logbook for your messages
Yeah, stupid. Thank you.
Good night! Can you tell me if it is possible to manage several accounts with one script? Thank you!
You can, but not with a script, with an advisor. The accounts have to be run in different terminals...
You can, but not with a script, with an advisor. The accounts must be run in different terminals...
Continue if you don't mind
You write an EA that can communicate with other terminals, copiers are an example for you.
It's simple, one EA transmits something and receives it in another terminal...
INIT_PARAMETERS_INCORRECT
Designed to indicate an incorrect set of input parameters to the programmer, the result string with this return code will be highlighted in red in the general optimization table.
Testing will not be performed for this set of parameters of the Expert Advisor.
Something is not highlighted in red.
Is it so for everyone?
this is the code in OnInit:
And in the log it writes errors like this: