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 Cross161, Today, 10:33 PM
          0 responses
          3 views
          0 likes
          Last Post Cross161  
          Started by neilzep, Today, 08:55 PM
          0 responses
          6 views
          0 likes
          Last Post neilzep
          by neilzep
           
          Started by javier.filgueira, Today, 03:29 PM
          3 responses
          10 views
          0 likes
          Last Post javier.filgueira  
          Started by Da vinci, Today, 03:15 PM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_ChrisL  
          Started by Da vinci, Today, 02:51 PM
          1 response
          14 views
          0 likes
          Last Post NinjaTrader_ChrisL  
          Working...
          X