TradeType


Summary

The direction of a trade order.

Remarks

Indicates the trade direction, whether it is a Buy or a Sell trade.

Syntax

public sealed enum TradeType

Members

NameTypeSummary
Buy FieldRepresents a Buy order.
Sell FieldRepresents a Sell order.

Example 1

ExecuteMarketOrder(TradeType.Buy, Symbol, 20000);

Example 2

Position position =  Positions.Find("myLabel", Symbol, TradeType.Sell);

Example 3

PlaceLimitOrder(TradeType.Buy, Symbol, 10000, Symbol.Bid);