Hi all, 

I am a novice in QC and python. I am working on applying RSI on the stock "ROKU" and write backtest code on Jupyter notebook using (ib_insync and ta.momentum). My prof. hopes us to understand how backtest works in QC. I used MovingType.Simple for RSI, but after talking to Alex, I change into MovingType.Wilder. I still get unmatched results. I am encouraged by my prof. to search for help there!

1. In "orders" of backtest, it calls 3110 shares on Market open at 32.85$ in 2018-3-24.

  • My initial cash is 100,000. Since 100,000//32.85 = 3044, then how QC gets 3110 shares.
  • How QC executes the order on 2018-03-27 at $32.85 that was placed on 2018-03-24 (Saturday)? The historical data from IB tells that open price in 2018-03-27 is 33.55.