Learn R Programming

lares (version 4.4)

stocks_performance: Stocks Overall Performance

Description

This function lets the user calculate stocks performance

Usage

stocks_performance(dailys, cash_in, cash_fix = 0)

Arguments

dailys

Dataframe. Daily values. Structure: "Date", "Symbol", "Open", "High", "Low", "Close", "Volume", "Adjusted", "Quant", "Value", "Amount", "Expenses", "Stocks", "Div", "DivReal", "DailyDiv", "DailyValue", "RelChangeP", "RelChangeUSD"

cash_in

Dataframe. Deposits and withdrawals. Structure: "ID", "Date", "Cash"

cash_fix

Numeric. If you wish to algebraically sum a value to your cash balance