Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EMA 200 needs more bars in custom indicator

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

    EMA 200 needs more bars in custom indicator

    Hi there,

    I'm developing an indicator that uses a 200 period EMA.

    I think it needs more bars to compute a correct value. If I add the EMA indicator by itself to the market analyzer I found I had to give it more than the 50 bar default to get it to be correct. I'm getting similar values inside my custom indicator.

    how do I provide more bars to the EMA(200)[0] inside a custom indicator?

    thanks!

    john

    #2
    Hello jkmott59,

    Thank you for your note.

    In the Market Analyzer indicators will use 50 bars of historical data by default.

    You can increase this to any number you would like.

    To call an EMA(200) with 200 bars and get an accurate result, you will need to have at least 200 bars of historical data.

    The amount of historical data is controlled by either the chart data series or the parameter in the Market Analyzer. It cannot be controlled from the indicator itself.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Ah, perfect. I thought there was something I would have to do inside the indicator code.

      thank you!

      john

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      81 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      46 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      29 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      32 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      66 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X