Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 ageeholdings, Today, 07:43 AM
        0 responses
        10 views
        0 likes
        Last Post ageeholdings  
        Started by pibrew, Today, 06:37 AM
        0 responses
        4 views
        0 likes
        Last Post pibrew
        by pibrew
         
        Started by rbeckmann05, Yesterday, 06:48 PM
        1 response
        14 views
        0 likes
        Last Post bltdavid  
        Started by llanqui, Today, 03:53 AM
        0 responses
        9 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by burtoninlondon, Today, 12:38 AM
        0 responses
        12 views
        0 likes
        Last Post burtoninlondon  
        Working...
        X