View Single Post
  #1 (permalink)  
Old 07-12-2006, 08:39 PM
Aaragorn's Avatar
Aaragorn Aaragorn is offline
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
How many parameters can the OrderSend allow?

int OrderSend( string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=CLR_NONE)
PHP Code:
 Parameters:
symbol   -   Symbol for trading
cmd   -   Operation typeIt can be any of the Trade operation enumeration
volume   -   Number of lots
price   -   Preferred price of the trade
slippage   -   Maximum price slippage for buy or sell orders
stoploss   -   Stop loss level
takeprofit   -   Take profit level
comment   -   Order comment textLast part of the comment may be changed by server
magic   -   Order magic numberMay be used as user defined identifier
expiration   -   Order expiration time (for pending orders only). 
arrow_color   -   Color of the opening arrow on the chart. If parameter is missing or has CLR_NONE value opening arrow is not drawn on the chart

is there any reason I can't make it this...could it be made possible to do this?

int OrderSend( string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=CLR_NONE, double custom)

PHP Code:
 Parameters:
symbol   -   Symbol for trading
cmd   -   Operation typeIt can be any of the Trade operation enumeration
volume   -   Number of lots
price   -   Preferred price of the trade
slippage   -   Maximum price slippage for buy or sell orders
stoploss   -   Stop loss level
takeprofit   -   Take profit level
comment   -   Order comment textLast part of the comment may be changed by server
magic   -   Order magic numberMay be used as user defined identifier
expiration   -   Order expiration time (for pending orders only). 
arrow_color   -   Color of the opening arrow on the chart. If parameter is missing or has CLR_NONE value opening arrow is not drawn on the chart
custom  -  used for custom order identification and special programming function control
Could I then call that parameter with OrderCustom() ?

and modifiy with adding the same parameter to the
OrderModify() ?
Reply With Quote