Different trades with different backtest start time

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16364 quote
    Somatolysis
    Participant
    Junior

    Hi Community,

    let´s say I like to run a system like this one live:

    defparam preloadbars=5000
    defparam cumulateorders=false
    
    if not longonmarket and dayofweek=1 and time=000000 and average[3000](averagetruerange[1000])<averagetruerange[1000] then
    buy at market
    endif
    
    if time=100000 then
    sell at market
    endif
    

     

    If I start the backtest on Oct. 14th there is the trade from Nov. 8th missing in comparison to a start date of the backtest on Oct. 1st.

    The start of the backtest should show similar results as the live system which starts on the same date.

     

    But how can this difference appear in different start dates of the system. Thought with preloadbars this problem of missing history is solved. But now it doesn´t seem so.

    Can anyone explain?

     

    Thank you and regards,

     

    Soma

    Unbenannt.jpg Unbenannt.jpg
    #16367 quote
    Somatolysis
    Participant
    Junior

    Instrument is EURGBP Mini – forgot to inform in origin subject

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Different trades with different backtest start time


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 1 reply,
has 1 voice, and was last updated by Somatolysis
9 years, 3 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 11/10/2016
Status: Active
Attachments: No files
Logo Logo
Loading...