Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Default Account

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

    Strategy Default Account

    Is there a way to change the default account that a strategy generates with? I've noticed that it always generates with Sim101 as the default and I need to change it every time.

    If not is there a way for me to tell the strategy to make trades specifically under a different account?

    #2
    Did you try saving a template?

    Never mind, I just tested this in NT8 -- it doesn't seem to save the account in the template.

    Actually, I would suspect that's probably a good thing.
    Last edited by bltdavid; 08-15-2020, 06:16 PM.

    Comment


      #3
      Hello magnatauren,

      By design the account defaults to the Sim101 (which can prevent accidentally selecting a live or incorrect account).

      I will submit a feature request for the Account to be saved with Strategy templates.
      Once I have a tracking ID for this request I will post in this thread for future reference.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Thanks very much.

        Comment


          #5
          Hello magnatauren,

          This request is being tracked with ID# SFT-2978.

          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 in the Release Notes page of the Help Guide.

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

          Comment


            #6
            In case anyone is still trying to figure this out (I found this in the same quest). I came up with a solution:

            Drop this code into the StateDefaults of the strategy

            Code:
            foreach (var acc in NinjaTrader.Cbi.Account.All)
                if (acc.Name == "YOUR ACCOUNT HERE")
                    this.Account                         = acc;​

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            47 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            23 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            33 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            50 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            42 views
            0 likes
            Last Post CarlTrading  
            Working...
            X