GetAtmStrategyRealizedProfitLoss()

<< Click to Display Table of Contents >>

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

GetAtmStrategyRealizedProfitLoss()

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

ns

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