StrategyBaseSetStop Method (Int32, Double, CalculationMode, String) |
Submits a stop order for the specified bars index.
If stop order with the same entry order name exits, then changes the order if the stop price differs.
If called when the strategy is in Initialized state then all subsequent entry trades with the same entry name will automatically place an stop order as defined by the method
Namespace:
SharpCharts.Base.SharpScript
Assembly:
SharpCharts.Base (in SharpCharts.Base.dll) Version: 1.0.0.42 (1.0.0.42)
Syntax protected IOrder[] SetStop(
int barsIndex,
double price,
CalculationMode calculationMode,
string entryOrderName
)
Parameters
- barsIndex
- Type: SystemInt32
Bars index - price
- Type: SystemDouble
Value of the stop price as calculated from entry order fill price based on the Calculation Mode - calculationMode
- Type: SharpCharts.Base.OrderCalculationMode
Calculation Mode - entryOrderName
- Type: SystemString
Entry order name
Return Value
Type:
IOrderSee Also