Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strange behavior of time-series

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

    Strange behavior of time-series

    I am writing NinjaScript indicator to save all the chart bars to file in Metatrader style.
    Almost everything is fine, except one thing. Some bars are inaccessible programmatically, but they are on the chart.

    As an example, I use DX 09-15 15-Min chart.
    There's bars 3rd of July, 2015 up to the end of day (23:45 and 00:00).
    But in my indicator the last bar this day is 20:00.
    Attached Files
    Last edited by Dubovik; 08-11-2015, 05:05 AM.

    #2
    Oh, I undestood.
    It's because of very inconveniet chart - there's no data on the bottom of chart, near time.

    Comment


      #3
      Hello Dubovik,

      Thank you for your inquiry.

      Testing your script on my end, the CSV file your indicator generates seems to be printing every bar on my chart.

      After looking through your code, please be aware that your time stamps are printing inaccurately due to using Time[i + 1] rather than Time[i].

      Originally posted by Dubovik View Post
      Oh, I undestood.
      It's because of very inconveniet chart - there's no data on the bottom of chart, near time.
      Were you able to resolve your inquiry? If not, please let me know.
      Zachary G.NinjaTrader Customer Service

      Comment


        #4
        No, Time[i+1] used purposely. I was tryng to get Metatrader-like time (time of bar start, not end). I know it's not the correct way, I already have a newer version.

        The problem is that NinjaTrader chart does not give me the date of the bar, like Metetrader does. Please see at the pictures attached.

        The problem is chart inconvenience. I think, NinjaTrader interface developers should think about this.
        Attached Files

        Comment


          #5
          Hello Dubovik,

          If you would like to view the information for a certain bar, you can hold the middle mouse button. A small box will pop up showing the bar's date, time, OHLC, and volume.

          Alternatively, you can bring up the Data Box by right-clicking on the chart and selecting Show Data Box in the right-click menu that appears. A Data Box window will pop up and will display the information of each bar that your mouse rolls over.

          For more information about the Data Box, please take a look at this link in the NinjaTrader help guide: http://ninjatrader.com/support/helpG.../?data_box.htm

          Please, let us know if we may be of further assistance.
          Zachary G.NinjaTrader Customer Service

          Comment


            #6
            I know about databox, but it's inconvenient.

            I have no middle mouse button, because I use laptop.

            Thanks for your replies.
            Last edited by Dubovik; 08-11-2015, 01:50 PM.

            Comment


              #7
              Hello Dubovik,

              We appreciate your recommendation to improve NinjaTrader.

              Since the type of functionality you are seeking is not presently supported within NinjaTrader, I have documented this particular feature request and have sent it to our product development team.

              Please, let us know if we may be of further assistance.
              Zachary G.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by geddyisodin, 04-25-2024, 05:20 AM
              8 responses
              61 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by jxs_xrj, 01-12-2020, 09:49 AM
              4 responses
              3,288 views
              1 like
              Last Post jgualdronc  
              Started by Option Whisperer, Today, 09:55 AM
              0 responses
              5 views
              0 likes
              Last Post Option Whisperer  
              Started by halgo_boulder, 04-20-2024, 08:44 AM
              2 responses
              22 views
              0 likes
              Last Post halgo_boulder  
              Started by mishhh, 05-25-2010, 08:54 AM
              19 responses
              6,189 views
              0 likes
              Last Post rene69851  
              Working...
              X