According to the documentation, relative orders, when run in the backtest get treated as market orders. In the attached backtest, however, the relative order (which is submitted at the first bar) only trades at 9:56 AM. If I replace it by an equivalent limit order, it trades at 9:32AM. So that suggests that the relative order is not being treated as a market (or even a limit) order since it takes longer to fill. AAPL is a very, very liquid stock so it should certainly not take that long regardless.
Am I wrong in my expectations of how the rel order should behave in the backtest?
Also, is there an easy way to detect if an algo is running in a backtest? I may want to use limit orders in backtest but relative in production.