getPosAvgCost: Retrieves the most recent average cost of the position

Description Usage Arguments Value

Description

Retrieves the most recent average cost of the position

Usage

1
.getPosAvgCost(Portfolio, Symbol, Date)

Arguments

Portfolio

a portfolio object containing transactions

Symbol

an instrument identifier for a symbol included in the portfolio

Date

timestamp as of which to have the most recent position

Value

Numeric value of the average cost of the current position


naturalsmen/blotter documentation built on May 23, 2019, 12:21 p.m.