Hi,
I am currently programming a very promising algo, but now I have reached a problem and not sure if its even possible to solve.
My algo is high frequency day trading, actually on tick base.
Nevertheless a main indicator to generate signals is a Simple MA on minutes basis.
Basically the signal should trigger, when the actual price ("tick") is reaching the Simple MA.
As the Simple MA of the current period needs the actual closing price of the minute bar, its actually not possible to compare actual price and "potential" Simple MA that included the recent period.
Therefore I have programmed a routine that is forecasting this Simple MA and the algo should buy/sell when the actual price is reaching this forecasted interval even before the "real" Simple MA can be calculated. This is fundamental as the price is very often bouncing at this SMA level.
The question is now, is Quantopian somehow able to backtest trades in "realtime" or do we need to trade based on closing prices of e.g. minute bars.
Thanks