mq4 language- how can i write "or"?

 

hi,

please i need someone to tell me how to write the word "or" in mq4 language.

for example, i know that "&&" represents "and", but i don't know what represents the word "or".

so that i can write,if (ema1>ema2 or macd1>0)

so that the ea will take action if anyone of the 2 conditions is met.

any assistance will be appreciated.

thanks.

 
  1. use ||
  2. (ema1>ema2 || macd1>0)
 
USForexGuy wrote >>
  1. use ||
  2. (ema1>ema2 || macd1>0)
thanks, but i can't find the symbol that you used on my computer keyboard, how can i get it?.thanks
 

High row - Q W E R T Y U I O P { } |

Push the last button twice.

 
Roger wrote >>

High row - Q W E R T Y U I O P { } |

Push the last button twice.

God Bless the newbies in this forum! (i'm a newbie myself)

 

Or...
for those on other keyboard types the | aka 'pipes' symbol is the one to the left of the Z

i.e. use Shift on the \ key

-BB-

 
BarrowBoy wrote >>

Or...
for those on other keyboard types the | aka 'pipes' symbol is the one to the left of the Z

i.e. use Shift on the \ key

-BB-

Or... it is on the key to the right of the + = key in the numeral row, again Shift on the \ key

who knew?

Keith

 
I'm thinking there may be a faulty component between the chair and the keyboard.
Reason: