Timer Reset
Posted: Fri Jan 27, 2017 4:04 pm
Hello,
I need some help with this. Am trying to figure out how to reset a timer after my contingent order is set.
I created a timer to set an expiration time to open orders but I need it to reset if order is executed for the order that follows.
Currently it will run for set time and delete orders as set by user on a continuous basis but I need it to reset when a specific event happens. any ideas?
Best
Ron
I need some help with this. Am trying to figure out how to reset a timer after my contingent order is set.
I created a timer to set an expiration time to open orders but I need it to reset if order is executed for the order that follows.
- Code: Select all
--timer start
if UseCOexpiry then
Timer3 = core.host:execute("SetTimer", 777, (COxTimer*60))
end
Currently it will run for set time and delete orders as set by user on a continuous basis but I need it to reset when a specific event happens. any ideas?
Best
Ron