Features of the mql4 language, subtleties and techniques - page 25

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 is not a market - it is an ordinary close.
It is clear that there is always a market to close by hand. The question still remains - doall brokerage companies have a limit order? If not, what does it depend on - MT server settings and/or something else?
It is clear that there is always a market to close by hand. The question still remains - doall brokerage companies have a limit order? If not, what does it depend on - MT server settings and/or something else?
All of them.
Enough to understand the definitions: BuyLimit can only be below the current price. Take for Sell too, only below the current price. All other options are a work in progress on their own.
The question still remains - doall brokerage companies have a limit order?
No, look at the rules of the brokerage company on how to execute the limit and stop.
No, look at the DC regulations on the execution of take and stops.
Could you ask for a more detailed answer? Examples, comparisons and other differences between a take and a limit order.
And how did you compile this??? Don't you know that only the first dimension of an array can be dynamic???
ps; Sorry, but I won't delete this post. In mql4 it compiles even with #property strict
This fact more deserves the right to be in this thread.
The point is, in MQL4 it's only correct. Otherwise, the compiler cannot select the required overloading, if the second dimension value is specified explicitly. In MQL5 it can.
The point is that in MQL4 this is the only correct way. Otherwise the compiler cannot select the right overload if the value of the second dimension is specified explicitly. In MQL5 it can.
Your example is a common example of what the user expects, and the result cannot be tracked even by analyzing GetlastError.
imho, some sizeof() must always work correctly, or both languages (MQL4/MQL5) must be aligned
this is an ambiguous "so right", imho - your example is a common example of what the user expects - the result cannot be traced even by analyzing GetlastError
imho, some sizeof() must always work correctly, or both languages (MQL4/MQL5) must be aligned
In MQL4 the following is a classic
That's why I haven't even provided it. This is the correct way to do it.
Forum on Trading, Automated Trading Systems and Strategy Tests
Peculiarities of mql4, tips and tricks
fxsaber, 2020.02.08 02:05
But the zero ArraySize is a subtlety.
checked in C#
35
imho, this peculiarity borders on subtlety ))))
Still it is not explicit and requires constant checks while writing the code
The question still remains - doall brokerage companies have a limit switch? If not, what does it depend on - MT server settings and/or something else?
No, not all of them. Not so long ago I was unpleasantly surprised when a Take Profit was executed with negative (against me) slippage. It was on the news. Tech support explained that this is normal and limits (take profit by definition is a limit order) are executed as MIT (Market If Touched). In other words, when the price touches a limit order level, it is executed as a market order. Unpleasant of course, but there is nothing to do.