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 Jonafare, 12-06-2012, 03:48 PM
        5 responses
        3,986 views
        0 likes
        Last Post rene69851  
        Started by Fitspressorest, Today, 01:38 PM
        0 responses
        2 views
        0 likes
        Last Post Fitspressorest  
        Started by Jonker, Today, 01:19 PM
        0 responses
        2 views
        0 likes
        Last Post Jonker
        by Jonker
         
        Started by futtrader, Today, 01:16 PM
        0 responses
        8 views
        0 likes
        Last Post futtrader  
        Started by Segwin, 05-07-2018, 02:15 PM
        14 responses
        1,792 views
        0 likes
        Last Post aligator  
        Working...
        X