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 SantoshXX, Today, 03:09 AM
        0 responses
        11 views
        0 likes
        Last Post SantoshXX  
        Started by DanielTynera, Today, 01:14 AM
        0 responses
        2 views
        0 likes
        Last Post DanielTynera  
        Started by yertle, 04-18-2024, 08:38 AM
        9 responses
        41 views
        0 likes
        Last Post yertle
        by yertle
         
        Started by techgetgame, Yesterday, 11:42 PM
        0 responses
        12 views
        0 likes
        Last Post techgetgame  
        Started by sephichapdson, Yesterday, 11:36 PM
        0 responses
        2 views
        0 likes
        Last Post sephichapdson  
        Working...
        X