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 Hwop38, 05-04-2026, 07:02 PM
            0 responses
            174 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            329 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            252 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            356 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            182 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X