In addition to onTick() and onIntervalClose() a trading strategy should be able to send an order or take decisions at precise times.
Waiting for a Tick or IntervalClose that can arrive or not doesn't fill my expectations.
Hi Franciso. The model is built on the basis that you would typically want to trade as soon as early as possible once a new price is quoted. This triggers the onTick() function, or the onIntervalClose() in the case that an interval has passed.
We'd be happy to consider providing a scheduler that would allow you to run code at a specified time if there is demand for it, though would be good to understand your use case better.
In the meantime you should be able get the behaviour you're after by using the onIntervalClose() function with an if statement to check the day/hour/minute.
@support Thanks for your answer.
If my strategy conditions trigger (conditions check some pre-market parameters), I want to open a position at the opening bell time (9:30 EST) and then closing the position just before the closing bell time (16:00 EST)
Using onIntervalClose() function with an if statement to check the day/hour/minute will trigger on the tick after the selected day/hour/minute happens. But this tick can happen hours or days later. Example: If I use the onIntervalClose() function to close my position with an if statement to check 15:59 EST, my closing order will be sent only if there are ticks in the last minute of the market session. If the last minute shows no activity and it's friday, my position can remain open until next monday...