Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT8 Margin Calculation

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

    NT8 Margin Calculation

    Hello-

    In NT7 I would calculate margin used as follows (assume these other variables are all correctly declared elsewhere):

    Code:
    availableCapital = StrategyCapital - (Positions[BarsInProgress].Quantity * Instrument.MasterInstrument.Margin);
    How do I find the instrument's initial margin when scripting? I can't seem find it anywhere (i.e. within MasterInstrument). I also can't seem to find where I'd even enter it in the Instrument editor.


    Thanks!
    Last edited by cgeorgan; 10-16-2016, 10:52 AM. Reason: Totally different need - where is instrument margin located?

    #2
    Bump

    Originally posted by cgeorgan View Post
    Hello-

    In NT7 I would calculate margin used as follows (assume these other variables are all correctly declared elsewhere):

    Code:
    availableCapital = StrategyCapital - (Positions[BarsInProgress].Quantity * Instrument.MasterInstrument.Margin);
    How do I find the instrument's initial margin when scripting? I can't seem find it anywhere (i.e. within MasterInstrument). I also can't seem to find where I'd even enter it in the Instrument editor.


    Thanks!
    Still looking for a response here. I get the feeling that you can't access individual margin values yet. I've taken to hard-coding them for now.

    Comment


      #3
      I apologize for the delay, cgeorgan.

      I have submitted a feature request to the product management team for the following feature :


      This customer would like to be able to access per-instrument margins programmatically

      I will follow up with more information as soon as it's available. If the feature requests already exists, a vote will be added to it.


      Please let us know if there are any other ways we can help.
      Jessica P.NinjaTrader Customer Service

      Comment


        #4
        Hello cgeorgan,

        This feature is being reviewed by the product management team and has been assigned the following unique tracking ID


        SFT-1645


        Please let us know if there is any other way we can help.
        Jessica P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        81 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        46 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        169 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        101 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        175 views
        2 likes
        Last Post CaptainJack  
        Working...
        X