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

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.
    JesseNinjaTrader Customer Service

    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 bortz, 11-06-2023, 08:04 AM
          47 responses
          1,604 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          8 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          18 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          4 views
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          13 views
          0 likes
          Last Post Javierw.ok  
          Working...
          X