Download MetaTrader 5
To add comments, please log in or register
What is a social trading? Read the article to find that out!
baharin
77
baharin 2014.08.29 07:28 

Hi....


When the buy stop and sell stop will expired ? is it possible to set the expired date ?


This is a code to execute sell stop:

TicketNumber6 = OrderSend(Symbol(), OP_SELLSTOP, lot, TargetPrice, 1, SL, TP, "comment", MagicNumber, 0, White);


And this is a code to execute byu stop:

TicketNumber3 = OrderSend(Symbol(), OP_BUYSTOP, lot, TargetPrice, 1, SL, TP, "comment", MagicNumber, 0, Green
qjol
3243
qjol 2014.08.29 10:22  

OrderSend

The main function used to open market or place a pending order.

int  OrderSend(
   string   symbol,              // symbol
   int      cmd                // operation
   double   volume,              // volume
   double   price,               // price
   int      slippage,            // slippage
   double   stoploss           // stop loss
   double   takeprofit,          // take profit
   string   comment=NULL,        // comment
   int      magic=0            // magic number
   datetime expiration=0,        // pending order expiration
   color    arrow_color=clrNONE  // color
   );

/
To add comments, please log in or register