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

Get Global Merge Policy

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

    Get Global Merge Policy

    Hello,

    how can I get the current global merge policy setting by code?

    Thanks.
    Regards,

    #2
    Hello Giorgetto,

    Thank you for your post.

    You can use Bars.Instrument.MasterInstrument.MergePolicy. Please see the Help Guide page below demonstrating:

    https://ninjatrader.com/support/help...ergepolicy.htm

    If you have any other questions, please let me know.
    Gaby V.NinjaTrader Customer Service

    Comment


      #3
      Hello,

      this is for the instrument, but I need the global setting.
      The value in: Tools -> Options -> Market Data

      Thanks,

      Comment


        #4
        Hello,

        If you visit the Help Guide page I linked, you will see that you can get this value using MergePolicy.UseGlobalSettings.

        Please let me know if you have any other questions.
        Gaby V.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Gaby View Post
          Hello,

          If you visit the Help Guide page I linked, you will see that you can get this value using MergePolicy.UseGlobalSettings.

          Please let me know if you have any other questions.
          MergePolicy.UseGlobalSettings is a const for the MergePolicy enum, it doesn't contain the global value.
          Have you test it?

          Comment


            #6
            Hello,

            Apologies for the misunderstanding.

            Unfortunately, there is no supported or documented NinjaScript methods or properties to get the Tools > Options > Market Data > Merge Policy.

            This forum thread will be open for other community members to share their insights on unsupported code to accomplish this.
            Gaby V.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by johacnshri, Today, 05:53 AM
            0 responses
            1 view
            0 likes
            Last Post johacnshri  
            Started by ETFVoyageur, Today, 05:50 AM
            0 responses
            4 views
            0 likes
            Last Post ETFVoyageur  
            Started by DawnTreader, 05-08-2024, 05:58 PM
            17 responses
            63 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by ttrader23, 05-08-2024, 09:04 AM
            10 responses
            48 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by agclub, 04-21-2024, 08:57 PM
            6 responses
            41 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Working...
            X