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 NullPointStrategies, Today, 05:17 AM
            0 responses
            46 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            126 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            66 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            42 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            46 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X