Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How are strategies saved within the Workspace file?

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

    How are strategies saved within the Workspace file?


    I'd like to understand how strategies are saved within the workspace .xml file.

    I like to do a lot of playback on my strategies, testing different variations. Between the strategy and chart variations, I can have over a thousand different instances loaded up. Unfortunately, NT doesn't seem to contemplate this sort of usage.

    Instead of tediously and time-consuming specifying each individual strategy instance, I'm finding it easer to edit and update the workspace .xml file instead, and specify my variations in there. I pretty much got it, except specifying the strategies. When a specify a particular strategy name and it's unique parameter, I see it's saved in the workspace .xml file something like:

    <Strategies>
    <Strategy0 BarsIndex="0">301812915</Strategy0>
    </Strategies>​

    I'm guessing this is hash key into some index, but where does that index live?

    I understand how hand-editing the workspace .xml file isn't something you directly support. However, no exaggeration, sometimes I can spend over an hour loading up a particular environment for playback testing. Until NT supports loading up strategies in bulk, I really need to develop shortcuts.

    Thanks,





    #2
    Hello timmbbo,

    Thanks for your post.

    The strategy instance information is saved in the database, and the id of the instance is saved in the workspace. So the workspace loads all the strategies saved in it and restores these from the information in the database.

    Manually modifying the workspace.xml files to load specific strategy instances goes beyond the scope of support we are able to provide you with in the Support Department at NinjaTrader.

    This forum thread will be open for other community members to share unsupported code regarding this topic.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Originally posted by NinjaTrader_BrandonH View Post
      Hello timmbbo,

      Thanks for your post.

      The strategy instance information is saved in the database, and the id of the instance is saved in the workspace. So the workspace loads all the strategies saved in it and restores these from the information in the database.

      Manually modifying the workspace.xml files to load specific strategy instances goes beyond the scope of support we are able to provide you with in the Support Department at NinjaTrader.

      This forum thread will be open for other community members to share unsupported code regarding this topic.
      NinjaTrader_BrandonH

      Where is it stored if you don't use a workspace and enter them straight into the strategy grid? I opened a saved workspace with no charts and there's no reference to any strategies in the workspace .xml

      Comment


        #4
        Hello brenthilburn,

        Thanks for your notes.

        Strategy instance information is stored in the database file.

        We do not have any supported means for accessing information from the NinjaTrader database file.

        This forum thread will be open for other community members to share their insights on the matter.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        86 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        48 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        29 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        32 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        67 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X