Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Use indicator on Todays Date only.

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

    Use indicator on Todays Date only.

    How would I be able to Label Bars for Only the current Day? I'm not sure where to begin on doing something like this.
    For example if I want an indicator to display an up arrow on SMA crosses but for ONLY today.

    THanks!!!
    Last edited by r3n3v; 11-08-2018, 05:15 PM.

    #2
    Hello r3n3v,

    Thanks for your post.

    Can you provide further context on what you would like to do?

    Are you using daily bars or is this for intraday data?

    Do you want to show only the latest up arrow or all up arrows in intraday data of today?

    By "today" do you mean starting at midnight or starting at today's ETH session which began yesterday or perhaps today's RTH session?

    You may want to post a chart example to clarify.

    Comment


      #3
      I mean today's RTH Session. I don't want to Display the indicator arrows for all sessions just for the current RTH Session. Thanks!

      Comment


        #4
        Hello r3n3v,

        Thanks for your reply.

        In the indicator, you can create a condition to check if the current bar is equal to the RTH start time and as the action, you can use RemoveDrawObjects() to remove all of the previously draw arrows. The indicator will continue drawing objects in the new RTH session.

        For example:

        if (ToTime(Time[0]) == ToTime(093000))
        {
        RemoveDrawObjects();
        }


        Reference: https://ninjatrader.com/support/help...rawobjects.htm

        Comment


          #5
          Ok. Many thanks Paul. Will Try Thanks!!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          44 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          54 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          34 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          94 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          56 views
          0 likes
          Last Post PaulMohn  
          Working...
          X