Adjusting the TockTime during a run()

Posted By: Grant

Adjusting the TockTime during a run() - 11/02/22 09:48

I'm currently running a scalping prototype. Due to the high amount of server calls, I received a warning from my broker that they will terminate my demo account when I don't take action to limit these calls.

Is it possible to adjust the TockTime during a run()? (i.e. low TockTime during active trading hours and vice versa for less active trading hours)
If currently not possible, then this would be a feature request for the next version. Thank you.
Posted By: Petra

Re: Adjusting the TockTime during a run() - 11/02/22 11:00

You can always adjust the TockTime but when its a request rate issue, you should also increase the TickTime.
Posted By: Grant

Re: Adjusting the TockTime during a run() - 11/02/22 11:45

OK, thanks for your clarification Petra. I wasn't sure if TockTime was a dynamic setting or not.
Good that you mention the TickTime. I forgot that it can't be greater than TockTime.
© 2024 lite-C Forums