Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Inconsistent trades at beginning of backtest

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Inconsistent trades at beginning of backtest

    I do not understand the following behavior:

    As an example, I backtested SampleMACrossover on AAPL from 4/6/16 to 4/7/16 with Fast=2, Slow=12, BarsRequiredToTrade=0 on Last 1 Minute bars.

    The first trades on 4/7/16 were at 9:32, 9:45, 9:47, and 9:57.

    If I start the backtest on 4/7/16, the first trades of that day are at 9:34, 9:35, 9:37, 9:40, 9:45, 9:47, and 9:57.

    I do not understand why these would not be the same with BarsRequiredToTrade=0.

    I am having trouble getting trades to execute at the beginning of the day in live trading, and this is the most reproducible example I have.

    #2
    Hello rmt81,

    Thank you for your post.

    The calculations would be starting at different points for the moving averages as well as the executions as the start date is different.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    68 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    62 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X