Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator Missing After "Duplicate" a Chart, Tried "Template" As Well

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

    Indicator Missing After "Duplicate" a Chart, Tried "Template" As Well

    Hello,

    Hope you're doing good!

    The StochRSIMod indicator draws arrows on the chart when the StochRSI crosses above or below the 20/80 overbought/oversold lines in the indicator panel. Update 9/20/2021 Fixed a serialization issue that prevented the indicator from being saved to a chart template or duplicated in another chart window.


    I've installed the indicator above and it works fine on the chart after the installation. However, when I duplicate the chart, it's the only indicator that is missing from the new chart. I tried to save it as a chart template as well, but that didn't work either. I would have to add it back manually on each chart to get it to show again. It would've been okay like that too if I only have to add it once per open chart, but if NT is restarted, I have to add them back again. I am not sure if it's something particular with that indicator or is it just my NT? It would be appreciated if you could help me figure it out. I wouldn't want to reinstall NT if it's not necessary.

    Thanks.

    #2
    Hello You4Life ,

    Thank you very much for bringing this to our attention.

    After testing the indicator I was able to recreate this behavior. I've reached out to our NinjaScript Team in this regard, they will take a closer look at why this occurs as soon as they are back in the office.

    Thank you in advance for your patience!

    Comment


      #3
      Hello You4Life,

      Thanks for your note.

      There was a serialization issue with the StochRSIMod indicator that has been fixed. You should now be able to duplicate a chart that contains the indicator and also save a chart template.

      See the modified StochRSIMod2_NT8 indicator attached.

      Let us know if we may assist further.
      Attached Files
      <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
        Thanks for your assistance NinjaTrader_BrandonH. I noticed you are the author for that indicator as well, so thank you for creating it too. I removed the old one and install the new one and it appears to be working now as I can duplicate the chart with the indicator. Much appreciated and hope you have a great day!

        Comment


          #5
          NinjaTrader_BrandonH​,


          I have the same issue, my indicator is missing if I duplicate the chart.

          This is happening when I create a map file in an indicator class :

          If I add the reference :

          using System.IO.MemoryMappedFiles;
          using System.Runtime.InteropServices;​

          and in the class :

          public MemoryMappedFile mmf1;


          How can I do to duplicate with the indicator ?

          Thank you for your help

          Emmanuel

          Comment


            #6
            Hello EmmanuelEv1,

            If you have found specific lines of code that cause that problem we would need to see a sample of the code causing the problem. I would suggest to create a brand new indicator and add only the few lines of code that cause the issue and then attach that file for review.

            Comment


              #7
              Hello Jesse,

              If we add the following code to any indicator :

              (in the reference, at the beginning)

              using System.IO.MemoryMappedFiles;
              using System.Runtime.InteropServices;​

              and in the class :

              public MemoryMappedFile mmf1;​

              it will create the issue​

              Comment


                #8
                Hello EmmanuelEv1,

                This object type is likely not able to save in Xml.

                Use the XmlIgnore attribute to prevent this from being saved in Xml.
                Chelsea B.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                110 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                59 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                37 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                41 views
                0 likes
                Last Post TheRealMorford  
                Started by Mindset, 02-28-2026, 06:16 AM
                0 responses
                78 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Working...
                X