if (FALSE) {
m <- specifyModel(Next(OpCl(QQQQ)) ~ Lag(OpHi(QQQQ)))
m.built <- buildModel(m,method='rpart',training.per=c('2007-01-01','2007-04-01'))
tradeModel(m.built)
tradeModel(m.built,leverage=2)
}
Run the code above in your browser using DataLab