For those who are getting error message "NinjaTrader.Strategy.Strategy.TSSuperTrend(int,TS SuperTrend.Utility.MovingAverageType, double, int, TSSuperTrend.Utility.SuperTrendMode)' is a method, which is not valid in the given context."
Somehow the newer versions of TSSuperTrend do not include TSSuperTrend.Utility.cs in the package.
Here is what you do :
1. Remove all older versions of TradingStudies.NinjaScript.cs and TSSUperTrend.cs from your indicator folder. (...\Documents\NinjaTrader 6.5\bin\Custom\Indicator)
2. Copy the attached TSSuperTrend.cs and TSSuperTrend.Utility.cs to your indicator folder. (v.24 as of the message date)
3. Must add "using TSSuperTrend.Utility;" to declarations section of your indicator/strategy.
Let me know if it works for you.
~Nissii


Leave a comment: