• 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

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.
    Paul H.NinjaTrader Customer Service

    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

        Paul H.NinjaTrader Customer Service

        Comment


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

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by digibob, Today, 01:13 AM
          0 responses
          2 views
          0 likes
          Last Post digibob
          by digibob
           
          Started by kemoleena, Today, 12:31 AM
          0 responses
          5 views
          0 likes
          Last Post kemoleena  
          Started by aligator, 09-18-2019, 12:15 PM
          12 responses
          104 views
          0 likes
          Last Post Lancer
          by Lancer
           
          Started by StevenNelson, Yesterday, 05:45 PM
          0 responses
          7 views
          0 likes
          Last Post StevenNelson  
          Started by calebsandfort, Yesterday, 05:16 PM
          1 response
          7 views
          0 likes
          Last Post calebsandfort  
          Working...
          X