• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Change Account in NinjaScript

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

    Change Account in NinjaScript

    Is there a way to change the active account of a strategy via NinjaScript?

    Snap

    #2
    Hello Snap,
    Unfortunately there are no supported way to change the account object of the current active strategy.

    You have to assign the Account while initializing the strategy via the strategy parameters dialog.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      That's what I thought when I could no help in Help.

      Is there a quick way to move from a live account to a sim account w/o going into the strategy, disable, change account, enable and OK out?

      Comment


        #4
        Hello snaphook,
        Unfortunately you cannot toggle the Account object between live and sim account.
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          Joy,
          Any possibility of submitting that to development as a request?
          Snap

          Comment


            #6
            Hello Snaphook,
            I will send your feature request to development for future consideration.

            Please let me know if I can assist you any further.
            JoydeepNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by PG7940, Today, 04:26 AM
            0 responses
            2 views
            0 likes
            Last Post PG7940
            by PG7940
             
            Started by marcus2300, Today, 02:25 AM
            0 responses
            2 views
            0 likes
            Last Post marcus2300  
            Started by drpapp, 01-24-2019, 06:57 AM
            5 responses
            69 views
            0 likes
            Last Post pjsmith
            by pjsmith
             
            Started by plydcv, Today, 12:40 AM
            0 responses
            3 views
            0 likes
            Last Post plydcv
            by plydcv
             
            Started by Sh00tHerMcGavin, Yesterday, 07:39 PM
            0 responses
            4 views
            0 likes
            Last Post Sh00tHerMcGavin  
            Working...
            X