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 pibrew, Today, 06:37 AM
            0 responses
            4 views
            0 likes
            Last Post pibrew
            by pibrew
             
            Started by rbeckmann05, Yesterday, 06:48 PM
            1 response
            14 views
            0 likes
            Last Post bltdavid  
            Started by llanqui, Today, 03:53 AM
            0 responses
            6 views
            0 likes
            Last Post llanqui
            by llanqui
             
            Started by burtoninlondon, Today, 12:38 AM
            0 responses
            11 views
            0 likes
            Last Post burtoninlondon  
            Started by AaronKoRn, Yesterday, 09:49 PM
            0 responses
            16 views
            0 likes
            Last Post AaronKoRn  
            Working...
            X