• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 FMtrader, 03-15-2019, 02:30 AM
        6 responses
        31 views
        0 likes
        Last Post James108  
        Started by timko, Today, 08:18 AM
        0 responses
        1 view
        0 likes
        Last Post timko
        by timko
         
        Started by victorsmith, Today, 06:00 AM
        0 responses
        4 views
        0 likes
        Last Post victorsmith  
        Started by sohailashraf, Yesterday, 10:18 PM
        0 responses
        6 views
        0 likes
        Last Post sohailashraf  
        Started by jjnc2006, Yesterday, 07:36 PM
        0 responses
        16 views
        0 likes
        Last Post jjnc2006  
        Working...
        X