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

Closing Price Indicator

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

    Closing Price Indicator

    Hi,

    I use weekly charts with default 24/7 session. On Fridays, just after the close I'm having trouble knowing whether or not the chart is updated with Friday's close or if it's still reporting Thursday's closing price. I've tried to determine what time you guys update the data to Friday's close but I've found it varies dramatically from 30 minutes after close to a few hours.

    I would like an indicator to tell me if the latest bar on a weekly chart is actually Friday's closing price or if it's still reporting Thursday's closing price.

    Any suggestions on how to do this or if it's even possible?

    Thanks for any help.

    #2
    Hello stockgoblin,
    To assist you further may I know who your connectivity provider is?

    If you are testing it with Kinetick End of the day connection which comes free with NinjaTrader then data is updated after 4:15PM.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      I subscribe to Kinetick.

      Comment


        #4
        Hello stockgoblin,
        Thanks for the information.

        Historical daily data will be updated at 4:15 PM EDT.
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          Umm, that's not what I asked at all and actually I've reloaded charts at 4:15, 4:30, 5,& 6 and sometimes Friday's data is not updated with the adjusted close for several hours.

          I want an indicator that shows me what days data the weekly bar is reporting.

          Here is my first attempt:

          protected override void OnBarUpdate()
          {

          if (Time[0].DayOfWeek == DayOfWeek.Thursday)
          DrawDiamond("tag1", true, 0, Low[0] - TickSize, Color.Blue);

          }

          This only works on a Daily chart though. I want it to work on the Weekly chart.

          Any help is appreciated

          Comment


            #6
            Hello stockgoblin,
            NinjaTrader stamps a bar with the closing time of the bar. Thus even on Monday, the bar shall be assigned with the timestamp for Friday on a weekly chart. Thus you are facing the scenario.


            Can you get the right prints if you modify your code and reference it to DayOfWeek.Friday.
            JoydeepNinjaTrader Customer Service

            Comment


              #7
              Darn, you're right, weekly bars report a Friday time, even with Thursday's closing price.

              Well, I need verification that the weekly bar I'm looking at is actually Friday's closing price. Can I make an indicator that prints out the daily closing prices from the current week and post that on the Weekly Chart?

              Comment


                #8
                Hello stockgoblin,
                Yes, you can try building a multi timeframe indicator to do it.

                Please refer to our help guide to know more about it
                JoydeepNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by judysamnt7, 03-13-2023, 09:11 AM
                4 responses
                57 views
                0 likes
                Last Post DynamicTest  
                Started by ScottWalsh, Today, 06:52 PM
                4 responses
                36 views
                0 likes
                Last Post ScottWalsh  
                Started by olisav57, Today, 07:39 PM
                0 responses
                7 views
                0 likes
                Last Post olisav57  
                Started by trilliantrader, Today, 03:01 PM
                2 responses
                19 views
                0 likes
                Last Post helpwanted  
                Started by cre8able, Today, 07:24 PM
                0 responses
                9 views
                0 likes
                Last Post cre8able  
                Working...
                X