Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Show / Hide the prior day data (indicator)

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

    Show / Hide the prior day data (indicator)

    Hello all

    I`m new in the indicator programming world, and my question is the following.
    How can i code, if i don`t want to show my indicator the previous day data ?.
    ( I have an open range indicator, which is plotting every day at 8AM to 9AM. And i don`t want to see the prior day`s open range ).

    Thank`s for the answers .

    Best regards : Andrew
    Attached Files

    #2
    Hello,

    Thank you for the post.

    Can you tell me, are you using drawing objects for this or drawing by other means?

    If these are just drawing objects being used like a Rectangle for example, you could provide only 1 tag and that would only allow for 1 object at a time.

    If you currently are using unique tag names like "Tag" + CurrentBar, this would allow for more than 1 object to exist. Instead you could just use "Tag" and that re create the object when re drawn.

    I look forward to being of further assistance.

    Comment


      #3
      Dear Jesse

      First of all, i want to say thanks, for your help! .
      Yes i use this method:

      DrawRegion("ColorRange", CurrentBar, 0, RangeHigh, RangeLow, Color.Transparent, RangeAreaColor, RangeAreaOpacity

      So what is the solution ? (can you explain it ?).

      Best regards: Andrew

      Comment


        #4
        Hello Andrew,

        As long as the tag name is not unique (meaning this is reused) only one drawing object will appear.

        Attached is an example that demonstrates.
        Attached Files
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Dear ChelseaB

          I really thanks for your help !

          Best regards: Andrew

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          571 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          331 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          549 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          549 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X