search for: highlow

Displaying 1 result from an estimated 1 matches for "highlow".

Did you mean: highley
2009 Jul 01
2
?max (so far...)
...nning count of p & l events pos <- (MyFrame$p > 0) MyFrame$pc <- cumsum(pos) pos <- (MyFrame$l < 0) MyFrame$lc <- cumsum(pos) return(MyFrame) } PercentWins = function (MyFrame) { MyFrame$pwin <- round((MyFrame$pc / (MyFrame$pc+MyFrame$lc)),2) return(MyFrame) } HighLow = function (MyFrame) { temp1 <- MyFrame$p[1:row] MyFrame$hp <- max(temp1) ## Highest p temp1 <- MyFrame$l[1:row] MyFrame$ll <- min(temp1) ## Lowest l return(MyFrame) } F1 <- data.frame(x=1:10, y=2*(-4:5) ) F1 <- AddCols(F1) F1 <- BinPosNeg(F1) F1 <- RunningCount(F1) F...