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 cmtjoancolmenero, Yesterday, 03:58 PM
    6 responses
    28 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by gbourque, Today, 06:39 AM
    2 responses
    14 views
    0 likes
    Last Post gbourque  
    Started by rexsole, Today, 08:39 AM
    0 responses
    4 views
    0 likes
    Last Post rexsole
    by rexsole
     
    Started by trilliantrader, Yesterday, 03:01 PM
    3 responses
    31 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by Brevo, Today, 01:45 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X