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 cmtjoancolmenero, 04-25-2024, 03:58 PM
      23 responses
      123 views
      0 likes
      Last Post cmtjoancolmenero  
      Started by Quanto, Today, 02:17 PM
      0 responses
      3 views
      0 likes
      Last Post Quanto
      by Quanto
       
      Started by Skifree, Today, 11:21 AM
      3 responses
      9 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by manueldecastro, Today, 01:16 PM
      3 responses
      11 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by tradingnasdaqprueba, Today, 03:42 AM
      9 responses
      35 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X