Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SuperTrend strategy (TSSuperTrend)

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

    SuperTrend strategy (TSSuperTrend)

    Hi all, and thanks for the work on this indicator.
    I'm trying to build a strategy using this indicator, but I have a problem:
    - how can we define the Trend in a strategy ?
    I thought that it was something like:
    ------------------
    TSU=TSSuperTrend(14, TradingStudies.NinjaScript.Utility.MovingAverageTy pe.HMA, 2.618, 14, TradingStudies.NinjaScript.Utility.SuperTrendMode. ATR).UpTrend[0];
    if ((TSU < Close[0]){
    EnterLong(DefaultQuantity, "");
    }

    ------------------
    but it seems this is not...
    Has anyone has a quick example of a strategy based on this indicator, or is able to tell me what is wrong ?

    Thx.



    edit: never mind, found what I was looking for...
    Last edited by sam028; 05-26-2009, 08:45 AM.

    #2
    Originally posted by sam028 View Post
    Hi all, and thanks for the work on this indicator.
    I'm trying to build a strategy using this indicator, but I have a problem:
    - how can we define the Trend in a strategy ?
    I thought that it was something like:
    ------------------
    TSU=TSSuperTrend(14, TradingStudies.NinjaScript.Utility.MovingAverageTy pe.HMA, 2.618, 14, TradingStudies.NinjaScript.Utility.SuperTrendMode. ATR).UpTrend[0];
    if ((TSU < Close[0]){
    EnterLong(DefaultQuantity, "");
    }
    ------------------
    but it seems this is not...
    Has anyone has a quick example of a strategy based on this indicator, or is able to tell me what is wrong ?

    Thx.



    edit: never mind, found what I was looking for...
    You should be looking at the original thread


    There are quite few examples

    Comment


      #3
      I have the same problem.

      Is it possible to have some code where someone uses TSSuperTrend in a strategy ?

      the previus post about strategy was about previus version of SuperTrend where it was used Up end Down as a bool type .

      Comment


        #4
        see thread http://www.ninjatrader-support2.com/...ad.php?t=11844

        Comment


          #5
          Hi Roonius, do you have the super trend indicator for NT8? I`m using it in NT7 and work great! but it dosn`t work at NT8, thanks

          Comment


            #6
            Hi Sam, did you get the strategy using Supertrend Indicator? I `m traying to build a strategy in NT but it doesn`t work, i don`t know where can I find it, thanks!

            Comment


              #7
              Hello pablofk,

              Thank you for your post.

              Are you using the Super Trend from the thread at the following link?


              The SuperTrend by Harry is stated to be released once NinjaTrader 8 has been released as a production version (not in Beta essentially).

              Comment


                #8
                Hi Patrick, no, I`m using this http://ninjatrader.com/support/forum...0&d=1326437137 I think is by Rooni

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by ScottWalsh, Today, 04:52 PM
                0 responses
                1 view
                0 likes
                Last Post ScottWalsh  
                Started by ScottWalsh, Today, 04:29 PM
                0 responses
                5 views
                0 likes
                Last Post ScottWalsh  
                Started by rtwave, 04-12-2024, 09:30 AM
                2 responses
                22 views
                0 likes
                Last Post rtwave
                by rtwave
                 
                Started by tsantospinto, 04-12-2024, 07:04 PM
                5 responses
                70 views
                0 likes
                Last Post tsantospinto  
                Started by cre8able, Today, 03:20 PM
                0 responses
                7 views
                0 likes
                Last Post cre8able  
                Working...
                X