Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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:



    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 manueldecastro, Yesterday, 10:26 AM
        4 responses
        16 views
        0 likes
        Last Post manueldecastro  
        Started by TraderIqbal, 10-20-2023, 10:12 AM
        2 responses
        118 views
        0 likes
        Last Post Funnywo
        by Funnywo
         
        Started by Creamers, 04-27-2024, 05:32 AM
        12 responses
        72 views
        0 likes
        Last Post Creamers  
        Started by fredericlebre, Today, 01:19 AM
        0 responses
        7 views
        0 likes
        Last Post fredericlebre  
        Started by TraderJA, Today, 12:06 AM
        0 responses
        10 views
        0 likes
        Last Post TraderJA  
        Working...
        X