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

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 Aviram Y, Today, 05:29 AM
                  4 responses
                  11 views
                  0 likes
                  Last Post Aviram Y  
                  Started by algospoke, 04-17-2024, 06:40 PM
                  3 responses
                  27 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Started by bmartz, 03-12-2024, 06:12 AM
                  3 responses
                  30 views
                  0 likes
                  Last Post NinjaTrader_Zachary  
                  Started by gentlebenthebear, Today, 01:30 AM
                  1 response
                  8 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Started by cls71, Today, 04:45 AM
                  1 response
                  7 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Working...
                  X