Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TSSuperTrend challeng

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

    TSSuperTrend challeng

    I'm trying to use the TSSuperTrend indicator in an automated strategy. The code is:
    if (Close[0] > TSSuperTrend(14, TSSuperTrend.Utility.MovingAverageType.HMA, 2.618, 14, TSSuperTrend.Utility.SuperTrendMode.Adaptive).Down Trend[0])
    the error message is that TSSuperTrend() is not valid in the given context.
    Can anyone give me a suggestion as how to make it valid? I've seached posts and it seems many people have issues generating a strategy with this particular indicator.


    #2
    While we unfortunately not really familiar with the custom indicator you employ here, I believe for the utility used you would need a using directive in the top section of your strategy code -

    Code:
     
    using TSSuperTrend.Utility;

    Comment


      #3
      Bertrand,
      I place that suggestion in the "using" section and it still won't compile. Gives the same error. Any further suggestions?
      Last edited by RickStevenson1; 09-17-2010, 10:44 AM.

      Comment


        #4
        In the top region of the script above the Namespace declaration, you see other using directives as well listed there...

        Comment


          #5
          Sorry, Bertrand I was editing my reply just as you sent yours. I realized my mistake and placed that in the "Using Declarations" section and got the same error message. Any suggestions?

          Comment


            #6
            Unfortunately not then Rick, you may try using velocity's export from the thread below that would simply allow you to access the trend states from the wizard - http://www.ninjatrader.com/support/f...t=11844&page=8

            Comment


              #7
              Thank you Bertrand,
              The trend states you mention seem to have been updated in later versions of this indicator. The problem still remains. I've seen several posts through the thread you refered me to that state the same problem without any answers. Is there anyone out there that has an answer to this issue of this indicator not working in a strategy? I've emailed TradingStudies.com a few times and have not received a response. Help from anyone on what "TSSuperTrend() is a method, which is not valid in the given context" means, would be greatly appreciated.

              Comment


                #8
                Hello,

                Unfortunately we are not familiar with this indicator or why this would be the case. You would need to contact the indicator developer directly for more information on this. I will leave this thread open if anyone else has any experience with this and would like to post.
                BrettNinjaTrader Product Management

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                77 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                45 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                27 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
                62 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Working...
                X