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 terofs, Yesterday, 04:18 PM
        1 response
        21 views
        0 likes
        Last Post terofs
        by terofs
         
        Started by CommonWhale, Today, 09:55 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by Gerik, Today, 09:40 AM
        2 responses
        7 views
        0 likes
        Last Post Gerik
        by Gerik
         
        Started by RookieTrader, Today, 09:37 AM
        2 responses
        13 views
        0 likes
        Last Post RookieTrader  
        Started by alifarahani, Today, 09:40 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X