NinjaScript > Language Reference > Strategy > ATM Strategy Methods >

GetAtmStrategyRealizedProfitLoss()

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Gets the realized profit and loss value of the specified ATM Strategy.

 

Method Return Value

A double value representing the realized profit and loss.

 

Syntax

GetAtmStrategyRealizedProfitLoss(string AtmStrategyId)

 

Parameters

AtmStrategyId

The unique identifier for the ATM strategy

 

 

Examples

protected override void OnBarUpdate()
{
    Print("PnL is " + GetAtmStrategyRealizedProfitLoss("id").ToString());
}