Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Accessing TSSuperTrend Value

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

    Accessing TSSuperTrend Value

    Hi,

    Iam trying to acces the TSSuperTrend value for an MA condition...

    I came up with this but run into a problem of:

    "MovingAverageType and 'SuperTrendMode'" does not exist in the corrent contex...

    Here is the code:

    if(TSSuperTrend(14,MovingAverageType.HMA,2.618,14, SuperTrendMode.ATR).UpTrend[0] == TSSuperTrend(14,MovingAverageType.HMA,2.618,14,Sup erTrendMode.ATR).UpTrend[1])

    {
    Plot0.Set(1);
    }
     
    else
    {
    Plot0.Set(0);
    }

    Not sure what is wrong with this... any help is appreciated...

    Thanks,
    R.T.

    #2
    Hello,

    Pllease contact the indicator developer on this as I believe to use his indicator you need to have a using declaration in the strategy file to be able to use it to to the way the developer coded it.

    Please check out the following thread for assistance on how to use this in your own code I believe it has been discussed here on how to do this in a few thread posts:



    BrettNinjaTrader Product Management

    Comment


      #3
      Do you have the TSSuperTrend.Utility in your declarations?

      Comment


        #4
        Awesome, thanks for the help Jon!

        You nailed it, compiles and works perfect now...

        Thanks for the resources Brett!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        572 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        331 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        549 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        550 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X