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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        45 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        14 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        20 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        22 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X