Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Programmatic access to symbology display style

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

    Programmatic access to symbology display style

    Is there a NinjaScript programmatic access to what the symbology display style is that is selected, and to convert between the formats?

    For instance, we could write a function to convert ES JUN23 to ES 06-23 and back again but should we each be writing that? Is there one in the API now already?
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    #2
    Reflection shows there is a UserSymbologySetting but we do not have access to it. Is there another way besides deduction or are there any inbuilt functions to help with these conversions?
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      Hello QuantKey_Bruce,

      Thank you for your note.

      At this time, programmatic access to the symbology style that is selected is not documented. I have submitted this as a feature request to the development team for future consideration. I will follow up once I have a tracking number for the request.

      Thank you for your patience.

      Comment


        #4
        Thank you NinjaTrader_Emily - but is there an undocumented or unsupported approach? I realize I could code this no problem, but I want to use common resources if possible and I am sure I am not alone in this need.
        Bruce DeVault
        QuantKey Trading Vendor Services
        NinjaTrader Ecosystem Vendor - QuantKey

        Comment


          #5
          Hello QuantKey_Bruce,

          Thank you for your reply.

          We are not able to provide information that we don't have access to. Undocumented access to platform features is not something that our support team can comment on, as it goes beyond the scope of our support. Feel free to experiment on your own using the NinjaScript Editor or Visual Studio for your own purposes, though as this is not a documented item you would have to explore at your own risk and results may vary. As common resources on this topic do not exist yet, the feature request is to request support documentation that could be used to support this in the future, if implemented.

          Thank you for your patience and understanding.

          Comment


            #6
            Hello QuantKey_Bruce,


            Thanks for your patience.

            The internal tracking number for your feature request is SFT-5482. Please reference this internal tracking number when contacting Platform Support if you ever have questions regarding this feature request.

            When a feature request is implemented, you'll find a description of the new feature in the release notes:​Thank you for using NinjaTrader.

            Comment


              #7
              NinjaTrader_Emily Can you please clarify how NinjaTrader disambiguates the exchange symbology display style e.g. ES M8? What is the exact rule to know if that means ES 06-18 or ES 06-28?
              Bruce DeVault
              QuantKey Trading Vendor Services
              NinjaTrader Ecosystem Vendor - QuantKey

              Comment


                #8
                Hello Bruce,

                Thank you for your reply.

                At this time, I do not know the answer to that question. The goal of the feature request would be to clarify and add documentation explaining how the symbology works as well as how to access and use it programmatically.

                Thank you for your patience.

                Comment


                  #9
                  Well then let me rephrase my question please with an example. Suppose my symbology display style is "exchange". I see that ESM2 (June 2022) is a valid contract for ES by looking at the rollover dates for ES in the instrument definition. But, when I try to open a chart of ESM2, it says that is an invalid symbol, leading me to believe that since "2" as the last digit of the year is < "3" where we are now in 2023, you have interpreted this as ES June 2032 rather than ES June 2022. How would one open a chart of June 2022's symbol in NinjaTrader Desktop then, if ESM2 is interpreted as June 2032 (despite that rollover being shown as ESM2 in the rollover list)?
                  Bruce DeVault
                  QuantKey Trading Vendor Services
                  NinjaTrader Ecosystem Vendor - QuantKey

                  Comment


                    #10
                    Hello Bruce,

                    Thank you for the example.

                    I do not know if the platform is reading ESM2 as ES 06-23 or if it is interpreting it as 06-22. I have submitted a report to the development team so they may investigate and clarify this behavior. I will follow up with you here once I have more information to relay regarding the report. In the meantime, as a workaround, you should be able to open a June 2022 ES chart using either the Month Abbreviation or the Numeric symbology display; I have tested them both on my end successfully. Here are some screenshots to demonstrate:
                    Thank you for your patience.

                    Comment


                      #11
                      I vote for SFT-5482. I would like to have access to Instrument Symbology that user selected.

                      Comment


                        #12
                        Originally posted by Rudmax View Post
                        I vote for SFT-5482. I would like to have access to Instrument Symbology that user selected.
                        Thank you for your note.

                        Your vote has been added to SFT-5482.

                        Thank you for using NinjaTrader.

                        Comment


                          #13
                          +1 also, please.

                          Thanks.
                          Multi-Dimensional Managed Trading
                          jeronymite
                          NinjaTrader Ecosystem Vendor - Mizpah Software

                          Comment


                            #14
                            Originally posted by jeronymite View Post
                            +1 also, please.

                            Thanks.
                            Thank you for your input; your vote has been added.

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by argusthome, 03-08-2026, 10:06 AM
                            0 responses
                            86 views
                            0 likes
                            Last Post argusthome  
                            Started by NabilKhattabi, 03-06-2026, 11:18 AM
                            0 responses
                            48 views
                            0 likes
                            Last Post NabilKhattabi  
                            Started by Deep42, 03-06-2026, 12:28 AM
                            0 responses
                            29 views
                            0 likes
                            Last Post Deep42
                            by Deep42
                             
                            Started by TheRealMorford, 03-05-2026, 06:15 PM
                            0 responses
                            32 views
                            0 likes
                            Last Post TheRealMorford  
                            Started by Mindset, 02-28-2026, 06:16 AM
                            0 responses
                            67 views
                            0 likes
                            Last Post Mindset
                            by Mindset
                             
                            Working...
                            X