• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Access Maintenance margin

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

    Access Maintenance margin

    Can I access the Maintenance margin for a specific instrument from the Risk Window >Templates (NinjaTrader Brokerage Default) via NinjaSript?


    Thanks

    #2
    Hello starcd,

    Thanks for your question.

    This isn't documented/supported code, but you could try the below:

    Code:
    Print(Risk.Get("NinjaTrader Brokerage Default").ByMasterInstrument[Instrument.MasterInstrument].MaintenanceMargin);
    We look forward to assisting.
    JimNinjaTrader Customer Service

    Comment


      #3
      Super cool! Thanks Jim!
      Do you know if the template is updated daily?

      Thanks Frank


      Comment


        #4
        Hello Frank,

        The templates on our information server will be updated as changes are made at NinjaTrader Brokerage. This would be requested from our information server daily.

        Let us know if there is anything else we can do to help.
        JimNinjaTrader Customer Service

        Comment


          #5
          it cannot be better...

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by WHICKED, Today, 01:01 PM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_Kate  
          Started by polo0202, Today, 12:15 PM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_BrendanC  
          Started by GARZONJ, Today, 11:27 AM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by NtFan, Today, 11:08 AM
          1 response
          11 views
          0 likes
          Last Post NinjaTrader_Kate  
          Started by anamaria0589, Today, 09:39 AM
          1 response
          14 views
          0 likes
          Last Post NinjaTrader_Jermaine  
          Working...
          X