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

How can I make my trading system working on a 5 or 15 minutes time frame interval? #50

Open
leolle opened this issue Jul 20, 2016 · 3 comments

Comments

@leolle
Copy link

leolle commented Jul 20, 2016

Hi Michael,
Can I ask a question about the heartbeat?
Does the thread stop as the heartbeat interval if there is no new ticks coming in? And the thread resumes back to work if there's new ticks coming in?
How can I make my trading system working on a 5 or 15 minutes time frame interval instead of tick by tick?

Thank you.

Regards,
Wei

@leolle
Copy link
Author

leolle commented Jul 28, 2016

nobody answering?

@mitchellsuter
Copy link

mitchellsuter commented Aug 4, 2016

@leolle: Collect the ticks into some container, and roll them up once you reach your X minute benchmark. You could create a CandleEvent to then send it through the pipe that is processed by the other parts of your system.

@leolle
Copy link
Author

leolle commented Aug 4, 2016

@mitchellsuter thank you for you suggestion, but I think the ticks are coming randomly.

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

No branches or pull requests

2 participants