Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help! Indicator disappeared.

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

    Help! Indicator disappeared.

    The attached indicator draws diamonds when an MACD and MACD avg cross each other. It is used on the same panel with and overlaying an MACD with the same fast, slow and smooth settings.

    It has been working fine for some time but has disappeared from all charts using it Saturday. I have tried everything I can think of to fix it: I tried putting it on a brand new chart, recompiling, replacing with a backup version and recompiling, removing NinjaTrader through the Control Panel, clearing my browse cache and reinstalling NinjaTrader, all to no avail.

    Other panels on some of these charts do have diamonds that show up.

    This was a very useful indicator for me which I really need but I have no idea what to do next. Please help.
    Attached Files

    #2
    - please contact the author of the indicator for support
    - if you are the author: the logs will give you indication what's going wrong.

    Comment


      #3
      I am the author and have made no changes.

      I found the log and there is nothing in there regarding this indicator. It has messages regarding another indicator "Failed to call method 'initialize' for indicator 'vWMACDSwingD'; Index was outside the bounds of the array." -- but that indicator is showing find on the chart. I think it just needed several bar inputs to work, and that indicator has never given any trouble.

      Still no idea what would cause a working indicator to disappear when working fine for some time.
      Last edited by Richard Von; 10-01-2007, 07:19 AM. Reason: Found logs

      Comment


        #4
        You'll find the logs at the "Logs" tab in the Control Center. You always should look there is something if funny.

        Also: For debugging your indicator check out this thread on the educational ressources of this forum: http://www.ninjatrader-support.com/v...6558#post16558

        Comment


          #5
          Please see my edited comments from last post.

          First, the code worked fine and has not changed.

          Second, I did try a stripped down new version also with no results. No log errors.

          Baffled.

          Comment


            #6
            1) I just threw your indicator on a chart here and it see something meaningful.
            2) Please proceed as per link I provided to locate the source of trouble in your indicator.

            Comment


              #7
              Here is my latest version and I'm still stumped. The output window shows that the code is finding the crosses, computing the right levels, and incrementing the tags -- but the diamonds still don't print.

              I can find nothing wrong with the DrawDiamond code itself. I'd appreciate any help you can give.
              Attached Files

              Comment


                #8
                Check the y value parameter for the DrawDiamond() method, I bet you are setting it to a value that is offscreen. Subsitute the value High[0] to verify that it does work.
                RayNinjaTrader Customer Service

                Comment


                  #9
                  This indicator is drawn in the MACD panel, not the price one. The y values are well within the displayed range and are shown by the Output Window to be right on the right spots. (I also tried this with a fixed y value of .05 which also doesn't work.)

                  Still no diamonds.
                  Last edited by Richard Von; 10-01-2007, 11:38 AM.

                  Comment


                    #10
                    How about setting

                    DrawOnPricePanel = false;

                    in Initialize()?
                    RayNinjaTrader Customer Service

                    Comment


                      #11
                      Good suggestion, but already there.

                      What is so mystifying to me is that this code worded fine for quite a while, then suddenly the diamonds disappeared.

                      I'm at my wits end.

                      Comment


                        #12
                        Since it
                        a) works for me
                        b) did work for you
                        I strongly recommend you proceed by the debugging thread I linked below.

                        Comment


                          #13
                          I have used the method suggested of printing each step of the process. The triggers are calculated and printed correctly as are the tag numbers and level. Also, following the DrawDiamond command, the sounds are correctly played.

                          I have tried deleting the DrawDiamond lines of code and re-entering them with no luck.

                          What engine is compiling/executing this code? Something is not working for this DrawDiamond command.

                          Comment


                            #14
                            Sorry, I'm out of ideas. You need to roll up your sleeves and start with simple as possible and add logic step by step to see where it breaks.

                            Comment


                              #15
                              I appreciate your help.

                              I simply have no idea what else to do. I completely deleted the indicator and re-created it from scratch to remove any hidden glitches. It continues to do every step correctly and log these in the output window. The only thing it will not do is draw the diamonds.

                              I've closed all of my charts and created a new chart just to test this and still no luck.

                              Given that the code executes for you, is there someone in your development group that might know why good code would not be executed?

                              Is there some underlying c# engine that might be corrupted and could be reloaded?

                              I just don't know what to do.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              656 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              371 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              109 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              574 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              579 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X