Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator Values on Chart vs Market Analyzer

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

    Indicator Values on Chart vs Market Analyzer

    Hello,

    I've created a custom indicator. When I display it on a chart, I get proper values. When I display it in a Market Analyzer or call on it from a Strategy, the value returns 0.

    Any ideas?

    Thanks,

    Pete

    #2
    Hello,

    This typically occurs when there aren't enough bars loaded or the wrong CalculateOnBarClose setting is used.

    In the market analyzer if you increase the bars to load to match that of your chart, does it work?


    Also be sure to check the output window for error messages (tools -> Output Window)

    Let me know if I can further assist.
    LanceNinjaTrader Customer Service

    Comment


      #3
      Lance,

      Thanks for your help. This worked on the Market Analyzer but not for the strategy. I made sure the strategy is looking back as many bars as is needed.

      I print the value on entry and exit; on entry it prints 0, on exit it prints the value.

      If that's not odd enough, I didn't have any of these problems all through December on the same indicator and strategy.

      Any suggestions?


      Originally posted by NinjaTrader_Lance View Post
      Hello,

      This typically occurs when there aren't enough bars loaded or the wrong CalculateOnBarClose setting is used.

      In the market analyzer if you increase the bars to load to match that of your chart, does it work?


      Also be sure to check the output window for error messages (tools -> Output Window)

      Let me know if I can further assist.

      Comment


        #4
        Are you able to post the indicator or simplified version of the script that replicates the issue?

        If you increase BarsRequired on the strategy does this resolve the issue?

        .cs files located in (MY)Documents\NinjaTrader 7\bin\Custom\Indicator
        LanceNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        633 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        364 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        566 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        568 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X