skip first x days in a backtest on any TF

Forums ProRealTime English forum ProOrder support skip first x days in a backtest on any TF

  • This topic has 3 replies, 2 voices, and was last updated 6 years ago by avatarPaul.
Viewing 4 posts - 1 through 4 (of 4 total)
  • #103253

    Hello,

    I’am trying to see no trades in the first 5 days of a backtest on any timeframe.

    Coded the way below & other ways, but still I see trades.

    Could some plz advise what is wrong?

    #103256

    Try this (not tested):

     

    1 user thanked author for this post.
    #103278

    Thanks that does the trick and this code is easier to use!

     

    #103636

    Just for reference;

    Used a code to count the days a position was onmarket and found that between 0 and 1am on Monday it counts (sometimes?) as a day too. So on Monday the counter goes up with 2.

    This code below seems to fix that.

     

     

Viewing 4 posts - 1 through 4 (of 4 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login