AtmStrategyChangeStopTarget()

View as Markdown

Definition

Changes the price of the specified order of the specified ATM strategy.

Method Return Value

Returns true if the specified order was found; otherwise false.

Syntax

AtmStrategyChangeStopTarget(double limitPrice, double stopPrice, string orderName, string atmStrategyId)

Parameters

ParameterDescription
limitPriceOrder limit price
stopPriceOrder stop price
orderNameThe order name such as “Stop1” or “Target2”
atmStrategyIdThe unique identifier for the ATM strategy

Examples

1protected override void OnBarUpdate()
2{
3 AtmStrategyChangeStopTarget(0, SMA(10)[0], "Stop1", "AtmIdValue");
4}