qsforex icon indicating copy to clipboard operation
qsforex copied to clipboard

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

Open leolle opened this issue 7 years ago • 3 comments

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 avatar Jul 20 '16 23:07 leolle

nobody answering?

leolle avatar Jul 28 '16 00:07 leolle

@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.

mitchellsuter avatar Aug 04 '16 13:08 mitchellsuter

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

leolle avatar Aug 04 '16 14:08 leolle