Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1268
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
Hello!
I am confused in three pines:
I set numbers extern int a =2; extern int b =3; extern int c =4; how do I now set the number abcto change its value when changing a, or b, or c to compare it to some given d (e.g.d=344)?
Thank you!
Hello!
I am confused in three pines:
I set numbers extern int a =2; extern int b =3; extern int c =4; how do I now set the number abcto change its value when changing a, or b, or c to compare it to some given d (e.g.d=344)?
Thank you!
x = c + b*10 + a*100
x = c + b*10 + a*100
Oh, my God! I'm racking my brains! Thank you!
Hello, 2020.10.03_13:33 GMT+3. I took the standard Moving Average EA for MetaTrader 4. And started changing it so that it became profitable. When trying to describe the closing conditions using the OrderProfit() function in the strategy tester, the Expert Advisor stopped closing trades at that condition. It does not go as far as closing a trade. However, I doubt that I have written closing conditions correctly. The Expert Advisor would close trades otherwise. I will probably try to write the deal opening price and the last prices. Once the maximum difference between the opening price and the last price is reached and this difference is reduced -- close the trade. I am attaching the Expert Advisor file. 13:50 GMT+3.
Hello!
I've started to write a function to normalise the input data. But I can't "replace" the original values with the normalized ones. I.e. I cannot update values in Open timeseries buffer with new values from Temp array. What is my error? I have a feeling that I'm trying to cross OOP and non-OOP)).
I'm sure it can be done in a simpler way! In this case please teach me)
Hello!
I've started to write a function to normalise the input data. But I can't "replace" the original values with the normalized ones. I.e. I cannot update values in Open timeseries buffer with new values from Temp array. What is my error? I have a feeling that I'm trying to cross OOP and non-OOP)).
I'm sure it can be done in a simpler way! In this case please teach me)
Read the language documentation
Read the language documentation
Alexey, thank you! It's clear now that it's not possible.
It's true, I'm not exactly mql4. I'm trying to change data through the CiOpen class. I'm confused by the Update method, which should change the element at a specified position of the array.
Alexei, thank you! It's clear now that it's not possible.
It's true, I don't have exactly mql4. I'm trying to change data through the CiOpen class. I'm confused by the Update method, which should change the element at a specified position of the array.
Since the question is posed in the mql4 section, I answered regarding mql4. There are no hints to mql5 in your question. But the result is the same.