Understanding Valid Order Parameter Combinations

 

I tried sending an async order with the following parameters:

------------RequestDescription

Trade action: TRADE_ACTION_PENDING

Trade symbol: EURUSD

Magic number: 0

Order ticket: 0

Order type: ORDER_TYPE_SELL

Order filling: ORDER_FILLING_RETURN

Order time type: ORDER_TIME_GTC

Order expiration: 1970.01.01 00:00

Price: 1.04774

Volume: 0.01

Stop Limit: 0

Deviation points: 18446744073709551615

Stop Loss: 0

Take Profit: 0

Position ticket: 0

Position by ticket: 0

Comment: NULL

:~

I got the following:

------------ ResultDescription

Retcode 10013 - TRADE_RETCODE_INVALID: Invalid request

Request ID: 4753

Order ticket: 0

Deal ticket: 0

Volume: 0

Price: 0

Ask: 0

Bid: 0

External Retcode: 0

Comment: Invalid request

:~

What is going wrong here?
 
ORDER_TYPE_SELL is not a pending order type.
 
William Roeder #:
ORDER_TYPE_SELL is not a pending order type.

Many thanks for this