reinvest: reinvest - reinvested trades

Description Usage Arguments Value Author(s)

Description

This will provide the trades & their corresponding quantities, how they would be if all the capital was reinvested. Capital gained can be utilized to increase the traded quantity according to the given trade parameters.

Usage

1
2
reinvest.trades(t, initCapital, stopCapital, buffCapital = 0, incrCapital,
  initQty, incrQty, maxQty = 10000)

Arguments

initCapital

- Initial capital required

stopCapital

- Capital threshhold, below which trading would be stopped & warning would be added

buffCapital

- buffer capital, This would be saved before increasing the trade quantity

incrCapital

- One Unit of incremental Capital, Each unit of incrCapital gives capacity to increase one unit of incrQty

initQty

- Initial Quantity

incrQty

- One unit of incremental quantity

maxQty

- maximum quantity that can be traded. It will act as a roof irrespective of capital

Value

- Returns the new trades that would have been executed with incremental capital. New stats to be applied on this if stats to be observed.

Author(s)

Siva Sunku


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