NexusFi: Find Your Edge


Home Menu

 





TSSuperTrend Strategy error


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one john2000 with 7 posts (0 thanks)
    2. looks_two Trader.Jon with 4 posts (0 thanks)
    3. looks_3 jabeztrading with 3 posts (5 thanks)
    4. looks_4 tarantino with 3 posts (0 thanks)
      Best Posters
    1. looks_one jabeztrading with 1.7 thanks per post
    2. looks_two Zoethecus with 1 thanks per post
    3. looks_3 rptrader with 0.7 thanks per post
    4. looks_4 Azzzz with 0.3 thanks per post
    1. trending_up 15,923 views
    2. thumb_up 11 thanks given
    3. group 14 followers
    1. forum 32 posts
    2. attach_file 13 attachments




 
Search this Thread

TSSuperTrend Strategy error

  #1 (permalink)
 Azzzz 
Ontario
 
Experience: Intermediate
Platform: Ninja
Broker: Amp Futures/Zen-Fire
Trading: ES, currancy
Posts: 24 since Nov 2009
Thanks Given: 12
Thanks Received: 6

Trying to use TSSuperTend in a Strategy… here is the code inserted by Strategy Builder…

if (TSSuperTrend(14, TSSuperTrend.Utility.MovingAverageType.SMA, 2.618, 14, TSSuperTrend.Utility.SuperTrendMode.ATR).UpTrend[0] > Close[0])
{
}

here is the error after compiling… “TSSuperTrend.Utility.SuperTrendMode)' is a method which is not valid in the given context

Question: is there anyway to use TSSuperTend in a Stategy?

Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
How to apply profiles
Traders Hideout
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Tao te Trade: way of the WLD
24 thanks
Just another trading journal: PA, Wyckoff & Trends
23 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927


hey Azzzz,

first : to futures.io (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 futures.io (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.

thats the first step i would recommend & try .

max-td
Reply With Quote
  #4 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

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.

max-td
Reply With Quote
  #5 (permalink)
 pgabriel 
Durham NC
 
Experience: Intermediate
Platform: Ninja
Broker: Zen
Trading: ES
Posts: 1 since Nov 2009
Thanks Given: 0
Thanks Received: 0

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...?

Reply With Quote
  #6 (permalink)
 
Trader.Jon's Avatar
 Trader.Jon 
Near the BEuTiFULL Horse Shoe
 
Experience: Beginner
Platform: NinjaTrader
Broker: MBTrading Dukascopy ZenFire
Trading: $EURUSD when it is trending
Posts: 473 since Jul 2009
Thanks Given: 401
Thanks Received: 184


Azzzz View Post
Trying to use TSSuperTend in a Strategy… here is the code inserted by Strategy Builder…

if (TSSuperTrend(14, TSSuperTrend.Utility.MovingAverageType.SMA, 2.618, 14, TSSuperTrend.Utility.SuperTrendMode.ATR).UpTrend[0] > Close[0])
{
}

here is the error after compiling… “TSSuperTrend.Utility.SuperTrendMode)' is a method which is not valid in the given context

Question: is there anyway to use TSSuperTend in a Stategy?

Give this a try:

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) :

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

Reply With Quote
  #7 (permalink)
 jabeztrading 
Brooklyn, NY
 
Experience: Beginner
Platform: Ninjatrader, Metatrader
Trading: EUR/USD
Posts: 24 since Feb 2010
Thanks Given: 12
Thanks Received: 13

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


Quoting 
ps: Lost Trader was kind enough to post his strategy for TSST in nexusfi.com (formerly BMT) downloads (public) :

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

I didn't realize a strategy existed for TSSuperTrend. I will check it out as well.

Attached Files
Elite Membership required to download: TSSuperTrendStrategyTest.zip
Reply With Quote
  #8 (permalink)
 Azzzz 
Ontario
 
Experience: Intermediate
Platform: Ninja
Broker: Amp Futures/Zen-Fire
Trading: ES, currancy
Posts: 24 since Nov 2009
Thanks Given: 12
Thanks Received: 6

I want to thank-you for your work... it work great... thanks again for you time and for sharing your knowledge.

Started this thread Reply With Quote
  #9 (permalink)
 
john2000's Avatar
 john2000 
Chicago, IL
 
Experience: Intermediate
Platform: Ninjatrader, TOS
Broker: Amp Futures/CQG/IB
Trading: ES, ZB, ZN, Forex
Posts: 162 since Jan 2010
Thanks Given: 244
Thanks Received: 59

Jabeztrading,

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 futures.io (formerly BMT) site. My version is 2.4, but there may be some internal code differences.

Any clue on how I can get through this issue?

Thanks,
John

Reply With Quote
  #10 (permalink)
 Azzzz 
Ontario
 
Experience: Intermediate
Platform: Ninja
Broker: Amp Futures/Zen-Fire
Trading: ES, currancy
Posts: 24 since Nov 2009
Thanks Given: 12
Thanks Received: 6



john2000 View Post
Jabeztrading,

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.com (formerly BMT) site. My version is 2.4, but there may be some internal code differences.

Any clue on how I can get through this issue?

Thanks,
John



Hi John from Azzzz

I started this link since I was having trouble with TTSuperTrend...

I download my copy of Super Trend from ... [COLOR=#800080]http://tradingstudies.com/Downloads/SuperTrend.aspx[/COLOR]

this plus Jabeztrading's [COLOR=#0000ff]TSSuperTrendStrategyTest.zip[/COLOR]

I'm using Ninja 6.5

The above combination worker for me.

Started this thread Reply With Quote




Last Updated on October 7, 2011


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts