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.TextFixed Panel

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

    Draw.TextFixed Panel

    Hello,

    I have an indicator with my calculations and with draw.textfixed in panel2.

    Another indicator (using pivots in dataloaded) I can not make plotting my calculations in panel2, it always plots in price panel.

    Both indicators I have "IsOverlay= true" and "DrawOnPricePanel" = false.

    What would I have to change to plot the indicator using pivots in calculations with draw.textfixed in a panel below price panel?


    Thank you!
    Tony

    #2
    Hello tonynt,

    Draw.Text follows the chart bar series panel unless you set the indicator to use DrawOnPricePanel = false, then it follows the indicators panel.



    JesseNinjaTrader Customer Service

    Comment


      #3
      Hello Jesse,

      thank you for your reply. I wrote I have "DrawOnPricePanel=false" but the indicator I use pivots in my calculations is drawing text in price panel.

      What do I miss in your reply please?

      Thank you!
      Tony

      Comment


        #4
        Hello tonynt,

        The drawing is either always on the price panel or when you use DrawOnPricePanel false its inside the indicators panel.

        If you want to draw on the price panel and have the indicator in a sub panel you need to use DrawOnPricePanel = true. If you want the drawing in the indicators panel you use DrawOnPricePanel false.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Hello Jesse,

          thank you for your reply. I wrote that I follow (try to follow) your instructions and in the attached screenshot you see that the indicator is plottedin pricepanel but I have in the code "...false" and in inidicator parameters "2". But it is plotting drawtext in panel1.

          Thank you!
          Tony
          Attached Files

          Comment


            #6
            Hello tonynt,

            From the image I wouldn't be able to tell what is happening. Please make sure to remove and re apply the indicator if you made changes to the SetDefaults section of the indicator.
            JesseNinjaTrader Customer Service

            Comment


              #7
              Hello Jesse,

              to re-apply it I made a new chart and it is plotting in price panel. Please see setdefaults in code, new chart and the parameters of indicator with panel "2". But it plots in price panel.

              (this is the line in the code: Draw.TextFixed(this,"str8",str8, TextPosition.BottomLeft,Brushes.Black, new SimpleFont ("Arial",11), Brushes.Transparent,Brushes.White,100)

              Thank you!
              Tony
              Attached Files
              Last edited by tonynt; 03-07-2023, 10:29 AM. Reason: add info

              Comment


                #8
                Hello tonynt,

                If you are seeing a problem we always suggest reducing what you are doing to find the issue. You can try making a new indicator and then use only the drawing that you are in that indicator as a test. I see Draw.TextFixed working as expected on my end.
                JesseNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Vietanhnguyen2hotmailcom, Yesterday, 10:29 AM
                4 responses
                23 views
                0 likes
                Last Post Vietanhnguyen2hotmailcom  
                Started by PhillT, 04-19-2024, 02:16 PM
                4 responses
                35 views
                0 likes
                Last Post PhillT
                by PhillT
                 
                Started by ageeholdings, 05-01-2024, 05:22 AM
                5 responses
                37 views
                0 likes
                Last Post ageeholdings  
                Started by reynoldsn, Today, 02:34 PM
                0 responses
                13 views
                0 likes
                Last Post reynoldsn  
                Started by nightstalker, Today, 02:05 PM
                0 responses
                21 views
                0 likes
                Last Post nightstalker  
                Working...
                X