unrealized_money_last: Current unrealized profit or loss

unrealized_money_lastR Documentation

Current unrealized profit or loss

Description

Numeric vector. It is equal to profit or loss for each asset in their currencies in the model at the moment inside backtester cycle. Often used in rule's expr block for takeprofit or stoploss rules.

Usage

unrealized_money_last

Format

An object of class NULL of length 0.

Details

If one want to get full unrealized pnl in main currency of model, one should use unreal_sum. If model has only one currence it is possible to use sum(unrealized_money_last).

See Also

unreal_sum


Vitalic57/stratbuilder3gen documentation built on March 30, 2022, 6:58 a.m.