Displaying 2 results from an estimated 2 matches for "entrytrad".
Did you mean:
entrytrade
2011 Jan 16
2
Time and xts
...?.
?..
2/13/2006 5:20 1.18895 1.18925 1.18835 1.1885
1) Without using zoo, xts or any other time series object, I am trying to
run this code but fails to pass the argument to the function
#n is the length of the series
for (t in seq(from=10,to=n,by=1))
{
while (time[t]=='02:00:00')
{
entrytrade(t)
}
}
Is this possible to do? If yes, any ideas what I am doing wrong?
2) I have also tried with xts by creating the object like this
lines<-data.frame(date,time,open,high,low,close)
z <- read.zoo(lines, header = TRUE, index = list(1, 2), FUN = function(d,t)
as.POSIXct(paste(date,time), f...
2011 Jan 17
2
How to still processing despite bug errors?
...> trying to
> > run this code but fails to pass the argument to the function
> >
> > #n is the length of the series
> >
> > for (t in seq(from=10,to=n,by=1))
> > {
> > ? ? ? ?while (time[t]=='02:00:00')
> > ? ? ? ?{
> > ? ? ? ? ? ? ? ?entrytrade(t)
> > ? ? ? ?}
> > }
> > Is this possible to do? If yes, any ideas what I am doing wrong?
>
> Posted code needs to be self contained and reproducible so that others
> can copy it from your post, paste it into R and see the same problem
> you are seeing. See last line...