NinjaScript > Language Reference > Strategy > ATM Strategy Methods >

AtmStrategyChangeStopTarget()

Print this Topic Previous pageReturn to chapter overviewNext page

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

limitPrice

Order limit price

stopPrice

Order stop price

orderName

The order name such as "STOP1" or "TARGET2"

AtmStrategyId

The unique identifier for the ATM strategy

 

 

Examples

protected override void OnBarUpdate()
{
    AtmStrategyChangeStopTarget(0, SMA(10)[0], "STOP1", "AtmIdValue");
}