Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Markers in Indicator Panels

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

    #16
    Here is what I just did.

    Closed all charts, MA, then Shut down NT.

    Restart NT, now not a single chart open.

    Created a new indicator called "qqq.cs", just like the ttt.cs.

    Open a new chart, load qqq.

    Same result.

    Comment


      #17
      Try this.

      Import this file. Open a new chart. Apply PanelTrue and PanelFalse indicators. Post an image of what you get.

      Thanks
      Attached Files
      RayNinjaTrader Customer Service

      Comment


        #18
        Here it is.
        Attached Files

        Comment


          #19
          here is more clearer, as I changed PanelFalse line to Black, Dot.
          Attached Files

          Comment


            #20
            Also, with these two indicator loaded, NT is running very slow. It is trying to do something.. Unload them, everything back to normal.

            Comment


              #21
              I am stumped like you are. I will look into the performance issue, I see that here as well.

              My last suggestions.

              - Make sure the panel properties when adding the indicators on the chart are 2 and 3
              - Try a complete uninstaller (deleting My Documents\NinjaTrader 6 folder) and re-install. You will lose user data in this process.
              RayNinjaTrader Customer Service

              Comment


                #22
                Thanks for the suggestion.
                RayNinjaTrader Customer Service

                Comment


                  #23
                  Ray,

                  1) I reinstalled NT on my other machine. And yes it works after reinstall. But all it says is that this function works under some conditions. I am still not confident to use it in my indicator yet becuase a few weeks from now it may quit working. I mean NT is working just fine otherwise, but a few functions (DrawLine, DrawRay) does not, then you have to reinstall NT to make it work. To me, it says these functions may have some issues. Hope you guy can look into it.

                  On a related note:

                  2) I am doing this (drawing line at indicator panel) is to create an indicator with different color without doing multiple Add(..), becuase doing so will mess up the DataBox and more resource consuming. An indicator with 4 color will essentially require 4 indicators.

                  Can you look into these possibilites that will let us create indicators with changing colors:

                  a) Allow plot's pen being changed after initialize() function, e.g.,

                  if value<0
                  Plot[0].Pen = new Pen(Color.Red,2);
                  else if value=0
                  Plot[0].Pen = new Pen(Color.Yellow,2);
                  else
                  Plot[0].Pen = new Pen(Color.Green,2);

                  That way indicator's color changes with its value. Right now if you do this way the indicator still stays the same color depends on its initial value.

                  b) Find a way to hide additional indicator from Databox, e.g,

                  Plot[1].ShowDataBox = true/false;

                  So we still do mutiple Add(..) for each color, but we hide them from Databox.

                  or c) whatever you may think of..

                  Thanks for considering.

                  Comment

                  Latest Posts

                  Collapse

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