why not enter inside of if ?

 

hi guys , why  not  enter in the  if ?

ProfitMin=100;


CtrlSellTP=0;
         if((Bid <= (OrderOpenPrice()-(ProfitMin*Point*10))) && (CtrlSellTP==0))
                    {
                     Print("QUANTEEE111    "+(Bid-Point4TS*Point*10));
                     double NewSL=Bid-Point4TS*Point*10;
                     bool resOM=OrderModify(OrderTicket(),OrderOpenPrice(),NewSL,OrderTakeProfit(),0,Yellow);
                     CtrlSellTP=1;
                    }
 
  1. Do you really expect an answer? No idea where that snip is. There are no mind readers here and our crystal balls are cracked. Always post all relevant code (using Code button).
         How To Ask Questions The Smart Way. 2004
              Be precise and informative about your problem
  2. You can not use any Trade Functions until you first select an order.

  3. Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?

  4. Check your return codes, and report your errors (including market prices and your variables). Don't look at GLE/LE unless you have an error. Don't just silence the compiler (MT5/MT4+strict), it is trying to help you.
              What are Function return values ? How do I use them ? - MQL4 programming forum 2012.05.20
              Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles 25 March 2014

Reason: