Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to load before the beginning without backtest those ?

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

    How to load before the beginning without backtest those ?

    Hi everybody !

    I would like to backtest a strategy which need to analyse at least one day of 1 minuts chart before backtesting. How could I do this ? Because if I load 2 days, the first one will be backtested and adjust "min bars required" doesn't work...

    Or any way to export result on excel for example in order to select only trade on the last day ?

    Thanks a lot !

    After

    #2
    Hello After,

    Thanks for your note.

    NinjaTrader will begin testing after the BarsRequired number has been satisfied.

    I understand that by adding a day its not starting where you would like.

    You will need to correct this with logic in your code. You can write logic so that the orders start placing on a specific date and time, this would be fairly simple to do. Or you could write rules that start the orders after a new session begins so that it skips the session it starts with..

    Something will need to be written to prevent the script from executing before you want to see orders and this will depend on what criteria you want to have them start being placed.

    Below I am adding a few links to the help guide that have examples of using time filters, and determining the start of a session.

    ToTime() - http://www.ninjatrader.com/support/h...nt7/totime.htm

    ToDay() - http://www.ninjatrader.com/support/h.../nt7/today.htm

    Bars.FirstBarOfSession - http://www.ninjatrader.com/support/h...rofsession.htm

    Bars.BarsSinceSession() - http://www.ninjatrader.com/support/h...ncesession.htm
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    117 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    166 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    85 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    130 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    88 views
    0 likes
    Last Post PaulMohn  
    Working...
    X