Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1385

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 have sets of conditions to open long and short are treated separately.
That is, for example, like this:
Thank you, I will try
I have sets of conditions to open long and short are treated separately.
I mean, for example, like this:
I'll even burn a piece of my real code, thankfully, it won't reveal any know-how without information about "battle" values of variables and conditions of position maintenance.
You can actually specify one of 224 options here:
It is interesting to be able to account for so many options in one code.
In the extended answer, the expressions under case (VRO and other) are also a set of conditions on which a decision is made?
Both Mode and Mode_... And VRP AVR?
Slightly confused by the code
It is interesting to be able to consider so many options in one code.
In the extended answer, the expressions under case (VRO and other) are also a set of conditions on which a decision is made?
And Mode and Mode_... And VRP AVR?
Got a bit confused in the code.
In the if-condition block, each flag defines check of its own condition, while in the switch block, the particular condition being checked is defined not by a single flag but by a combination of three flags.
Do I understand correctly that in your case f1, ..., fn is not necessarily a bool? I understand that there may be many variants, but I wonder how you do it.
Do I understand correctly that in your case f1, ..., fn is not necessarily a bool? I understand there may be many variants but I wonder how you do it.
Naturally. fn is any, their results are compared to something (and not necessarily to a constant either), and the result of this comparison is a bool.
Can you tell me how to determine the number of digits in the average price of a position (the one displayed in the Price field of the Toolbox)?
Experimentally it was found out that there can be up to 8 digits. But the same tool can also have 5 digits, etc. I mean, how do you determine how much is displayed in the GUI?
Leave the indicator in the window. Switch the terminal off, switch it on. The result is as follows.
Next in my real code the timer is 20ms. It takes about 8-12 iterations before all values become equal to the real number.
Also, they all give an actual value greater than the configured parameter (this is normal, but not according to the help).
This is just an FYI.
Can you tell me how to determine the number of digits in the average price of a position (the one displayed in the Price field of the Toolbox)?
Experimentally it was found out that there can be up to 8 digits. But the same tool can also have 5 digits, etc. I mean, how can I determine how many digits are displayed in the GUI?
Digits()
Hello!
Can you tell me, I downloaded an indicator, it is in the indicators section in METEDITOR, but in the terminal, in the custom section it did not appear... What can I do?