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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    144 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    71 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    125 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    79 views
    0 likes
    Last Post PaulMohn  
    Working...
    X