Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Two instances of same indicator

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

    Two instances of same indicator

    deleted..............................
    Last edited by dj22522; 11-21-2017, 09:51 AM.

    #2
    Hello dj22522,

    Thank you for reporting the behavior.

    Below is a link to the 'NT8 - AutoTrend with History & Signaling (AutoTrendH)', which includes the AutoTrendHNT8 indicator.
    https://ninjatraderecosystem.com/user-app-share-download/autotrend-with-history-signaling-autotrendh-2/

    I was able to reproduce this behavior and I am currently looking into what may be causing the error.

    I appreciate your patience.
    Last edited by NinjaTrader_ChelseaB; 07-03-2019, 03:44 PM.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello dj22522,

      Thank you for reporting the behavior.

      Below is a link to the 'NT8 - AutoTrend with History & Signaling (AutoTrendH)', which includes the AutoTrendHNT8 indicator.


      I was able to reproduce this behavior and I am currently looking into what may be causing the error.

      I appreciate your patience.
      Chelsea.
      Many thx.
      Apologies I deleted my post [after you read it pressumably] thinking it better to e-mail direct to support, which I did.
      Sorry for any confusion but hoping for any solution.
      many thx
      Last edited by dj22522; 11-21-2017, 03:10 PM.

      Comment


        #4
        Hello dj22522,

        So I found the indicator is using tag names for drawing objects and then removing these objects from the DrawObjects collection.

        The issue is that when two instances are added, one will remove the objects from the chart, which removes the objects from both scripts. The other instance loses its objects too and causes an error.

        To fix it, I just made the tag names unique per instance of the script.

        I re-uploaded to the original post. Please refresh the page, re-download and re-import, and let me know if you experience any other incorrect behavior.

        This is a conversion of the AutoTrend with Historical and Signaling as originally developed by derekphelps here on the forum. Please refer to the original author for inquiries or comments on the strategy or indicator.



        The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.​​​​​​​
        Last edited by NinjaTrader_ChelseaB; 07-03-2019, 03:44 PM.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by DanielSanMartin, Yesterday, 02:37 PM
        2 responses
        12 views
        0 likes
        Last Post DanielSanMartin  
        Started by DJ888, 04-16-2024, 06:09 PM
        4 responses
        12 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by terofs, Today, 04:18 PM
        0 responses
        11 views
        0 likes
        Last Post terofs
        by terofs
         
        Started by nandhumca, Today, 03:41 PM
        0 responses
        7 views
        0 likes
        Last Post nandhumca  
        Started by The_Sec, Today, 03:37 PM
        0 responses
        3 views
        0 likes
        Last Post The_Sec
        by The_Sec
         
        Working...
        X