[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 374

 
What's the point of asking questions in this thread if you know no one will answer them?
 
ruslanchik:

how to rewrite an expression like

((a)<(b) ? (a) : (b)) in MQL4

Explain your condition more clearly! Is there a colon there, what is it?
 
this is actually the problem is a snippet of code from *.cpp
 
ruslanchik:

how to rewrite an expression like

((a)<(b) ? (a) : (b)) in MQL4

if (a < b) return(a);
else return(b);
 
Zhunko:


So
( : )
in this expression
((a)<(b) ? (a) : (b))
means "otherwise" ?
 
but how do you write int **X to what corresponds to **
 
ruslanchik:
but how do you write int **X which corresponds to **

This is a pointer to a pointer to a variable of int type.

int X[][];
But that's not quite right.
 
Good day! Can someone among programming wizards tell me how to prescribe in the code of an EA the function to control opening of orders by the colour of a bar? Let's say, a red candle is sell, a green one is buy. It is necessary to confirm market entry along with other signals.
 

would amount to

int **X

to this

int@ X[]

???

 
Sorry, I'm a little slow.