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

add bid/ask bar object

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

    add bid/ask bar object

    I am trying to add second a bar object like this

    Add("MSFT", PeriodType.Range, 4, MarketDataType.Bid);

    Is there a way instead of providing "MSFT" to specify something like Instrument.MasterInstrument.Id, and the same for PeriodType and Value.

    I want to use identical to primary instrument settings and only different price type (bid vs close)?

    Thank you.

    #2
    Hi BoyPlunger,

    We support only hard coding each additional series, although some users report success with a string input for the instrument name here. We have also previously received a suggestion for another overload here, something like:
    Add(PeriodType, PeriodValue, MarketDataType);
    I'll be happy to add your vote to this request.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thank you. I vote for it, and another overload Add(MarketDataType);

      Can you please clarify, in case of forex eurusd pair name is "EUR.USD" or "EURUSD" or "$EURUSD" ...

      Comment


        #4
        Thanks for the reply. I will include that overload as well for the feature request.

        For FOREX, it should be "$EURUSD".
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Thank you for your help. Could you please also clarify if for MarketDataType ASK/BID tick and range bars are ceated? In other words there are High, Low, Close available for ASK/BID.

          Comment


            #6
            Yes, it adds OHLC bars built on bid/ask data. You will need a data provider that supplies this information. Range bid/ask series, for example, will need historical bid/ask tick data.

            Details on which data providers offer what level of data is available here in the top section:
            Ryan M.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by kujista, Today, 06:23 AM
            4 responses
            14 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by traderqz, Yesterday, 09:06 AM
            2 responses
            16 views
            0 likes
            Last Post traderqz  
            Started by traderqz, Today, 12:06 AM
            3 responses
            6 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by RideMe, 04-07-2024, 04:54 PM
            5 responses
            28 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by f.saeidi, Today, 08:13 AM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X