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

DrawText on Indicator Panel

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

    DrawText on Indicator Panel

    Let me preface this by indicating I have set the DrawOnPricePanel = false;

    I have an issue with the DrawText Command - I can get the DrawArrowLine, and DrawDot to plot on the indicator panel. I cannot figure out why the DrawText will not plot on the indicator Panel. I can plot the text on the Panel 1.

    To draw the arrow I use:
    DrawArrowLine(" " + CurrentBar, false, 0, (PPO(12, 48, 9).Smoothed[0] + .10), 0, (PPO(12, 48, 9).Smoothed[0] + .02), Color.Red, DashStyle.Solid, 4);

    To draw the text I am trying to use:
    DrawText("tag2" + CurrentBar, "2", 0, (PPO(12, 48, 9).Smoothed[0] + .10), Color.Red);

    The following correctly draws the text on panel 1:
    DrawText("tag2" + CurrentBar, "2", 0, High[0] + 35 * TickSize, Color.Red);

    Thank you for your help

    #2
    Hmm. You should be able to DrawText on non-price panels. Please try the attached example. See if it works for you.
    Attached Files
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      text issue still

      I imported your indicator and applied it to my charts on panel 2 of a chart. I removed all other indicators. The 'Test Text' was placed on panel 1 not on Panel 2

      I am using NT 6.5.1000.5

      How else can I test

      Comment


        #4
        That is truly odd. Do you have all strategies off too? If you started with an empty chart and adding this indicator still did not yield text in panel 2 then you might have some success reinstalling NinjaTrader.

        Uninstall NT
        Uninstall .NET 2.0
        Clear browser cache
        Reinstall .NET 2.0
        Reinstall NT
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Same Results

          I followed your instructions and removed all the software in the order you indicated. I also rebooted before any installation. I am running Windows XP Pro SP3.

          It produced the same results as before. I have closed all windows except the Control Panel and then I opened up a chart without a template. I applied your indicator and the text appears on the price panel.

          Comment


            #6
            What instrument and chart type are you testing it on? I am testing on 1min AAPL. See if equities works for you.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Same Results

              I removed all charts except for the aapl you requested. I trade futures w/ zenfire so I used a simulated feed to test your script. I got the same results. the text appeared on the panel 1

              Comment


                #8
                Sorry thepcmd. I am not sure what might have caused this. Last thing I can suggest is an absolutely clean install of NT6.5.

                Uninstall NT6.5
                Go to My Documents\ and delete the NinjaTrader 6.5 folder (PLEASE BE AWARE: YOU WILL LOSE EVERYTHING. ALL INDICATORS/STRATEGIES/DATA/WORKSPACE/ETC. BACK THEM UP BEFORE HAND.)
                Reinstall NT6.5
                Josh P.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by PaulMohn, Today, 12:36 PM
                2 responses
                16 views
                0 likes
                Last Post PaulMohn  
                Started by Conceptzx, 10-11-2022, 06:38 AM
                2 responses
                53 views
                0 likes
                Last Post PhillT
                by PhillT
                 
                Started by Kaledus, Today, 01:29 PM
                0 responses
                3 views
                0 likes
                Last Post Kaledus
                by Kaledus
                 
                Started by yertle, Yesterday, 08:38 AM
                8 responses
                37 views
                0 likes
                Last Post ryjoga
                by ryjoga
                 
                Started by rdtdale, Today, 01:02 PM
                1 response
                6 views
                0 likes
                Last Post NinjaTrader_LuisH  
                Working...
                X