amt_full: calculate max ammount being able to buy

Description Usage Arguments

View source: R/trade-simulation.R

Description

calculate max ammount being able to buy

Usage

1
2
amt_full(side = c("buy", "buy"), ent = c(1000, 9900), lc = c(9900, 8900),
  pst_wgt = c(1, 2), side_shared_margin = T)

Arguments

side

character: side

ent

vector: entry price

lc

vector: loss cut price

pst_wgt

vector: weight of position

side_shared_margin

logical: can share margin with buy side & sell side


naokiookura/rquants documentation built on May 23, 2017, 10:31 a.m.