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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    64 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    41 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    22 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    25 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    51 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X