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 DannyP96, 05-18-2026, 02:38 PM
    1 response
    27 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    117 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    69 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    226 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    415 views
    0 likes
    Last Post CaptainJack  
    Working...
    X