Skip to content

OrderSendRequest class

public sealed class OrderSendRequest : IBufferMessage, IMessage<OrderSendRequest>

Public Members

name description
OrderSendRequest() The default constructor.
OrderSendRequest(…)
Comment { get; set; } not required default null
Expiration { get; set; } not required default null
HasComment { get; } Gets whether the "comment" field is set
HasMagicNumber { get; } Gets whether the "magic_number" field is set
HasPrice { get; } Gets whether the "price" field is set
HasSlippage { get; } Gets whether the "slippage" field is set
HasStoploss { get; } Gets whether the "stoploss" field is set
HasTakeprofit { get; } Gets whether the "takeprofit" field is set
MagicNumber { get; set; } not required default 0
OperationType { get; set; } required
Price { get; set; } NOT required in case of Mt4_OP_BUY = 0; Mt4_OP_SELL = 1;
Slippage { get; set; } not required default 0
Stoploss { get; set; } not required default 0
Symbol { get; set; } Required, NOT EMPTY string
Takeprofit { get; set; } not required default 0
Volume { get; set; } Required
CalculateSize()
ClearComment() Clears the value of the "comment" field
ClearMagicNumber() Clears the value of the "magic_number" field
ClearPrice() Clears the value of the "price" field
ClearSlippage() Clears the value of the "slippage" field
ClearStoploss() Clears the value of the "stoploss" field
ClearTakeprofit() Clears the value of the "takeprofit" field
Clone()
override Equals(…)
Equals(…)
override GetHashCode()
MergeFrom(…) (2 methods)
override ToString()
WriteTo(…)
static Descriptor { get; }
static Parser { get; }
const CommentFieldNumber Field number for the "comment" field.
const ExpirationFieldNumber Field number for the "expiration" field.
const MagicNumberFieldNumber Field number for the "magic_number" field.
const OperationTypeFieldNumber Field number for the "operation_type" field.
const PriceFieldNumber Field number for the "price" field.
const SlippageFieldNumber Field number for the "slippage" field.
const StoplossFieldNumber Field number for the "stoploss" field.
const SymbolFieldNumber Field number for the "symbol" field.
const TakeprofitFieldNumber Field number for the "takeprofit" field.
const VolumeFieldNumber Field number for the "volume" field.

See Also