• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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.
    https://ninjatrader.com/support/help..._textfixed.htm
    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 dadarara, Today, 02:42 AM
                0 responses
                3 views
                0 likes
                Last Post dadarara  
                Started by TraderYoda, 10-17-2018, 09:06 AM
                14 responses
                145 views
                1 like
                Last Post TraderYoda  
                Started by Johnny Santiago, Yesterday, 09:31 PM
                0 responses
                7 views
                0 likes
                Last Post Johnny Santiago  
                Started by DarkCloudCover, Yesterday, 07:29 PM
                1 response
                16 views
                0 likes
                Last Post TraderYoda  
                Started by bomberone3, Yesterday, 05:16 PM
                0 responses
                3 views
                0 likes
                Last Post bomberone3  
                Working...
                X