Announcement

Collapse
No announcement yet.

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 CarlTrading, 03-31-2026, 09:41 PM
            1 response
            133 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            75 views
            1 like
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            117 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            113 views
            1 like
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            90 views
            0 likes
            Last Post CarlTrading  
            Working...
            X