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

OHLC Bars

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

    OHLC Bars

    Hello,

    I have some questions related to bar prices.

    1) Are Bars OHLC prices calculated by Ninjatrader using Provider's Ask and Bid Prices, or ther are directly got from Provider? (with provider meaning Broker/Data Feed)
    2) How is "Last" Price Calculated?
    3) Prices drown on Charts correspond to Ask, Bid or other prices?

    Regards
    Pablo

    #2
    Hello,

    1) Are Bars OHLC prices calculated by Ninjatrader using Provider's Ask and Bid Prices, or ther are directly got from Provider? (with provider meaning Broker/Data Feed)
    >>The OHLC is determined differently for different types of bars. Historical minute and larger bar OHLC's are provided by the data feed. However the OHLC's are built on the fly when storing minute and larger bar data in real time. With Tick bars the OHLC's are determined by NT using the user inputs. This link my help:


    2) How is "Last" Price Calculated?
    >>It is not calculated it is fed by the data feed and it is the last price that the instrument was traded at.

    3) Prices drown on Charts correspond to Ask, Bid or other prices?
    >>They are built on the last traded price. Please see the link above.
    DenNinjaTrader Customer Service

    Comment


      #3
      Ben, thanks four you answer. Regarding historical data, the concept is clear. However in real time, I still can't find out how OHLC bars are determined. I understand Ninjatrader calculates (for example) minute bars on the fly by using real time data, but I would like to know the calculation is made. Thanks

      Comment


        #4
        PabloC,

        I am not sure what you mean "calculation". In real-time NinjaTrader just displays whatever information it is given by your data provider. On a 1 minute chart, when it receives a tick with a timestamp outside of that 1 minute, it knows the bar has closed and will solidify the OHLC for that bar and start a new one for the next 1 min.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by WHICKED, Today, 12:56 PM
        2 responses
        14 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Started by Felix Reichert, Today, 02:12 PM
        0 responses
        1 view
        0 likes
        Last Post Felix Reichert  
        Started by Tim-c, Today, 02:10 PM
        0 responses
        1 view
        0 likes
        Last Post Tim-c
        by Tim-c
         
        Started by cre8able, Today, 01:16 PM
        2 responses
        9 views
        0 likes
        Last Post cre8able  
        Started by chbruno, 04-24-2024, 04:10 PM
        3 responses
        49 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X