Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 196

 
Roman.:

Who is in the know, please explain:

Why do crosses have a much larger spread?

Thank you.


Liquidity is lower.
 
chief2000:

Liquidity is lower.


Senk s.
 

Good afternoon!

I only want to open a trade at a multiple of 100 pips.

1.1100,1.1.1200,1.1300 etc.

Could you please tell me how to code a multiple of 100 pips.

if (Bid ==??????)

Thank you.

 
solnce600:

Good afternoon!

I only want to open a trade at a multiple of 100 pips.

1.1100,1.1.1200,1.1300 etc.

Could you please tell me how to code a multiple of 100 pips.

if (Bid ==??????)

Thank you.


Enter by limit or stop.

If market-based, then beat the DOSS (margin of error), as there may not be ABSOLUTELY equal to the circular Bid level.

 
int    price = (Bid/Point)%100;
if(price < 1){
   /*действия*/
} 
 
artmedia70:

Your function does not handle trade server errors. The OrderModify() function should be designed as a separate full-fledged function with error handling and adequate error response.

And again, what for?

What's the point of buttering it up?


Please give an example or link to solve the problem you described: "The OrderModify() function needs to be made into a separate full-fledged function with error handling and adequate error response.
 
digits:
Please give an example or link to solve the problem you described: "The OrderModify() function needs to be made into a separate full-fledged function with error handling and adequate error response.


https://www.mql5.com/ru/forum/107476
 
FAQ:


int    price = (Bid/Point)%100;

A compile-time error

'%' -derivative operator is to be applied to integer values only C:\Program Files\Alpari NZ MT4\experts\ODIN.mq4 (4, 27)

Please advise how to correct it.

Thank you.

 
int    price = Bid/Point;
price = price%100;
if(price < 1){
   /*действия*/
}
 
FAQ:

Thank you.
Reason: