GetAtmStrategyUnrealizedProfitLoss()

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Strategy > ATM Strategy Methods >

GetAtmStrategyUnrealizedProfitLoss()

Previous page Return to chapter overview Next 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

ns

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