Skip to content
Prev 13471 / 15274 Next

Help activating stop loss order.

forgot to add the contents of position_sizing.r. Here it is:

osFixedDollar <- function(data, timestamp, orderqty, portfolio, symbol,
ruletype, ...) {
  ClosePrice <- as.numeric(Cl(mktdata[timestamp,]))
  orderqty <- round(tradeSize / ClosePrice, -2)
  return(orderqty)
}


On Thu, Aug 27, 2015 at 12:51 AM, Amod Karve (????) <karve.amod at gmail.com>
wrote: