
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
This construct:
I think it should be forbidden, as it is a direct reference to a private member of another object, albeit of the same data type.
Do you think it should be prohibited? Don't use it.
Any class members declared after the private: element access specifier (and before the next access specifier) are available only to member functions of this class.
The documentation explicitly says about access and nothing about objects (only about classes).
By the way, copy constructors are based on exactly this effect.
Do you think it should be forbidden? Don't use it.
The documentation explicitly says about access and nothing about objects (only about classes).
By the way, copy constructors are based on exactly this effect.
Well yes, judging from the description of the situation,OrderCalcMargin() function for pending orders returns "0.0". This indicates that no margin is required for pending orders.
If you need to estimate how much margin will be needed when the pending order triggers, then use one of the market orders as the first parameter.
So, "EX5 loading failed" error after I put the functions in the library.
What's wrong?
------------------------------
Decided to check if the problem is in the functions themselves. Even if the bodies of all the library functions consist only of "return(1);" there is still an error
import as in the help example
So, "EX5 loading failed" error after I put the functions in the library
Are the functions declared as exportable in the library?
2012.10.10 19:22:29 (EURUSD,M1) Error 4756 ERR_TRADE_SEND_FAILED
4756
Could not send trade request
I'm sorry, why can't I do without as much information as possible, for example, if I open a position, not an order, then I don't have to specify the price? If there are no stop-profits, then why not? Maybe, I want to set them later by a robot. What field is so critically lacking in the trade request? Or what is it?
Is it also possible not to specify it? type_filling. It says something about order not being able to be filled by the whole amount... How so? I don't really get it. Okay.
Ah, I guess it was critical there request.symbol=_Symbol; I thought that the delivery of the position exactly on the chart where the robot will generally go without saying...
Can you tell me how to set LR Correlation as a parameter of optimization result (Custom max)?
First of all LR Correlation needs to be calculated. This is done in this library https://www.mql5.com/ru/code/1081
And then return this value via OnTester, like here https://www.mql5.com/ru/articles/286
Tell me, here is my request structure, what else does it basically lack?
2012.10.10 19:22:29 (EURUSD,M1) Error 4756 ERR_TRADE_SEND_FAILED
4756
Could not send trade request
I'm sorry, why can't I do without as much information as possible, for example, if I open a position, not an order, then I don't have to specify the price? If there are no stop-profits, then why not? Maybe, I want to set them later by a robot. What field is so critically lacking in the trade request? Or what is it?
Is it also possible not to specify it? type_filling. It explains something, like the order may not be executed by its entire volume... How so? I don't really get it. Okay, .
Ah, I guess it was critical there request.symbol=_Symbol; I thought that the delivery of the position on the chart where the robot would be in general...
I suggest using the standard library: