NexusFi: Find Your Edge


Home Menu

 





TSSuperTrend Optimizer


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one dsraider with 5 posts (1 thanks)
    2. looks_two Trader.Jon with 2 posts (0 thanks)
    3. looks_3 baruchs with 1 posts (0 thanks)
    4. looks_4 spikoloco with 1 posts (0 thanks)
    1. trending_up 10,694 views
    2. thumb_up 3 thanks given
    3. group 1 followers
    1. forum 11 posts
    2. attach_file 3 attachments




 
Search this Thread

TSSuperTrend Optimizer

  #1 (permalink)
dsraider
New York, NY
 
Posts: 142 since Dec 2009
Thanks Given: 41
Thanks Received: 87

Hello Traders,

I was wondering if anyone knew of a way of putting the TSSuperTrend through the optimizer so that it can test all combos of:

1. Period
2. Multiplier
3. MAType
4. Smoothing period
5. SuperTrendMode

for trend changes and run this against different stops and targets.

Thanks,
Dave

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
How to apply profiles
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,463 since Jun 2009
Thanks Given: 33,237
Thanks Received: 101,661


Yes there is, use the PH Genetic Optimizer and then optimize the enum's (item 3 and 5). The others there is nothing special.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 emini_Holy_Grail 
Dallas,TX
 
Experience: Intermediate
Platform: NinjaTrader, OpenQuant
Broker: Zaner/Zen Fire
Trading: ES,6E,6B,GC,CL
Posts: 597 since Nov 2009
Thanks Given: 176
Thanks Received: 126

Mike, what is PH Genetic Optimizer? and where do you get it from

Reply With Quote
  #5 (permalink)
dsraider
New York, NY
 
Posts: 142 since Dec 2009
Thanks Given: 41
Thanks Received: 87

Mike,

You rock! Thanks. Will work on coding my strat to get this thing to recognize all the different parameters.

E-mini:

Dave

Reply With Quote
Thanked by:
  #6 (permalink)
dsraider
New York, NY
 
Posts: 142 since Dec 2009
Thanks Given: 41
Thanks Received: 87

Uh-oh. Apparently, I am not as adept at programming as I thought I was. Reading though the thread, unfortunately, didn't help. Anyone have any tips on how to go about doing what I have in the first post? Will be happy to post the end result as I'm sure many people can benefit from this.

Reply With Quote
  #7 (permalink)
 spikoloco 
Queretaro,Qro. Mexico
 
Experience: Intermediate
Platform: Ninja Trader, Multicharts
Broker: Mirus/Zen-Fire
Trading: ES
Posts: 34 since Nov 2009
Thanks Given: 7
Thanks Received: 3

The genetic optimizer is not working well, any opinions on it?

Reply With Quote
  #8 (permalink)
 baruchs 
Israel
 
Experience: Intermediate
Platform: NinjaTrader
Broker: pfg
Trading: eminis
Posts: 323 since Jun 2009

You can optimize Enums in Brute Force optimizer too.
Declare int variable for each Enum and cast it in Initialize.

Baruch

Reply With Quote
  #9 (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


dsraider View Post
Hello Traders,

I was wondering if anyone knew of a way of putting the TSSuperTrend through the optimizer so that it can test all combos of:

1. Period
2. Multiplier
3. MAType
4. Smoothing period
5. SuperTrendMode

for trend changes and run this against different stops and targets.

Thanks,
Dave

Dave,

Just saw this pos&threadt after moving in the same direction in another thread:

I have two strategy with TSST : I cant get the enums to work to get them optimized either ... have you had any success?

I am attaching what I have .. NT7b219 compile .. but the .cs 'with enums' wont compile, but the version up to where I get errors is good

Jon

Attached Files
Elite Membership required to download: MACDCrossOver_w_TSSTenum.cs
Elite Membership required to download: MACDCrossOver_w_TSST.cs
Reply With Quote
  #10 (permalink)
dsraider
New York, NY
 
Posts: 142 since Dec 2009
Thanks Given: 41
Thanks Received: 87


Morning Jon,

I was, actually. All you need to do is expose the parameters:

 
Code
                            
[Category ("Parameters")]

        public 
int Length
        
{
            
get { return length; }
            
set length Math.Max(1value); }
        }    
        
        [
Category ("Parameters")]
        public 
MovingAverageType MAType 
        
{   
            
get { return maType; }   
            
set maTypevalue; }   
        }   
        
MovingAverageType maType MovingAverageType.HMA;
                        
        [
Category ("Parameters")]
        public 
double Multiplier
        
{
            
get { return multiplier; }
            
set multiplier Math.Max(0.0001value); }
        }
                
        [
Category ("Parameters")]
        public 
int Smooth
        
{
            
get { return smooth; }
           
set smooth Math.Max(1value); }
        }
            
        [
Category ("Parameters")]
        public 
SuperTrendMode TrendMode 
        
{   
            
get { return smode; }   
            
set smodevalue; }   
        }   
        
SuperTrendMode smode SuperTrendMode.ATR
I haven't looked at your cs files yet only because I'm running short on time this morning. If this doesn't work, let me know and I'll take a look at what you have.

Dave

Reply With Quote




Last Updated on August 15, 2010


© 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