Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bug with strategy template loading

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

    Bug with strategy template loading

    Hi,

    I think I found a bug with strategy templates that I've been able to replicate on two different computers, both with version 8.1.2.1 64-bit of the desktop platform.

    Here are the steps to replicate it:
    1. Open the NinjaScript Editor, open a strategy, for example SampleMACrossOver.
    2. Right click, Save As, insert a new name (e.g. MySampleMACrossOver). Compile and exit from the NinjaScript Editor.
    3. In the Control Center, Strategy tab: New strategy, select MySampleMACrossOver, change the parameter Fast from 10 to 11.
    4. Template, Save, save as "template1".
    5. Cancel the strategy creation, New strategy, select MySampleMACrossOver and try to load the template --> it doesn't load anything; it doens't show any error or log message.

    I also found a bizarre solution, here the steps:
    1. Do ALL of the above steps, then cancel the strategy creation.
    2. Open the Strategy analyzer. Don't do anything, close it.
    3. In the Control Center, Strategy tab: New strategy, select MySampleMACrossOver. If you try to load the template, you won't be able to: the xml file disappeared.
    4. Change the parameter Fast from 10 to 11, save template as "template1".
    5. Cancel the strategy creation, New strategy, select MySampleMACrossOver and try to load the template --> now it works.

    After this procedure has been done once, templates will work correctly for the MySampleMACrossOver strategy. The Xml files created before and after are identical; however, some magic is done in the Strategy analyzer opening that makes it work. I suspect that probably the Strategy analyzer creates some kind of cache which then makes templates work. Probably there are other ways to do that, like maybe running the strategy once.


    I hope my report is cleare and a fix can be implemented for this problem. A less cumbersome procedure for fixing templates would also be appreciated.

    Thanks,

    Daniele

    #2
    Hello Daniele,

    Thanks for your post and welcome to the Forums!

    We have received your reported behavior and I was able to reproduce the behavior in question.

    We are investigating this behavior further at this time and will update this forum thread once we are finished investigating this matter.

    Thanks for reporting this behavior.


    <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
      Hello Daniele,

      I have reported to behavior you mentioned to the NinjaTrader Development team so that they may investigate this matter further.

      Once they are finished looking into this behavior and provide an update, I will update this forum thread with their findings.

      Thanks for your patience.
      <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


        #4
        Hi Brandon,

        thank you for the support.

        Daniele

        Comment


          #5
          Hello Daniele,

          Thanks for your patience.

          The NinjaTrader Development team has finished looking into this reported behavior.

          A fix for this behavior will be implemented in the next version release of NinjaTrader Desktop (version 8.1.3.0).

          We do not have an ETA for when the next version of NinjaTrader Desktop will be released.
          <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
          69 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          42 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          24 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          27 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          54 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X