Faster than OnTick()
Created at 20 Jul 2017, 19:01
Faster than OnTick()
20 Jul 2017, 19:01
is there a way to make a timebased loop instead of rely on ticks ?
sometimes i have the problem that the Symbol the Algo runs is lags on the ticks and the next update have to wait one or 2 secounds ..
Replies
swingfish
20 Jul 2017, 20:00
nice and thanks alot
for now i just put the onTick in the timer loop .. making it run instantly .. well 100ms instant ;)
thanks alot.
protected override void OnTimer() { OnTick(); }
@swingfish
whis.gg
20 Jul 2017, 19:20
You can use Timer. See sample below, the method will be called 10 times per second.
@whis.gg