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 geddyisodin, Yesterday, 05:20 AM
    7 responses
    45 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by gbourque, Today, 06:39 AM
    2 responses
    5 views
    0 likes
    Last Post gbourque  
    Started by cre8able, Yesterday, 07:24 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by cocoescala, 10-12-2018, 11:02 PM
    6 responses
    939 views
    0 likes
    Last Post Jquiroz1975  
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    1 response
    19 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X