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

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.
    Chris L.NinjaTrader Customer Service

    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 DJ888, Yesterday, 10:57 PM
        0 responses
        6 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        158 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Yesterday, 09:29 PM
        0 responses
        7 views
        0 likes
        Last Post Belfortbucks  
        Started by zstheorist, Yesterday, 07:52 PM
        0 responses
        7 views
        0 likes
        Last Post zstheorist  
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        151 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Working...
        X