Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategies not kept in workspace

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

    Strategies not kept in workspace

    BETA3: Another error I get when I reload the Strategies at startup that don't seem to be kept in the Strategy Tab after saving workspace.

    2015-07-15 17:53:27:609 ERROR: Strategy 'GHPIBStrategy01': Error on calling 'OnStateChange' method: An item with the same key has already been added.
    2015-07-15 17:53:27:904 ERROR: Strategy 'GHPIBStrategy01': Error on calling 'OnStateChange' method: An item with the same key has already been added.
    2015-07-15 17:53:28:630 ERROR: Strategy 'GHPIBStrategy01': Error on calling 'OnStateChange' method: An item with the same key has already been added.
    2015-07-15 17:53:29:494 ERROR: Strategy 'GHPIBStrategy01': Error on calling 'OnStateChange' method: An item with the same key has already been added.
    2015-07-15 17:53:30:662 ERROR: Strategy 'GHPIBStrategy01': Error on calling 'OnStateChange' method: An item with the same key has already been added.
    2015-07-15 17:53:31:668 ERROR: Strategy 'GHPIBStrategy01': Error on calling 'OnStateChange' method: An item with the same key has already been added.
    2015-07-15 17:53:32:988 ERROR: Strategy 'GHPIBStrategy01': Error on calling 'OnStateChange' method: An item with the same key has already been added.
    2015-07-15 17:54:15:687 ERROR: Strategy 'GHPIBStrategyCP01': Error on calling 'OnStateChange' method: An item with the same key has already been added.
    2015-07-15 17:54:16:029 ERROR: Strategy 'GHPIBStrategyCP01': Error on calling 'OnStateChange' method: An item with the same key has already been added.
    2015-07-15 17:54:16:615 ERROR: Strategy 'GHPIBStrategyCP01': Error on calling 'OnStateChange' method: An item with the same key has already been added.
    2015-07-15 17:54:17:282 ERROR: Strategy 'GHPIBStrategyCP01': Error on calling 'OnStateChange' method: An item with the same key has already been added.
    2015-07-15 17:54:18:004 ERROR: Strategy 'GHPIBStrategyCP01': Error on calling 'OnStateChange' method: An item with the same key has already been added.
    2015-07-15 17:54:19:249 ERROR: Strategy 'GHPIBStrategyCP01': Error on calling 'OnStateChange' method: An item with the same key has already been added.
    2015-07-15 17:54:20:088 ERROR: Strategy 'GHPIBStrategyCP01': Error on calling 'OnStateChange' method: An item with the same key has already been added.

    #2
    Hello NJA_MC,

    Thank you for your post.

    What are the exact steps to re-create these errors?

    Are you stating on restart of NinjaTrader 8, that the strategies are removed from the Strategies tab and these messages appear? If so, please provide the steps you take that create these messages and behavior.

    Comment


      #3
      This is the sequence of events (The strategy added below is a custom strategy):

      1) Start NT8 to a clean environment
      2) Add a strategy to the "Strategies" tab from but "Select All" as the instrument on a portfolio of 14 different futures
      3) Add a 2nd strategy the same way with the 14 instruments "Select All"
      4) Highlight and right click to enable all 28 strategies
      5) Strategies started okay
      6) Exit NT8, saving workspace
      7) Reload NT8
      8) Strategies are missing from the Strategies" tab
      9) Repeat steps 2 & 3 above, as strategies are added, errors appear in the LOG tab

      Let me know if that helps or not, I will try to simplify with samples to reproduce if needed. Also note, I do have a singleton in the background that monitors the "StrategyBase.Strategies" group to read off PnL, etc.

      Comment


        #4
        Hello NJA_MC,

        Thank you for your response.

        I could not recreate with a custom strategy or the pre-loaded strategies. Can you attach your strategy and your log and trace files to an e-mail to platformsupport[at]ninjatrader[dot]com with this thread referenced?
        • "http://ninjatrader.com/support/forum/showthread.php?t=76249"

        Comment


          #5
          The strategies have been loading in the "Strategies" tab today. Don't know if it is some BETA2 cobwebs. Let me see if I can get it to do it again and try to isolate the problem. I have a lot of code that is interdependent and would be tough for you to setup (config files external , etc).

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by bortz, 11-06-2023, 08:04 AM
          47 responses
          1,609 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          9 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          19 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          6 views
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          16 views
          0 likes
          Last Post Javierw.ok  
          Working...
          X