Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

.Account.Mode==Mode.Simulation

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

    .Account.Mode==Mode.Simulation

    NT7 and NT8 have an enum defined called Mode.
    In NT7 the Account object ( exposed in StrategyBase via the Account property ) exposed a mode property of type enum Mode that could be used to assess if an account is a simulation account.... or not.
    This property of the Account object is missing in NT8. In NT8 how does one determine if an account is simulation or not?

    #2
    To know if its sim please change to the following logic in NT8. We removed the Account.Mode since it was duplication of the provider system.

    Account.Provider == Provider.Simulator

    Note there is also a provider for Playback. Provider.Playback.
    Last edited by NinjaTrader_Brett; 10-22-2015, 07:27 AM.

    Comment


      #3
      .Account.Mode==Mode.Simulation

      Provider.xxx does not seem to have been updated to align with the various providers currently supported by NT. For example, these providers are referenced by what appears to be a somewhat informal provider index, not by name:
      • Provider1 [PFG]
      • Provider2 [Barchart.com]
      • Provider3 [Google]
      • Provider4 [Vision Financial Markets]
      • Provider5 [FXCM (Rithmic)]
      • Provider6 [GFT]
      • Provider7 [Kinetick]
      • Provider8 [CQG]
      • Provider10 [FXCM]
      • Provider11 [BigTick]
      • Provider12 [Continuum]
      • Provider13 [Clear Corretora]
      • Provider14 [Rithmic]
      • Provider16 [Quam]
      • Provider18 [NinjaTrader Continuum]
      • Provider19 [Rithmic for NinjaTrader Brokerage]
      • Provider21 [NinjaTrader FXCM]

      So, for example, querying Account.Provider and trying to determine the actual provider when the provider is Kinetick would result in Provider.Provider7, not Provider.Kinetic which intuitively one would expect.

      Can this structure be updated to align with all current providers and return meaningful results accordingly, please?

      Thanks.
      Multi-Dimensional Managed Trading
      jeronymite
      NinjaTrader Ecosystem Vendor - Mizpah Software

      Comment


        #4
        We had to maintain support for our NT7 license system for NT8. As such we had to keep the same approach here with providers as NT7 vs NT8. I do not expect any change here in the near term since changing those has implications outside just code clarit. (Which we are always working towards and made great improvement there with NT8 coding standards)

        Comment


          #5
          .Account.Mode==Mode.Simulation

          Thanks, Brett.

          Presumably, the licensing system will be upgraded in time too to eliminate these types of dependencies?

          In any case, surely it would be possible to introduce a structure that parallels the Provider enum structure and that provides the real provider identity?

          Thanks.
          Multi-Dimensional Managed Trading
          jeronymite
          NinjaTrader Ecosystem Vendor - Mizpah Software

          Comment


            #6
            No we will maintain the system as is for NinjaTrader 8. As to the idea of adding another structure to 'map' I will add this to the suggestion list.SFT-839

            Comment


              #7
              As I created the SFT development made me aware that you can get this info as well via connection options. Use Account.Connection.Options.BrandName.

              Would actually recommend you do that and it would satisfy your need.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by geddyisodin, Today, 05:20 AM
              2 responses
              16 views
              0 likes
              Last Post geddyisodin  
              Started by hazylizard, Today, 08:38 AM
              0 responses
              6 views
              0 likes
              Last Post hazylizard  
              Started by Max238, Today, 01:28 AM
              5 responses
              42 views
              0 likes
              Last Post Max238
              by Max238
               
              Started by giulyko00, Yesterday, 12:03 PM
              3 responses
              13 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Started by habeebft, Today, 07:27 AM
              1 response
              16 views
              0 likes
              Last Post NinjaTrader_ChristopherS  
              Working...
              X