Skip to content

InitDate and StartDate #151

@stanleyrazor

Description

@stanleyrazor

I have an issue when running a trading strategy where the indicator and signal function are positive from the beginning i.e. the indicator indicates that i should be Long, since the beginning of my dataset

However, when running apply strategy, it does not trade at all.

Here's what I did

  1. I checked all other issues for this GitHub repo, but could not find a similar question.
  2. I checked stack overflow for such quantstrat issues, but have not found one.
  3. I ensure that initDate is one day earlier than the first date in my mktdata e.g. if my dataset starts at 2020-01-01, my initDate is 2019-12-31

I believe this issue does not need a minimum reproducible example, as it could be some undocumented update to the package.
But I'll provide one when needed.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions