COST_BASIS

Syntax

ProfitLossMode.COST_BASIS

Description

The ProfitLossMode.COST_BASIS constant can be set as a value of the profitLossMode input parameter of the GetOpenPL function, in which case the Open Profit/Loss value is calculated as the difference between a position’s net liquidation value and cost basis times the position size. The value is calculated for positions on the specified symbol, for the currently selected account. Cost basis values are provided by Schwab and include the effects of commissions and tax elections.