Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Possible to get Rithmic Account Properties?

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

    Possible to get Rithmic Account Properties?

    I'm trying to figure out if it's possible to get additional properties from Rithmic for an account, such as "AutoLiquidateThresholdCurrentValue". I'm trying to build an indicator that helps me keep track of my drawdown better.

    Thanks!

    #2
    Hello owensd,

    Welcome to the forums!

    I am not aware of a documented or supported way to get this particular property from an account.

    The Account class can be used to subscribe to account related events as well as accessing account related information. The Help Guide pages below go over what kind of events and account related information you can access via NinjaScript:





    Please let us know if we can assist further.
    Gaby V.NinjaTrader Customer Service

    Comment


      #3
      Thanks, I've looked at that and printed out the values of all of the AccountItems associated with the Rithmic account, but most of them are 0. It seems y'all don't actually fill in most of the data for the Rithmic accounts.

      Comment


        #4
        For instance:

        Code:
                    foreach (AccountItem item in Enum.GetValues(typeof(AccountItem))) {
                        Print(string.Format("{0} = {1}", Enum.GetName(typeof(AccountItem), item), _selectedAccount.GetAccountItem(item, Currency.UsDollar).Value));
                    }​
        The output is the following:

        Code:
        GrossRealizedProfitLoss = 55
        InitialMargin = 0
        IntradayMargin = 0
        LongOptionValue = 0
        LookAheadMaintenanceMargin = 0
        LongStockValue = 0
        MaintenanceMargin = 0
        NetLiquidation = 50033.58
        NetLiquidationByCurrency = 0
        PositionMargin = 0
        RealizedProfitLoss = 33.58
        ShortOptionValue = 0
        ShortStockValue = 0
        SodCashValue = 0
        SodLiquidatingValue = 0
        UnrealizedProfitLoss = 0
        TotalCashBalance = 0
        DailyLossLimit = 0
        WeeklyProfitLoss = 0
        WeeklyLossLimit = 0
        DailyProfitTrigger = 0
        WeeklyProfitTrigger = 0
        TrailingMaxDrawdown = 0
        BuyingPower = 0
        CashValue = 50055
        Commission = 21.42
        ExcessIntradayMargin = 0
        ExcessInitialMargin = 0
        ExcessMaintenanceMargin = 0
        ExcessPositionMargin = 0​
        And the Commission field (and hence the RealizedProfitLoss) is coming from my own commission settings for the account within the account configuration.

        That's basically none of the data returned.

        Comment


          #5
          Hello,

          Some brokers do not offer all account values. Please see the chart in this section of our help guide for which providers offer which account values:



          Please also note that there are some values that are only available real time as well, such as CashValue.

          If your broker does not offer an account value, you could manually set your own internal variables if you want to track and make calculations on this.

          Please let us know if you have any further questions.
          Gaby V.NinjaTrader Customer Service

          Comment


            #6
            OK - so there is no way to access the additional properties that Rithmic provides on an account.

            So then I guess this is a feature request to provide access to the many of fields that Rithmic connections have.

            Setting the values isn't really an option as they change live. The indicator I'm working on tracks your trailing drawdown, so I need Rithmics' AutoLiquidateThresholdCurrentValue as it's updated.

            For funded accounts above the limit, then sure, those can be set to the limit.

            Thanks.

            Comment


              #7
              Hello owensd,

              Thank you for your response.

              Apologies for the inconvenience. Unfortunately whether or not the data is transmitted to NT depends on if your broker is providing the data, as mentioned in the HG:

              "The account values that are displayed depend upon your connectivity provider. Some connectivity providers transmit partial account data, while others do not transmit anything."

              NinjaTrader does not dictate if your broker transmits this data to the platform. It is based on whether or not the broker provides this data to NT.
              Gaby V.NinjaTrader Customer Service

              Comment


                #8
                Rithmic transmits the data, other platforms, such as Quantower, can get this data from Rithmic. This is a limitation in how NinjaTrader is handling and surfacing the data that is available via Rithmic connections.

                Comment


                  #9
                  Hello,

                  I got permission from my team lead to submit a feature request for this. Once the team has provided a tracking number for this request I will update this thread.

                  Thank you for your suggestion.
                  Gaby V.NinjaTrader Customer Service

                  Comment


                    #10
                    Hello,

                    This request is being tracked under the number SFT-6273.

                    As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted on the Release Notes page of the Help Guide.

                    Release Notes —https://ninjatrader.com/support/help...ease_notes.htm
                    Gaby V.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by EvaisDery, Today, 05:44 AM
                    0 responses
                    5 views
                    0 likes
                    Last Post EvaisDery  
                    Started by JerryWar, 11-19-2016, 08:14 AM
                    3 responses
                    2,070 views
                    0 likes
                    Last Post tradertom2012  
                    Started by capt34, Today, 03:46 AM
                    0 responses
                    8 views
                    0 likes
                    Last Post capt34
                    by capt34
                     
                    Started by wuannetraam, Today, 12:22 AM
                    1 response
                    11 views
                    0 likes
                    Last Post wuannetraam  
                    Started by TGOG1, Yesterday, 03:02 PM
                    2 responses
                    27 views
                    0 likes
                    Last Post TGOG1
                    by TGOG1
                     
                    Working...
                    X