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

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 kevinenergy, 02-17-2023, 12:42 PM
          117 responses
          2,765 views
          1 like
          Last Post jculp
          by jculp
           
          Started by Mongo, Today, 11:05 AM
          5 responses
          15 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by SightCareAubetter, Today, 12:55 PM
          0 responses
          3 views
          0 likes
          Last Post SightCareAubetter  
          Started by traderqz, Today, 12:06 AM
          8 responses
          16 views
          0 likes
          Last Post traderqz  
          Started by SightCareAubetter, Today, 12:50 PM
          0 responses
          2 views
          0 likes
          Last Post SightCareAubetter  
          Working...
          X