Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator Calculations Backtesting

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

    Indicator Calculations Backtesting

    I am backtesting a strategy that includes a 200 SMA, for dates say, 1/1/10-12/31/10. The trouble I am having is that the indicator does not have the correct value until the 200th (or close to) bar, or about 11/1/10, leaving calculations incorrect before then. I have plenty of historical data, that's not a problem. Changing "maximum bars look back" doesn't seem to change anything, the same for "min bars required" I can fix the problem by increasing the time period to approx 1/1/09-12/31/10 and looking at the results for only 2010, but I was wondering if there is a way to have the indicator calculate itself correctly starting on the start date.

    Thanks

    #2
    Hello wallabe13

    Welcome to the NinjaTrader Support Forums!

    There is not a workaround to this since the 200 SMA calculation requires a minimum of 200 data points in order to compute this average (output).

    For more on Working with Indicators:


    Please let me know if you have any additional questions.
    ChipNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    93 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    48 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    31 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    34 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    70 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X