• 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 ajay8000, Yesterday, 11:31 PM
    5 responses
    19 views
    0 likes
    Last Post NinjaTrader_Marco  
    Started by simjs, Yesterday, 11:23 PM
    0 responses
    5 views
    0 likes
    Last Post simjs
    by simjs
     
    Started by akuntysh, Yesterday, 10:41 PM
    0 responses
    4 views
    0 likes
    Last Post akuntysh  
    Started by Wolf1, Yesterday, 08:26 PM
    0 responses
    7 views
    0 likes
    Last Post Wolf1
    by Wolf1
     
    Started by pparmley, Yesterday, 04:30 PM
    0 responses
    9 views
    0 likes
    Last Post pparmley  
    Working...
    X