Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

1-minute data is correct, but aggregation to higher seems off

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

    1-minute data is correct, but aggregation to higher seems off

    I have imported some stock data on the 1 minute interval manually through csv. I know this data is correct and timestamps on the intervals are also correct. I have double checked my data with various data providers like barchart, td ameritrade etc.

    When I look at the 1-min interval on the chart, the chart looks fine and exactly the same as my broker charts.

    But when I aggregate the chart to a higher timeframe, for example, 3-min, the chart is not displaying correctly. Most of the bars' high/low/close/open are really off compared to the underlying data. I'm not really sure how this is happening. When I reload the data from my dataprovider, the data is refreshed and the chart shows correctly.

    I have imported the same csv import file into Amibroker, just to make sure my data is correct. But in Amibroker the aggregation to higher timeframes are displayed correctly (see last chart). So it's really a Ninjatrader issue.

    This is very strange because my initially imported 1-min data is correct. As mentioned, I have double/triple checked my raw data (in csv) with various data sources bar-by-bar.

    How is it possible that manual imported data from a csv experiences problems with higher aggregations?

    I would love some assistance on this.

    Kind regards,

    Glen

    Some charts:

    INDO 28-Jan-2022

    TDA 1-MIN
    Click image for larger version  Name:	INDO-1m-TDA.PNG Views:	0 Size:	33.7 KB ID:	1193659

    TDA 3-MIN
    Click image for larger version  Name:	INDO-3m-TDA.PNG Views:	0 Size:	33.3 KB ID:	1193660
    Ninjatrader 1-MIN
    Click image for larger version  Name:	INDO-1m-NINJA.PNG Views:	0 Size:	636.3 KB ID:	1193662

    Ninjatrader 3-MIN
    Click image for larger version  Name:	INDO-3m-NINJA.PNG Views:	0 Size:	648.4 KB ID:	1193661

    Amibroker 3-MIN:
    Click image for larger version

Name:	INDO-3m-Amibroker.PNG
Views:	177
Size:	407.4 KB
ID:	1193663
    Last edited by siroki; 03-14-2022, 01:08 AM.

    #2
    UPDATE: I think I know what is wrong.. it seems the bars of my dataset are off by one minute

    Comment


      #3
      SOLVED: I'm not entirely sure how Ninjatrader works but I solved the issue.

      First I offset the underlying data in the csv by 1-minute forward. Then when importing I selected the Ninjatrader (beginning of bar timestamps) option. Now everything seems fine.

      Perhaps someone can explain me how this works? It seems odds that I need to adjust the underlying data by offsetting it by 1-minute forward.

      Comment


        #4
        Hello,

        NinjaTrader stamps a bar with the closing time of the bar. For example, a minute bar with a time of 9:31:00 AM has data from 9:30:00 AM through 9:30:59 AM. Using end of bar time stamps is required in order to be able to plot multiple series of differing time frames within a single chart all accurately synchronized to time.

        Ryan S.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ZenCortexCLICK, Today, 04:58 AM
        0 responses
        2 views
        0 likes
        Last Post ZenCortexCLICK  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        172 responses
        2,280 views
        0 likes
        Last Post sidlercom80  
        Started by Irukandji, Yesterday, 02:53 AM
        2 responses
        17 views
        0 likes
        Last Post Irukandji  
        Started by adeelshahzad, Today, 03:54 AM
        0 responses
        4 views
        0 likes
        Last Post adeelshahzad  
        Started by Barry Milan, Yesterday, 10:35 PM
        3 responses
        13 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X