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 Mindset, 04-21-2026, 06:46 AM
            0 responses
            91 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            137 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            68 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by cmoran13, 04-16-2026, 01:02 PM
            0 responses
            121 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            72 views
            0 likes
            Last Post PaulMohn  
            Working...
            X