Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How can I get calculate excess margin required?

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

    How can I get calculate excess margin required?

    Hello there,

    I believe for MES the contract cost is $50. Which means if I buy or sell 1 contract, the excess margin is reduced by $50.

    I experimented and I could buy prettu much until the excess intraday margin is almost exhausted.

    When this happens, no more orders can be submitted untill the position is flattened/reduced.

    Is this the expected behaviour?

    Also how can I get an instument's cost, e.g. MES is $50?

    Many Thanks, Caesar.

    #2
    Hello, thanks for writing in. There are pre-defined Risk settings set up for the Sim101 account which will prevent a contract from being bought/sold but there is no NinjaScript access to this, unfortunately. When using a live account, the risk settings would be defined on your broker's end and therefore there would be no access to this via NinjaScript.

    Comment


      #3
      Many Thanks, I'll just have to add this as a parameter.

      Comment


        #4
        This may be of interest: https://forum.ninjatrader.com/forum/...tegy?p=1205105 ... but only for Sim accounts. For live accounts, we're out of luck.

        Thanks.
        Multi-Dimensional Managed Trading
        jeronymite
        NinjaTrader Ecosystem Vendor - Mizpah Software

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        153 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        89 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        133 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        127 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        107 views
        0 likes
        Last Post CarlTrading  
        Working...
        X