Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

bug on granularity back testing - Trades since bar Opening

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

    bug on granularity back testing - Trades since bar Opening

    I wrote a strategy and realized I cannot test it because the backtesting with granularity simply doesn't work.
    I wander if theer

    I set a chart with 1000 ticks volume chart and I use the approach
    Add(PeriodType.Tick, 1).
    Clearly the work is correct and the results are more similar to thebacktesting with MarketReplay.
    But really what is happening is that in the main volume-chart the order is sent at the order of the bar but the intraday granularity method calculates it using a one tick series from the open thus making all results invalid.
    The calculation should be done at he next bar, that is on the tiks following the close of the main volume-chart where the strategy is inserted.
    For the exits is not really relevant.


    Any idea? How to make NinjaTrader 7 working correctly?
    Regards
    G

    #2
    Hello giogio1,

    Thank you for your note.

    Without the full code we're unable to test on our end.

    If you'd like to upload the full code I can take a look and see if anything jumps out. Or if you'd prefer to email a copy, send to platformsupport[at]ninjatrader[dot]com with Attn: Alan P in the Subject line. Also within the email please include a link to this thread, and the files.

    I look forward to your reply.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Thank You Alan,
      I'll prepare a test case for you as soon as I can get to it.
      Best
      G

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by RubenCazorla, Today, 09:07 AM
      1 response
      5 views
      0 likes
      Last Post RubenCazorla  
      Started by Irukandji, Today, 09:34 AM
      0 responses
      3 views
      0 likes
      Last Post Irukandji  
      Started by TraderBCL, Today, 04:38 AM
      3 responses
      25 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by WeyldFalcon, 08-07-2020, 06:13 AM
      11 responses
      1,423 views
      0 likes
      Last Post jculp
      by jculp
       
      Started by BarzTrading, Today, 07:25 AM
      2 responses
      29 views
      1 like
      Last Post BarzTrading  
      Working...
      X