Definition
Generates a buy limit order to enter a long position.
Method Return Value
An IOrder read-only object that represents the order. Reserved for experienced programmers, additional information can be found within the Advanced Order Handling section.
Syntax
EnterLongLimit(double limitPrice)
EnterLongLimit(double limitPrice, string signalName)
EnterLongLimit(int quantity, double limitPrice)
EnterLongLimit(int quantity, double limitPrice, string signalName)
The following method variation is for experienced programmers who fully understand Advanced Order Handling concepts.
EnterLongLimit(int barsInProgressIndex, bool liveUntilCancelled, int quantity, double limitPrice, string signalName)
|
Parameters |
|
|
signalName |
User defined signal name identifying the order generated. |
|
limitPrice |
The limit price of the order. |
|
quantity |
Entry order quantity. |
|
liveUntilCancelled |
The order will NOT expire at the end of a bar but instead remain live until the CancelOrder() method is called or its time in force has been reached. |
|
barsInProgressIndex |
The index of the Bars object the order is to be submitted against. See the BarsInProgress property. This determines what instrument the order is submitted for. |
Examples
|
protected override void OnBarUpdate()
|
Tips (also see Overview)