GetAtmStrategyUnrealizedProfitLoss()

View as Markdown

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

ParameterDescription
atmStrategyIdThe unique identifier for the ATM strategy

Examples

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