Download MetaTrader 5
To add comments, please log in or register
Carry on your private correspondence in your profile. It is secure!
chris5281
37
chris5281 2016.03.11 17:36 

Hello, all,

yhis would be the best in french, for me

can not use MathMod, could you show me an exemple

Here is my wrong code, seeking to use parity:

              "

                int i=3; i ++; 

               double     MathMod (i,2)

                if ( MathMod (i,2) = 0) Continue;

                if ( MathMod (i,2) = 1)  ( Ticket  =  . . .  OP_BUY, . . . .  ;       Break ;

                  //next, over Ticket   .  .  . OP_SELL .  .  . ;

                 "

It is to try, to learn mt4, thank you,

Zirkon
123
Zirkon 2016.03.11 18:03  
newbgeek:

Here is my wrong code, seeking to use parity:

  if ( MathMod (i,2) == 0) Continue;

  if ( MathMod (i,2) == 1)  ( Ticket  =  . . .  OP_BUY, . . . .  ;       Break ;

or use modulo operator for integer.

  if ( i%2 == 0) Continue;

  if ( i%2 == 1)  ( Ticket  =  . . .  OP_BUY, . . . .  ;       Break ;
chris5281
37
chris5281 2016.03.11 18:18  
zirkoner:

or use modulo operator for integer.

Ok, very well, thank you,

I knew it, but I didn’t do

chris5281
37
chris5281 2016.03.11 18:29  
newbgeek:

Ok, very well, thank you,

I knew it, but I didn’t do

That’s why I ‘m looking for exemples   and  twice equal  ==  to verify,   because  %  is double, and not bool !



/
To add comments, please log in or register