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 The_Sec, Yesterday, 03:37 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by vecnopus, Today, 06:15 AM
        0 responses
        1 view
        0 likes
        Last Post vecnopus  
        Started by Aviram Y, Today, 05:29 AM
        0 responses
        5 views
        0 likes
        Last Post Aviram Y  
        Started by quantismo, 04-17-2024, 05:13 PM
        3 responses
        27 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by ScottWalsh, 04-16-2024, 04:29 PM
        7 responses
        36 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X