log_trade: Log the trade to trade log

Description Usage Arguments

Description

Trade log is used for all other analysis. Examples are like creating a track record series, analyzing returns etc.

Usage

1
log_trade(ticker, price, trade_quantity, trade_type, trade_date = Sys.Date())

Arguments

ticker

Ticker of the stock.

price

The price at which the trade is executed at.

trade_quantity

The quantity traded.

trade_type

Buy/Sell.

trade_date

The date that the trade is executed on.


shawnlinxl/ptdash documentation built on May 8, 2019, 9:45 a.m.