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 rocketman7, Today, 02:12 AM
    5 responses
    21 views
    0 likes
    Last Post rocketman7  
    Started by trilliantrader, 04-18-2024, 08:16 AM
    7 responses
    27 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by samish18, 04-17-2024, 08:57 AM
    17 responses
    65 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by briansaul, Today, 05:31 AM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by PaulMohn, Today, 03:49 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X