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

Drawing with Strategy Builder

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

    #16
    Hello Michael,

    What are you trying to accomplish by using fixed text and adding current bar to the tag with unique strings.

    Unique tags make new objects. Re-usuing tags updates the existing object.

    Fixed text draws in a specific corner or in the center. If you have a new object for every bar they will layer on top of each other. Is this what you are wanting?

    Are you wanting new objects on top of each other?

    Or are you wanting one drawing object in the corner?


    You can change the color of text in a text box but you would need to unlock the code and modify it by hand to do so.

    Below is a publicly available link to the help guide on Draw.TextFixed(). Please see the Parameters.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #17
      Hello ChelseaB,

      I want one drawing object in the top right corner.

      I thought that it is was wrong because I don't want objects on top of each other and I did delete the string "Current Bars".
      But I can still see both text over each other.

      Comment


        #18
        Hello Michael,

        How many different tag names are being used in your script?

        How many objects using different tag names are being set to that corner?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #19
          Hello ChelseaB,

          2

          one for rising condition
          and
          one for falling condition
          Attached Files

          Comment


            #20
            Hello Michael,

            With two drawing objects using two different tag names these will both appear. If they are set to the same corner they are going to be on top of each other.

            So do you want two objects stacked on top of each other or one object that has the text updated?
            Chelsea B.NinjaTrader Customer Service

            Comment


              #21
              Hello ChelseaB,

              I think I did understand the Fixed Text the wrong way. Does Fixed Text means that those texts are all the time visible?

              What I'm looking for is when a condition ,for example, a "rising SMA" is given a text appears.

              Comment


                #22
                Hello Michael,

                All drawing objects remain on the chart unless they are removed with RemoveDrawingObject() or RemoveDrawingObjects() or unless they are moved by the tag name being reused.

                This includes drawing objects that are drawn on specific bars, which remain on the bar they are drawn on, or objects that are drawn in a specific fixed corner of the chart.

                No drawing objects do not automatically get removed after they are drawn.

                You can have a condition that ensures no other conditions are true (by explicitly using the opposite conditions) and then call RemoveDrawingObjects() if you want to remove all drawing objects on bars where the condition is not true.
                Chelsea B.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Perr0Grande, Yesterday, 08:16 PM
                1 response
                7 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by f.saeidi, Yesterday, 08:12 AM
                3 responses
                24 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by algospoke, Yesterday, 06:40 PM
                1 response
                14 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by quantismo, Yesterday, 05:13 PM
                1 response
                14 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by The_Sec, 04-16-2024, 02:29 PM
                3 responses
                16 views
                0 likes
                Last Post NinjaTrader_ChristopherS  
                Working...
                X