NinjaScript > Language Reference > Strategy > ATM Strategy Methods >

GetAtmStrategyUnrealizedProfitLoss()

Print this Topic Previous pageReturn to chapter overviewNext page

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

 

Method Return Value

A double value representing the unrealized profit and loss.

 

Syntax

GetAtmStrategyUnrealizedProfitLoss(string AtmStrategyId)

 

Parameters

AtmStrategyId

The unique identifier for the ATM strategy

 

 

Examples

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