GetAtmStrategyRealizedProfitLoss()

View as Markdown

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

ParameterDescription
atmStrategyIdThe unique identifier for the ATM strategy

Examples

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