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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        152 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        89 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        131 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        127 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        107 views
        0 likes
        Last Post CarlTrading  
        Working...
        X