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

specific time bar comparison

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

    specific time bar comparison

    Hi

    Is it possible to compared a bar with a bar X days, month or year ago? For example if I have a 1 hour chart and I want to see the high-low and volume between 09:00-10:00 today compared to the high-low and volume at 09:00-10:00 yesterday or a week ago or the last 5 days. Can this be done and if so how?

    Thanks
    The_Wiz

    #2
    Hello The_Wiz,

    Thanks for your post.

    The method Bars.GetBar() provides the ability to get the bars ago value that has been specified by time. You can then use the bars ago value to retrieve the data of interest. Please see the helpguide link which contains an example of use: http://ninjatrader.com/support/helpG...us/?getbar.htm
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by mmenigma, Today, 02:22 PM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by frankthearm, Today, 09:08 AM
    9 responses
    35 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by NRITV, Today, 01:15 PM
    2 responses
    9 views
    0 likes
    Last Post NRITV
    by NRITV
     
    Started by maybeimnotrader, Yesterday, 05:46 PM
    5 responses
    27 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by quantismo, Yesterday, 05:13 PM
    2 responses
    21 views
    0 likes
    Last Post quantismo  
    Working...
    X