• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

taking some day off

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    taking some day off

    Is it possible to not consider a specific day when backtesting a period?

    I want to backtest last 30 days despite 04/22/2014, for instance..

    #2
    Hello Dafonseca,

    Thank you for your post.

    Yes this is possible.

    You would want to use this code snippet as a starting point -
    Code:
    if(ToDay(Time[0]) == 20140422) return;
    This will convert the Time[0] from backtesting to a yyyymmdd format and check that if date is the 22nd of April and if so to return.

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rickyblah12, Today, 01:01 PM
    1 response
    11 views
    0 likes
    Last Post Erwin Beckers  
    Started by dadarara, Today, 12:18 PM
    0 responses
    8 views
    0 likes
    Last Post dadarara  
    Started by joemiller, Today, 07:33 AM
    2 responses
    12 views
    0 likes
    Last Post joemiller  
    Started by TheGameOfProbabilities, 07-18-2019, 06:56 AM
    7 responses
    38 views
    0 likes
    Last Post DaveS
    by DaveS
     
    Started by claxxical, Yesterday, 10:00 PM
    0 responses
    13 views
    0 likes
    Last Post claxxical  
    Working...
    X