is this correct ?

 
if (Ask == openprice*22Point)

the program doesn't enter this 

and it's On Tick

 
Please don't double post, you already have a topic on similar things. I will remove this one.
 
Alain Verleyen:
Please don't double post, you already have a topic on similar things. I will remove this one.
i didn't get any answers 
remove the other one this is more simple
 
Ahmed Housseini:
i didn't get any answers 
remove the other one this is more simple

Ok.

Moved this one to mql4 section.

 
Ahmed Housseini:
if (Ask == openprice*22Point)
  1. Don't double post!
              General rules and best pratices of the Forum. - General - MQL5 programming forum

  2. Don't post code that doesn't even compile. I assume you meant Ask == openprice + 22 * _Point
  3. Doubles are rarely equal.
              The == operand. - MQL4 and MetaTrader 4 - MQL4 programming forum
Reason: