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

Draw commands showing in multiple panels

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

    Draw commands showing in multiple panels

    I developed a patterns indicator for Woodies and am getting notes from users that some of the text and drawing is being seen in panel 1 and some in panel 2. In this snippet from the most recent occurrence, the DrawText commands show up in panel 1 and the DrawLine command in panel 2. The indicator is attached to panel 2.

    if(ShowGhostPeaks==true)
    {
    DrawText(CurrentBar.ToString() + "GHOST1","p1",gstLeftPkBars,gstLeftPk+10,Color.Yel low);
    DrawText(CurrentBar.ToString() + "GHOST2","p2",gstMiddlePkBars,gstMiddlePk+10,Color .Yellow);
    DrawText(CurrentBar.ToString() + "GHOST3","p3",gstRightPkBars,gstRightPk+10,Color.Y ellow);
    DrawLine(CurrentBar.ToString() + "GTrend", gstLeftLowBars,gstLeftLow,0,(gstLeftLow+(gstLeftLo wBars*gstChangePerBar)),GstTrendColor,DashStyle.Da sh,1);
    }

    I have never had it happen to me personally.

    Can anyone shed some light or point me in the right direction?

    Snap

    #2
    There is no space in the "Da sh". It shows as Dash when in edit mode.

    Comment


      #3
      The only property that would trigger that is:

      DrawOnPricePanel

      if set to true, draw objects are drawn on the price panel else they are drawn on the panel the indicator exists on.
      RayNinjaTrader Customer Service

      Comment


        #4
        NinjaTrader_Ray,

        I don't want you to do my programming for me and I'm sorry if this sounds like it, but could you look at this thread on Woodies site.



        The fact that this problem is sporadic really gives me heartburn. I haven't a clue what might be causing these problems and am wondering if there might be a system problem or a conflict with other indicators. It seems to me that if it was a straight forward error on my part, the problem would occur all the time.

        I know you are busy and apologize for imposing.

        Scratching my head,
        Snap

        Comment


          #5
          Snap,

          Dierk and I looked through our code and can't see how this could happen. Our lead charting developer is back next week and I will have him take a run through as well.

          What we can do from here is -

          - Please try and find out if there is some common thread between anyone who has experienced this issue (how they add indcitor to the chart, any patterns)
          - Are you setting any .Panel or .PanelUI property in your code?
          - Any dynamic changing of DrawOnPricePanel property in your code
          RayNinjaTrader Customer Service

          Comment


            #6
            Thanks for looking, Ray. I have asked the users with problems for any patterns they might have in common. I have not used any .Panel, .PanelUI or DrawOnPricePanel commands that I know of. I am using 1000.4 w/o any problems.

            Comment


              #7
              Can you add code in Intialize()

              DrawOnPricePanel = false;

              And see if this makes a difference for the users?
              RayNinjaTrader Customer Service

              Comment


                #8
                I'm sorry, I overlooked that statement. It is already there.

                Comment


                  #9
                  Hope you guys from support can take a look at this after the Fourth of July holiday. Problems are fully described including screenshots in the Ninja section of Woodies Forum thread.

                  Comment


                    #10
                    Originally posted by snaphook View Post
                    I'm sorry, I overlooked that statement. It is already there.
                    I have similar problems with one of my code, the problem: every time I change the NT text defaults, I get the problems, the solution rip off NT delete the installation folder and make a new fresh installation. Hope that help. That was my experience some versions back.

                    Comment


                      #11
                      Guys, we still are looking for a reproducible scenario, since we haven't observed this behavior on any of our standard indicators. So, in case you have something reproducible, please:
                      - mail me indicator source code to "dierk AT ninjatrader DOT com"
                      - please provide any details needed to reproduce

                      Comment


                        #12
                        Thanks for looking at this. I wish I could provide a reproducable scenario, or do I? hmmm, but I can't get it to happen in my install. I have attached the source code and advised people on Woodie's site experiencing this problem of this thread.
                        Attached Files
                        Last edited by snaphook; 07-06-2008, 08:23 AM.

                        Comment


                          #13
                          Great. Please let me know as you have something reproducible.

                          Comment


                            #14
                            Well we found a resolution, but can't really help you troubleshoot much. The user uninstalled NT, deleted all old folders and completed a search of anything NT related and deleted them, too. A fresh, pristine install resolved the problem, unfortunately, I can't tell you if it was in templates, workspaces, the database or what.

                            Snap

                            Comment


                              #15
                              Thanks for reporting back.
                              RayNinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by rbeckmann05, Yesterday, 06:48 PM
                              1 response
                              12 views
                              0 likes
                              Last Post bltdavid  
                              Started by llanqui, Today, 03:53 AM
                              0 responses
                              6 views
                              0 likes
                              Last Post llanqui
                              by llanqui
                               
                              Started by burtoninlondon, Today, 12:38 AM
                              0 responses
                              10 views
                              0 likes
                              Last Post burtoninlondon  
                              Started by AaronKoRn, Yesterday, 09:49 PM
                              0 responses
                              15 views
                              0 likes
                              Last Post AaronKoRn  
                              Started by carnitron, Yesterday, 08:42 PM
                              0 responses
                              11 views
                              0 likes
                              Last Post carnitron  
                              Working...
                              X