Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Data Addressed by Indicators

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

    Data Addressed by Indicators

    I'm interested in finding out how indicators that utilize past data are affected by what past data is present or available, particularly the ATR indicator. For example, 'ATR(200)[0]' incorporates data going 200 bars into the past, so how is it affected by a chart that doesn't have that many bars showing ?

    I've noticed on a Strategy Analyzer chart that an SMA indicator responds only to the data shown, which may be restricted by the session times used. In the case where non-market hours aren't shown and the price gaps across the day-to-day boundary, it takes a number of bars for the SMA to "catch up" with the data in the new period because the indicator inaccurately looks back across a gap in the data as if there aren't any missing bars.

    Conversely, sometimes it would be desirable to isolate data in this way from the indicator's look-back. For the ATR indicator, looking back on small pre-market or weekend bars will result in an undesirably small value when the indicator is being used during market hours.

    It seems that the session times defined in a Strategy Analyzer chart restrict what data an indicator uses -- can I assume that a regular chart contains data from around the clock, including weekends ?
    My main concern is that the indicator values that arise in my backtesting do not match what they are when used in a live strategy assigned to a chart, since they are "looking back" at different sets of data at certain times of the day. Is this a legitimate consideration ?

    #2
    Shogun,

    All indicators only run off of data shown on the chart. If you limit the session definition it will exclude those times from the indicator calculations as well.
    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
    599 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    345 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    558 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    558 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X