'Ask' - function not defined

 

Hello There I

I am new to coding ! I`ve been developing my EA

But I`m geting this error 'Ask' - function not defined !

The code is This 

if(OrderSelect(s,SELECT_BY_POS,MODE_TRADES))

  if(OrderMagicNumber()== MagicNumber)

    if(OrderType()==OP_SELL)

     if(OrderOpenPrice()-Ask> MoveToBreakeven*pips)

      if(OrderOpenPrice()>OrderStopLoss())

       if(OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice()-(PipsToLockIn*pips),OrderTakeProfit(),0,CLR_NONE))

        Print("Order",sellticket,"Was Successfully Modified");

         else Print("Order",sellticket,"Was Not Successfully Modified",GetLastError());

Please can someone tell me how you define Ask as a FUNCTION?


Regards


 
ulisses gomes:

But I`m geting this error 'Ask' - function not defined !

The code is This 

Please can someone tell me how you define Ask as a FUNCTION?

Please use the code button (Alt + S) when posting code. I have edited your post this time.

Your posted code will not produce this error, so it must be elsewhere in your code.

I will move this to the MQL4 sub forum.

 
It says function

Meaning somewhere in your code you have 

Ask()
 
Ask/Bid are builtin variables in MT4 but not MT5.
Reason: