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;
    BertrandNinjaTrader Customer Service

    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...
        BertrandNinjaTrader Customer Service

        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
            BertrandNinjaTrader Customer Service

            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.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by bortz, 11-06-2023, 08:04 AM
                47 responses
                1,607 views
                0 likes
                Last Post aligator  
                Started by jaybedreamin, Today, 05:56 PM
                0 responses
                9 views
                0 likes
                Last Post jaybedreamin  
                Started by DJ888, 04-16-2024, 06:09 PM
                6 responses
                19 views
                0 likes
                Last Post DJ888
                by DJ888
                 
                Started by Jon17, Today, 04:33 PM
                0 responses
                6 views
                0 likes
                Last Post Jon17
                by Jon17
                 
                Started by Javierw.ok, Today, 04:12 PM
                0 responses
                15 views
                0 likes
                Last Post Javierw.ok  
                Working...
                X