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 futtrader, 04-21-2024, 01:50 AM
        4 responses
        41 views
        0 likes
        Last Post futtrader  
        Started by Option Whisperer, Today, 09:55 AM
        1 response
        12 views
        0 likes
        Last Post bltdavid  
        Started by port119, Today, 02:43 PM
        0 responses
        8 views
        0 likes
        Last Post port119
        by port119
         
        Started by Philippe56140, Today, 02:35 PM
        0 responses
        7 views
        0 likes
        Last Post Philippe56140  
        Started by 00nevest, Today, 02:27 PM
        0 responses
        7 views
        0 likes
        Last Post 00nevest  
        Working...
        X