TSSuperTrend Strategy error - NinjaTrader Programming | futures io social day trading
futures io futures trading


TSSuperTrend Strategy error
Updated: Views / Replies:8,877 / 32
Created: by Azzzz Attachments:13

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 13  
 
Thread Tools Search this Thread
 

TSSuperTrend Strategy error

  #1 (permalink)
Elite Member
Ontario
 
Futures Experience: Intermediate
Platform: Ninja
Broker/Data: Amp Futures/Zen-Fire
Favorite Futures: ES, currancy
 
Posts: 10 since Nov 2009
Thanks: 3 given, 2 received

TSSuperTrend Strategy error

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?

Reply With Quote
The following user says Thank You to Azzzz for this post:
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 received


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)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 received

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)
Just starting out...
Durham NC
 
Futures Experience: Intermediate
Platform: Ninja
Broker/Data: Zen
Favorite Futures: ES
 
Posts: 1 since Nov 2009
Thanks: 0 given, 0 received

TSSupertrend

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)
Elite Member
Near the BEuTiFULL Horse Shoe
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: MBTrading Dukascopy ZenFire
Favorite Futures: $EURUSD when it is trending
 
Trader.Jon's Avatar
 
Posts: 500 since Jul 2009
Thanks: 401 given, 176 received

Love that TSSuperTrend

Answer
This post has been selected as an answer to the original posters question Answer


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 futures.io (formerly BMT) downloads (public) :
https://futures.io/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

Reply With Quote
 
  #7 (permalink)
Elite Member
Brooklyn, NY
 
Futures Experience: Beginner
Platform: Ninjatrader, Metatrader
Favorite Futures: EUR/USD
 
Posts: 24 since Feb 2010
Thanks: 12 given, 13 received

RE: TSSuperTrend Strategy error

Answer
This post has been selected as an answer to the original posters question Answer

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 futures.io (formerly BMT) downloads (public) :
https://futures.io/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

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

Attached Files
Register to download File Type: zip TSSuperTrendStrategyTest.zip (31.2 KB, 235 views)

Last edited by jabeztrading; August 6th, 2010 at 12:00 PM. Reason: forgot attachment
Reply With Quote
The following 5 users say Thank You to jabeztrading for this post:
 
  #8 (permalink)
Elite Member
Ontario
 
Futures Experience: Intermediate
Platform: Ninja
Broker/Data: Amp Futures/Zen-Fire
Favorite Futures: ES, currancy
 
Posts: 10 since Nov 2009
Thanks: 3 given, 2 received

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

Reply With Quote
 
  #9 (permalink)
Elite Member
Chicago, IL
 
Futures Experience: Intermediate
Platform: Ninjatrader, TOS
Broker/Data: Amp Futures/CQG/IB
Favorite Futures: ES, ZB, ZN, Forex
 
john2000's Avatar
 
Posts: 162 since Jan 2010
Thanks: 243 given, 59 received

TSSuperTrend Strategy error

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)
Elite Member
Ontario
 
Futures Experience: Intermediate
Platform: Ninja
Broker/Data: Amp Futures/Zen-Fire
Favorite Futures: ES, currancy
 
Posts: 10 since Nov 2009
Thanks: 3 given, 2 received

TTsuperTrend



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



Hi John from Azzzz

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

I download my copy of Super Trend from ... http://tradingstudies.com/Downloads/SuperTrend.aspx

this plus Jabeztrading's TSSuperTrendStrategyTest.zip

I'm using Ninja 6.5

The above combination worker for me.

Reply With Quote

Reply



futures io > > > > > TSSuperTrend Strategy error

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
TSSuperTrend togier NinjaTrader 7 July 2nd, 2012 03:48 PM
My First MTF Strategy .. need some minor error fixes Trader.Jon The Elite Circle 4 May 14th, 2010 09:58 PM
Strategy Analyzer Error jeffbg123 NinjaTrader Programming 3 April 8th, 2010 09:17 PM
DoubleMA strategy error dsraider NinjaTrader Programming 5 January 25th, 2010 04:13 PM
Logic Error in Strategy HJay NinjaTrader Programming 14 November 1st, 2009 07:05 PM


All times are GMT -4. The time now is 04:29 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-17 in 0.16 seconds with 38 queries on phoenix via your IP 54.227.51.103