Description Usage Arguments Details Value Note Author(s)
A trade is two transactions a buy & sell transaction.
checks if given object is of trades class/not
1 2 3 4 5 6 7 8 9 10 | trades(n = 1)
is.trades(t)
add.trades.position(pf = "default", pos)
get.trades(pf = "default")
## S3 method for class 'trades'
as.xts(t)
|
n |
- no. of rows |
t |
- trades |
pf |
- portfolio name. default is "default" |
pos |
- position to be added |
pf |
- default "default" |
trades - Returns the empty trades data frame with given 'n' objects
add.trades.position - Function to add given position to trades table in a given portfolio
get.trades - gets the trades from a default portfolio
as.xts.trades - Convert the trades from dataframe to xts. Since xts is a strict matrix, all string columns are removed. Index of the returned xts object is open date on which trade is initially opened.
blank trades dataframe
recently added trade
returns the trades/trxns data frame
returns the trades/trxns data frame
This will create a trade object
Siva Sunku
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.