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

 
Artyom Trishkin:
The CloseBy-order works in such a way that the position with the larger volume out of the two opposite orders remains in the market.

No, I mean closing with a counter order of the same size usingOrderCloseBy(), if memory serves me correctly, it will not close with the same size, only with a larger one

 
Igor Makanu:

No, I mean closing with a counter order of the same size usingOrderCloseBy(), if memory serves me correctly, it will not close with the same size, only with a larger one

Yes, it will. It won't close with a different counter symbol.

 
Artyom Trishkin:

Dast.

100%, I sometimes close like this in a fast market.

 
Artyom Trishkin:

Yes. Won't let the other symbol close on the counter.

Vitaly Muzichenko:

100%, I sometimes close like this in a fast market.

OK, thank you.

 

What are the warnings in the standard delivery?

Build 1220


 
Vitaly Muzichenko:

What are the warnings in the standard delivery?

Bild 1220


"operator precedence can cause an error"...

anything not quite unambiguous should be wrapped in () .... especially with shifts. :-)

for besides MQL the local exberds don't know

 
ArraySize feature.
int ArraySize2( int &Array[][] ) { return(ArraySize(Array)); }

void OnStart()
{
  int Array[5][7];
  
  Print(ArraySize(Array));  // 35
  Print(ArraySize2(Array)); // 0
}
 
fxsaber:
ArraySize feature.

And how did you compile it? Don't you know that only the first dimension of an array can be dynamic???



ps; I apologise, 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.

 
Artyom Trishkin:

The opposite limit order is the same as the take. A stop order is a stop. What is the difference then?

On the stock market, there is an aggressive stop-limit - you can place it inside the spread or at the current or worst price. In forex there is no such thing.

Does every brokerage company have a stop-limit? You can also use mark-to-market.
 
Aleksey Mavrin:
Does all brokerage firms have a limit switch? You can also use a market.

It's no longer a limit with a market, it's a regular close.

Reason: