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 algospoke, Yesterday, 06:40 PM
            2 responses
            23 views
            0 likes
            Last Post algospoke  
            Started by ghoul, Today, 06:02 PM
            3 responses
            14 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by jeronymite, 04-12-2024, 04:26 PM
            3 responses
            45 views
            0 likes
            Last Post jeronymite  
            Started by Barry Milan, Yesterday, 10:35 PM
            7 responses
            21 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by AttiM, 02-14-2024, 05:20 PM
            10 responses
            181 views
            0 likes
            Last Post jeronymite  
            Working...
            X