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 gentlebenthebear, Today, 01:30 AM
    2 responses
    13 views
    0 likes
    Last Post gentlebenthebear  
    Started by Kaledus, Today, 01:29 PM
    2 responses
    7 views
    0 likes
    Last Post Kaledus
    by Kaledus
     
    Started by frankthearm, Yesterday, 09:08 AM
    13 responses
    45 views
    0 likes
    Last Post frankthearm  
    Started by PaulMohn, Today, 12:36 PM
    2 responses
    16 views
    0 likes
    Last Post PaulMohn  
    Started by Conceptzx, 10-11-2022, 06:38 AM
    2 responses
    56 views
    0 likes
    Last Post PhillT
    by PhillT
     
    Working...
    X