I’m trying to setup a AFL formula to execute for automated trading with IB. As far as I have understood, the best option is to use the Analyzers Exploration function to execute the formula based the time interval setting in Auto Repeat A/R Scan/Explore.
I’m curious to know if this is a robust solution. If I have understood this right, the AR explorer is executing like a timer. For example every 5 minutes if i would like to trade 5 min bars. But what if the data source haven’t received any new bar at the exact same time the Explorer is executing? Imagine the explorer executes at time X, and a new bar is received from the data source at X±200 ms. This would make the formula execution and the incoming data out of sync, and therefore a proper trading decision cannot be made. How do we handle such problems? Is the Explorer the right solution for auto trading?
Another question about the periodicity. When running the explorer, how does it know which time frame that it should execute on? For example if I have a database consisting of 1 minute bars and the explorer is executing on symbols from that same database, defined by the analyzer filter. Where is the time period set is it set? Is it set in the Back tester settings or elsewhere?