Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Resetting Playback / Sim account from Ninjascript

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

    Resetting Playback / Sim account from Ninjascript

    Hello, is it possible resetting playback / Sim account from Ninjascript? I could not find anything related to it in the documentation.
    if so exist any method for this can be it be used from Indicador and/or Addons?

    Regards

    #2
    This would require direct access to the SQLite database and would be unsupported but possible.
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      alejandro888 You could try this: MyAccount.ResetSimulationAccount(IsClearTradeData) ; where MyAccount is the Simulation Account you want to reset, and IsClearTradeData is a bool that indicates if you also want to clear existing trade data in the Account or not.

      As QuantKey_Bruce says, "unsupported"!

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

      Comment


        #4
        Originally posted by jeronymite View Post
        alejandro888 You could try this: MyAccount.ResetSimulationAccount(IsClearTradeData) ; where MyAccount is the Simulation Account you want to reset, and IsClearTradeData is a bool that indicates if you also want to clear existing trade data in the Account or not.

        As QuantKey_Bruce says, "unsupported"!

        Thanks.
        Interesting - I didn't notice that method. Perhaps my suggestion was going the long way around the barn.
        Bruce DeVault
        QuantKey Trading Vendor Services
        NinjaTrader Ecosystem Vendor - QuantKey

        Comment


          #5
          Exploring the barn can be interesting in itself. But in this case, it is only for Sim accounts; whereas the barn is much bigger and has lots of other goodies.

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

          Comment


            #6
            Hi @QuantKey_Bruce @jeronymite,​ thank you guys, for your help with that method. No doubt it was a simpler path than going through all the SQLlite, now I can save many clicks from restarting the demo account when testing new stuff

            Cheers!!
            Alejandro

            Comment


              #7
              Hello alejandro888,

              Thanks for your post.

              As stated by QuantKey_Bruce, there are no supported methods or functions available that would allow you to reset the Playback or Sim101 account through code.

              You may try using the unsupported code shared by jeronymite at your own discretion to accomplish this.
              Brandon H.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by lightsun47, Today, 03:51 PM
              0 responses
              5 views
              0 likes
              Last Post lightsun47  
              Started by 00nevest, Today, 02:27 PM
              1 response
              10 views
              0 likes
              Last Post 00nevest  
              Started by futtrader, 04-21-2024, 01:50 AM
              4 responses
              46 views
              0 likes
              Last Post futtrader  
              Started by Option Whisperer, Today, 09:55 AM
              1 response
              14 views
              0 likes
              Last Post bltdavid  
              Started by port119, Today, 02:43 PM
              0 responses
              10 views
              0 likes
              Last Post port119
              by port119
               
              Working...
              X