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 DJ888, Today, 10:57 PM
    0 responses
    1 view
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    158 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Today, 09:29 PM
    0 responses
    7 views
    0 likes
    Last Post Belfortbucks  
    Started by zstheorist, Today, 07:52 PM
    0 responses
    7 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    151 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Working...
    X