MT4 don't recognize the word SetOrder

 
SetOrder(OP_BUY,Lots,Ask,3,0,Ask+TakeProfit*Point,RED);

I found this line somewhere but MetaEditor doesn't recognizes the variable RED.
so I tried to put 0 instead:

SetOrder(OP_BUY,Lots,Ask,3,0,Ask+TakeProfit*Point,0);

But again it says: 'SetOrder' function is not defined.
Did I miss a line that defines thit function or something?

Anyway I need the line that set a BUY order and the one that closes that order

thankes in advance.
 
The corect way is OrderSend and instead of 'RED' it should be 'Red'. Capitalization is important in MQL4. It works much like C-language
 
Dear,

by using MetaTrader Editor, you can see the color for knowledge MQL4 types and functions.

Example:

int TotalOrdersByTypeThisSymbol(int type, string symbol) {
   int TradesThisSymbol = 0;   
   for (int i = 0; i < OrdersTotal(); i++)
      if ( OrderSelect (i, SELECT_BY_POS, MODE_TRADES) )
         if ( OrderSymbol() == symbol && OrderMagicNumber() == myMagic &&
            ( OrderType() == type )))
            TradesThisSymbol++;
 
   return (TradesThisSymbol);
}
Reason: