Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtest Granularity

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

    Backtest Granularity

    Hi,

    Am attempting to achieve the granularity suggested in the samples. However, it appears that what is actually created is more frequent sampling, sure, but on the indicator series generated by the faster tick stream...

    How do I achieve the following:

    I have an indicator for a strategy (primary time series) which when "live" is checked (and triggered) on a tick by tick basis related to the primary time series (ie tick by tick I see and trade the primary time series paint).

    Of course backtesting I get triggers only based on the primary time series (ie late).

    I want to improve the granularity for backtest puposes. So I set up a secondary (1 minute) time series as advertised in the sample and literature, I do indeed get 1 minute triggers, but only on the indicator generated by the secondary (1 minute) time series. So if I run a backtest or optimise, I get the same triggers for 60 minute as 2 minute primary bars.

    Is there a way to replicate the "live" performance (albeit on 1 minute bars, which will suffice), but using the primary bar paint?

    To give an example: if you have, say a 60 minute SMA [4], you will see the SMA of the last four hourly bars, but if "OnBarUpdate" is false, you will see that 60 minute SMA painting live on the current, unfinished bar. If you want to backtest of the 60 minute SMA[4], but as it would be painting live (well, every 1 minute), how do you do it?

    Rgds,

    #2
    Hello,


    Someone will respond to your post on Tuesday. Thank you for your patience.
    DenNinjaTrader Customer Service

    Comment


      #3
      tlan294,

      I guess I am not sure what you mean by "painting". The additional granularity allows you to place trades on the 1min. If you wanted to paint based off of the 1min you place the paint command over on the 1min series.
      Josh P.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      633 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      364 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      567 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      568 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X