Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

Subtract candle length from start time to calculate isPremature #1793

Merged
merged 2 commits into from
Jan 30, 2018

Conversation

ansonphong
Copy link
Contributor

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    Bug fix / feature

  • What is the current behavior? (You can also link to an open issue here)
    Gekko wasn't starting to trade on the first live candle, it was delaying a full candle before starting trades on the live market.

  • What is the new behavior (if this is a feature change)?
    This causes it to start trading on the first live candle.

  • Other information:
    More info at : [GDAX] Strategy Execution Delayed or Never Starts #1689 (comment)

@askmike
Copy link
Owner

askmike commented Jan 29, 2018

I agree with the changes, but would you mind putting them inside the ifcheck? Else they might degrade performance of the backtester.

@ansonphong
Copy link
Contributor Author

@askmike Yea I see no problem, I'll move that in.

@askmike
Copy link
Owner

askmike commented Jan 30, 2018

Thanks!

@askmike askmike merged commit d2b1129 into askmike:develop Jan 30, 2018
This was referenced Mar 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants