Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MasterInstrument.Margin and MasterInstrument.Margin2

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

    MasterInstrument.Margin and MasterInstrument.Margin2

    Hi,

    I tried to search for it in the documentation and forum and there is no info.

    1. What is the Margin and Margin2 properties and from where NT takes its values?

    2. Also what is the idea behind MasterInstrument compare to Instrument.
    I understand that this is a class inside a class but what is the design idea behind it?

    Thanks!

    #2
    freewind, those are unfortunately unsupported properties, we support what is documented in our helpguide (margin though is set in the instrument manager).

    The compare method is useful to avoid running into floating point accuracy issues while comparing price values.

    Comment


      #3
      Hi Bertrand,

      In question 2 I wanted to understand the different between Instrument class and MasterInstrument class. The name MasterInstrument is confusing and I don't understand from where it take the data?

      Thanks again for your time.

      Comment


        #4
        I see, the master instrument is the one defined in your instrument manager, for a futures contract this would be for example the 'raw' data needed to define it (point value, exchange, map, roll period etc) - the actual instrument on the chart is then represented by the instrument class, i.e. this would be the futures contract with a specific expiry that you could execute on.

        Comment


          #5
          Thank you for an amazing support!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          566 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          330 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          547 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          548 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X