Welcome to NexusFi: the best trading community on the planet, with over 200,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- discounts are available after registering.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
first : to NexusFi (formerly BMT) with you first post here !
& to your topic :
i would have a look for TSsupertrend V2 or higher.
i thinks its arround here on NexusFi (formerly BMT) - try the search upper right corner + choos "search for attachements"
or look in the downloadsection.
i remember there have been problems with strategy-functionality in the first one - so maybe thats what causes your problems too.
also have a look in the forum-trheads about SsuperTrend (via search) - there are more infos i think - because its no easy-to-use-indicator for strategys.
I had the same problem ..Try adding "TradingStudies.NinjaScript.Utility" to your using declarations....
BTW...can anyone show me how to"round to tick size" the indicator values in TSSupertrend...so that the indicator plots and values always show tick size increments...?
if (TSSuperTrend(14, TSSuperTrend.MovingAverageType.SMA, 2.618, 14, TSSuperTrend.SuperTrendMode.ATR).UpTrend[0] < Close[0])
{
}
Definitely use the newest version, and there is a considerable thread on the NinjaTrader.com forums to resolve FAQ
I dont think the UpTrend is ever above the close, but the DownTrend always is ... or maybe I needed more sleep last night
AFAIK, dont use the 'Utility' in your 'if' condition
TJ
ps: Lost Trader was kind enough to post his strategy for TSST in nexusfi.com (formerly BMT) downloads (public) : https://nexusfi.com/free_downloads/ninjatrader/strategies/584-download.html?view
I havent gotten around to looking at it yet, but I am familiar with the framework he started from, so I think its worth a look
Azzzz,
I played around with it and got it to work.
Add "TSSuperTrend.Utility" to the declarations as pgabriel hinted at. But not TradingStudies.NinjaScript.Utility.
Remove "TSSuperTrend.Utility" from the Add(...) statements and your if statements. That's the idea Trader.Jon was getting at. It should compile after that.
I attached the test file I was working with. Exported via 6.5.1000.16
I didn't realize a strategy existed for TSSuperTrend. I will check it out as well.
I had trouble with this download. Kept getting error message "Import failed. There are NinjaScript files in the imported . . . that have programming errors. . . ."
I tried to implement the suggestion in your post, but it was already that way in the code. I also downloaded your attached TSS_SuperTrendStrategyTest.zip, but got the same error message.
Also, searched for TSSupertrend v2.3 but did not come across it in NexusFi (formerly BMT) site. My version is 2.4, but there may be some internal code differences.