EnterLongMIT()
<< Click to Display Table of Contents >> EnterLongMIT() |
Generates a buy MIT order to enter a long position.
An Order read-only object that represents the order. Reserved for experienced programmers, additional information can be found within the Advanced Order Handling section.
Syntax
EnterLongMIT(double stopPrice)
EnterLongMIT(double stopPrice, string signalName)
EnterLongMIT(int quantity, double stopPrice)
EnterLongMIT(int quantity, double stopPrice, string signalName)
The following method variation is for experienced programmers who fully understand Advanced Order Handling concepts:
EnterLongMIT(int barsInProgressIndex, bool isLiveUntilCancelled, int quantity, double stopPrice, string signalName)
Note: If using a method signature that does not have the parameter quantity, the order quantity will be taken from the quantity value set in the strategy dialog window when running or backtesting a strategy |
signalName |
User defined signal name identifying the order generated. Max 50 characters. |
stopPrice |
The stop price of the order. |
quantity |
Entry order quantity (if 0 is passed in, will be set to 1, except for stocks 100). |
isLiveUntilCancelled |
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 is reached. |
barsInProgressIndex |
The index of the Bars object the order is to be submitted against. Used to determines what instrument the order is submitted for.
See the BarsInProgress property. |
protected override void OnBarUpdate() |