transactions: Transactions(trxns)

Description Usage Arguments Details Value Author(s)

Description

A transaction is a buy/sell of a position. Two transactions make a trade(buy/sell).

checks if given object is trxns class/not

Usage

1
2
3
4
5
6
7
trxns(n = 1)

is.trxns(t)

add.trxns.position(pf = "default", pos, type = c("OPEN", "CLOSE"))

get.trxns(pf = "default")

Arguments

n

- no. of rows of blank transaction dataframe.

pf

- portfolio where the transactions to be added. Default - default portfolio

pos

- position to be added

type

- OPEN - transaction is added for opening position, CLOSE transaction is added while closing position

pf

- default is "default" portfolio

Details

- This function returns the dataframe of 'n' blank transactions.

add.trxns.position - adds a given position to the transaction table of a given portfolio

Value

recently added transaction

returns the trades/trxns data frame

Author(s)

Siva Sunku


sivasunku/rulesNtrades documentation built on May 29, 2019, 11 p.m.