Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can I make the SMA indicator look back x bars?

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

    Can I make the SMA indicator look back x bars?

    Is it possible to make the SMA indicator look back only some number of bars, say 10, regardless of whether the bars each represent 1, 5 or 10 minutes?

    #2
    It already does that.

    That's exactly what the '10' in SMA(10) means.

    The '10' is the period, it represents the number
    of bars to lookback when deciding how many
    bars to include in the calculation.

    The number of bars is a 'moving window', since
    when a new bar closes, the oldest bar is dropped
    from the calculation -- the 'moving window' is always
    moving to the right -- that's why these kinds of
    indicators are called moving averages.

    All indicators that come with NinjaTrader, including
    the SMA indicator, will work on any kind of chart
    type -- so SMA(10) works exactly as you'd expect
    on a 1, 5, or 10 minute chart.

    Make sense?



    Comment


      #3
      Hello Kraken29,

      The Period setting of the SMA indicator determines the amount of price bars used to calculate it as bltdavid explained.
      JasonNinjaTrader Customer Service

      Comment


        #4
        Ah, thanks very much. I thought "period" was the number of days, so 10SMA was 10 days. Thanks for setting me straight!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Haiasi, 04-25-2024, 06:53 PM
        2 responses
        16 views
        0 likes
        Last Post Massinisa  
        Started by Creamers, Today, 05:32 AM
        0 responses
        4 views
        0 likes
        Last Post Creamers  
        Started by Segwin, 05-07-2018, 02:15 PM
        12 responses
        1,785 views
        0 likes
        Last Post Leafcutter  
        Started by poplagelu, Today, 05:00 AM
        0 responses
        3 views
        0 likes
        Last Post poplagelu  
        Started by fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,407 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Working...
        X