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

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