Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update walk.forward.R #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

sonicfray
Copy link

change the save so that the time is removed out of the string, to be able to handle non-daily time series

change the save so that the time is removed out of the string, to be able to handle non-daily time series
@milktrader
Copy link

I don't see any problems with merging this, we should have the author take a look first.

@edward-wilson
Copy link

I also agree that this should be merged!

@braverock
Copy link
Contributor

why should this be forced to Date ? what if you wanted to apply new parameters at 5pm rather than midnight?

I guess I need to understand what isn't working for you, and why you think this fixes it.

@edward-wilson
Copy link

edward-wilson commented Jul 26, 2016

It was throwing an error when using any data on an intra-day timescale. Here are more details of the error that I posted on Stack Overflow (its the first error).

My guess is that there is some issue with the file name when the data and time is used ie 'wfa.GBPUSD.2002-10-21 00:30:00.2002-10-23 23:30:00.RData'.

I have done a local fix by coping the walk.forward function and creating my own "custom.walk.forward" function which uses the code suggested in this pull request and it solves the error.

Very good point that if one wanted to apply new parameters at a particular time of day, is there a better fix/solution?? Perhaps altering the format of the file name?

@braverock
Copy link
Contributor

braverock commented Jul 28, 2016

@edward, can you please open an issue on the master repo http://github.com/braverock/quantstrat/ containing your StackOverflow material, and link it to this pull request? I don't want to have to search stack overflow to remember why we made a change.

This repository is a read-only mirror (and out of date) to the master repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants