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

Historical quotes and empty Daily bars. Is it normal?

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

    Historical quotes and empty Daily bars. Is it normal?

    Hello

    For testing my strategy with Historical quotes I`m downloaded quotes from IQFeed (minutes) like in picture below

    Click image for larger version

Name:	cd6b9ef652.png
Views:	148
Size:	15.1 KB
ID:	1060909

    After this I can see chart with minutes TimeFrame
    Click image for larger version

Name:	aec4cbcf4b.png
Views:	138
Size:	20.9 KB
ID:	1060910

    But I don`t see Daily bars. Why they don`t created automatically from minute quotes? Do I need download Daily quotes too?
    Click image for larger version

Name:	522f34b8ed.png
Views:	219
Size:	10.9 KB
ID:	1060911

    Quotes are downloaded
    Click image for larger version

Name:	66e6ec2e42.png
Views:	129
Size:	67.8 KB
ID:	1060912

    Regards,
    Sergey
    Attached Files

    #2
    Hello sergey_z,

    Thanks for your post.

    Yes, that is normal. It would be expected that if you only download minute bars that you would not be able to display daily bars.

    NinjaTrader works with three data types, tick, Minute and Daily. All other bars are based up these types. For example, 30-second bars would require tick data, 15-minute bars require minute data, weekly bars require daily bars.

    You can create a pseudo daily bar based on minute bars by creating a 1440 minute bar (24 hours times 60 minutes = 1440 minutes/day), however, this bar would not reflect the settlement price (assuming you are using futures data).

    For reference on bar building, please review the section, "Understanding the underlying base data type required for constructing various chart bars" here: https://ninjatrader.com/support/help..._are_built.htm
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      ok, and if in Strategy I use Daily price like Open/Close I have to download and Daily quotes too? It will better that create pseudo Daily Bars?

      Comment


        #4
        Hello sergey_z,

        Thanks for your reply.

        It depends on what you need to do and what values are required. Here are the facts of each choice:

        Using daily bars from daily data. If using futures data, the daily bars would be fixed to use ETH hours and are not changeable. Depending on the data feed, the settlement price is used as the daily bars close price. This will mean that indicators, such as pivots, would be created based on the settlement price instead of the close price. Using daily bars for daily bars and higher time frames would require less data processing because each bar would only be 6 data points (high, low, close, open, volume and timestamp) whereas using minute bars to make daily bars would require more processing based on 1440 x 6 data points per daily bar.

        Using minute bars to make up daily bars allows you to select any trading hours you wish to apply and the bars will adjust as specified. The daily bar made with minutes will use the last price of the session of the applied trading hours as the close price of the bar.

        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by andrewtrades, Today, 04:57 PM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        3 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        436 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        6 views
        0 likes
        Last Post FAQtrader  
        Started by rocketman7, Today, 09:41 AM
        5 responses
        19 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X