Managed Order Methods |
Describes the various order methods that can be called to place an order via a SharpScript Strategy using Managed Order. By default all strtegies are managed.
A market order can be placed via the EnterLong or EnterShort methods. Please click on the respective methods to know more about the available overloads.
The various parameters that are available, are as follows:
Bars Index | The Bars Index where the order is to be submitted. By default submitted to the primary bars |
Name | Name of the order. If not defined the name is set to default 'Strategy Entry' |
Quantity | Entry order quantity. If not defined then strategy Quantity property is set. |
Note: If connection does not supports market orders a limit order will be placed above/below the current market price.
A limit order can be placed by calling the EnterLongLimit or the EnterShortLimit methods. Please click on the respective methods to know more about the available overloads.
The various parameters that are available, are as follows:
Bars Index | The Bars Index where the order is to be submitted. By default submitted to the primary bars |
Name | Name of the order. If not defined the name is set to default 'Strategy Entry' |
Quantity | Entry order quantity. If not defined then strategy Quantity property is set. |
Limit Price | Limit price of the order. |
Note: If and limit order with the same order entry name is in working/accepted/part filled state then ArthaChira will change that order instead of submitting a new order provided the limit price differs.
Submits a buy or sell order limit order depending on the entry order action. If an order with the same entry name already exists then ArthaChita will change that order instead of submitting a new order provided the limit price differs.
Parameters
Bars Index | The Bars Index where the order is to be submitted. By default submitted to the primary bars |
Price | Value of the limit price as calculated from the entry order fill price based on the Calculation Mode |
Calculation Mode | How the price will be calculated. Possible values are Ticks, Point and Percentage |
EntryOrderName | Name of the ENTRY order for which the target will be set. If no name is defined then the default name 'Strategy Entry' is set |
Parameters
Bars Index | The Bars Index where the order is to be submitted. By default submitted to the primary bars |
TargetPrice | The actual target price |
EntryOrderName. | Name of the ENTRY order for which the target will be set. If no name is defined then the default name 'Strategy Entry' is set. |
Submits a buy or sell stop market order depending on the entry order action. If an order with the same entry name already exists then ArthaChita will change that order instead of submitting a new order provided the stop price differs.
Parameters
Bars Index | The Bars Index where the order is to be submitted. By default submitted to the primary bars |
Price | Value of the stop price as calculated from the entry order fill price based on the Calculation Mode |
Calculation Mode | How the price will be calculated. Possible values are Ticks, Point and Percentage |
EntryOrderName | Name of the ENTRY order for which the target will be set. If no name is defined then the default name 'Strategy Entry' is set |
Parameters
Bars Index | The Bars Index where the order is to be submitted. By default submitted to the primary bars |
StopPrice | The actual stop price |
EntryOrderName. | Name of the ENTRY order for which the target will be set. If no name is defined then the default name 'Strategy Entry' is set. |
User can exit a position anytime by calling the ExitPosition or ClosePosition methods.
The ExitPosition lets the user close a specific order, by defining the entry order name.
Parameters
Bars Index | The Bars Index where the order is to be submitted. By default submitted to the primary bars |
EntryName | Name of the ENTRY order for which the stop will be set. If no name is defined then the default name 'Strategy Entry' is set. |
The ClosePosition cancels all pending orders as submitted by the strategy and closes the strategy position for the specified bars index.
Parameters
Bars Index | The Bars Index where the order is to be submitted. By default submitted to the primary bars |