Definition
Generates a buy market 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
EnterLong()
EnterLong(string signalName)
EnterLong(int quantity)
EnterLong(int quantity, string signalName)
The following method variation is for experienced programmers who fully understand Advanced Order Handling concepts.
EnterLong(int barsInProgressIndex, int quantity, string signalName)
|
Parameters |
|
|
signalName |
User defined signal name identifying the order generated. |
|
quantity |
Entry order quantity. |
|
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)