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 sjsj2732, Yesterday, 04:31 AM
        0 responses
        36 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        287 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        288 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        134 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        95 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X