New Optimization Types - NinjaTrader | futures io social day trading
futures io futures trading


New Optimization Types
Updated: Views / Replies:3,535 / 10
Created: by eleven Attachments:6

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
 6  
 
Thread Tools Search this Thread
 

New Optimization Types

  #1 (permalink)
Elite Member
California, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Kinetick
Favorite Futures: Currency Futures
 
Posts: 29 since Jul 2009
Thanks: 16 given, 75 received

New Optimization Types

Often, I found that I'd rather modify the NT strategy analyzer optimizer type rather than my strategy that I developed. This is one such strategy optimizer type that I wrote. It is similar to the linear rsquared trendline function in MS excel. This optimization will maximize the linearity of the equity curve.

Enjoy,
eleven

Attached Files
Register to download File Type: cs eleRSquared.cs (3.7 KB, 76 views)
Reply With Quote
The following 10 users say Thank You to eleven for this post:
 
  #2 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,214 received


eleven View Post
Often, I found that I'd rather modify the NT strategy analyzer optimizer type rather than my strategy that I developed. This is one such strategy optimizer type that I wrote. It is similar to the linear rsquared trendline function in MS excel. This optimization will maximize the linearity of the equity curve.

Enjoy,
eleven

Cool - for those of us who are math challenged, can you give some more details as to how this is being accomplished?

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #3 (permalink)
Elite Member
California, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Kinetick
Favorite Futures: Currency Futures
 
Posts: 29 since Jul 2009
Thanks: 16 given, 75 received

R-Squared definition


RSquared is the coefficient of determination.

The optimization performs simple linear regression of the equity curve by the least squares method to determine slope of a linear line. This linear regression line is then correlated with the equity curve by trade # to calculate r-squared. The closer to 1 the better the fit. I have wrote the code to only return result with positive net income. I have provided an updated attachment that removes some redundant code.

I have pulled the following definition from Investopedia which provides a very good explanation.

What Does Coefficient of Determination Mean?
A measure used in statistical model analysis to assess how well a model explains and predicts future outcomes. It is indicative of the level of explained variablity in the model. The coefficient, also commonly known as R-square, is used as a guideline to measure the accuracy of the model.

Investopedia explains Coefficient of Determination

One use of the coefficient of determination is to test the goodness of fit of the model. It is expressed as a value between zero and one. A value of one indicates a perfect fit, and therefore, a very reliable model for future forecasts. A value of zero, on the other hand, would indicate that the model fails to accurately model the dataset.


Attached Files
Register to download File Type: cs eleRSquared.cs (3.6 KB, 35 views)

Last edited by eleven; November 8th, 2011 at 09:05 PM.
Reply With Quote
The following 4 users say Thank You to eleven for this post:
 
  #4 (permalink)
Elite Member
California, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Kinetick
Favorite Futures: Currency Futures
 
Posts: 29 since Jul 2009
Thanks: 16 given, 75 received

Revision 0.12 - Uploaded 11/10/2011 to download section: Fixed error in calculation

Update attached in this post

Attached Files
Register to download File Type: cs eleRSquared.cs (3.6 KB, 102 views)
Reply With Quote
The following 6 users say Thank You to eleven for this post:
 
  #5 (permalink)
Elite Member
California, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Kinetick
Favorite Futures: Currency Futures
 
Posts: 29 since Jul 2009
Thanks: 16 given, 75 received

R^2 times net

Here is an optimization type: (R^2)(net profit).

Attached Files
Register to download File Type: cs eleRSquaredXnetProf.cs (3.5 KB, 90 views)

Last edited by eleven; January 2nd, 2012 at 01:27 PM.
Reply With Quote
The following 10 users say Thank You to eleven for this post:
 
  #6 (permalink)
Elite Member
California, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Kinetick
Favorite Futures: Currency Futures
 
Posts: 29 since Jul 2009
Thanks: 16 given, 75 received

Sharpe Ratio times Net Profit

Here is an optimization type: (Sharpe Ratio)(Net Profit).

Attached Files
Register to download File Type: cs eleSharpeRatioXnetProf.cs (2.2 KB, 108 views)
Reply With Quote
The following 10 users say Thank You to eleven for this post:
 
  #7 (permalink)
Trading Apprentice
Austin Texas
 
Futures Experience: Intermediate
Platform: NinjaTrader, TWS (IB), TDA -Strategy Desk & TOS
Favorite Futures: ES
 
Posts: 7 since Jun 2013
Thanks: 5 given, 0 received

checking

Thanks for sharing this. I was looking for something like this on the Ninja board and Bertrand suggested I look at this. I would like to optimize based on the profit curve being as close as possible to a straight line. I assume that is what your download in the previous post with R2 does -- correct? What is the difference with the next download? Does it still look at the equity curve or only at Sharp and Net Profit?

Reply With Quote
 
  #8 (permalink)
Trading Apprentice
Waterford, Ireland
 
Futures Experience: Intermediate
Platform: NT and MarketDelta
Favorite Futures: NQ
 
Posts: 15 since Dec 2011
Thanks: 22 given, 8 received

Such a newby question, but how do I incorporate this into my optimisation? Currently I can only see the 'default' and 'Genetic', and the default options for 'optimize on'.

Be great to be able to incorporate this into some of my strategies!

Thanks!

Edit: I just had the option show up in 'optimize on' list. Awesome, thank you.


Last edited by adrianjm; April 22nd, 2014 at 10:13 AM. Reason: Found it!
Reply With Quote
 
  #9 (permalink)
Elite Member
California, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Kinetick
Favorite Futures: Currency Futures
 
Posts: 29 since Jul 2009
Thanks: 16 given, 75 received

Here is another optimization type: Zephyr K-Ratio by Zephry and Associates. Information is in public domain. See link to understand.

Zephyr K-Ratio | Zephyr Associates, Inc

Attached Files
Register to download File Type: cs eleZephyrKRatio.cs (3.7 KB, 20 views)
Reply With Quote
The following 3 users say Thank You to eleven for this post:
 
  #10 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,214 received


This thread has most of them:

https://futures.io/elite-automated-ninjatrader-trading/25792-ninjatrader-optimizer-types-custom-fitness.html

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following user says Thank You to Big Mike for this post:

Reply



futures io > > > > New Optimization Types

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
New subforums for instrument types Big Mike Feedback and Announcements 2 October 28th, 2010 12:33 PM
2 strategies and 2 types of stops managements... How to? arjfca EasyLanguage Programming 3 October 28th, 2010 08:23 AM
Want to learn about broker connection types AresBowman Reviews of Brokers and Data Feeds 3 August 19th, 2010 07:00 AM
Different Bar Types: Advantages and Disadvantages ct1942 NinjaTrader 0 January 20th, 2010 01:20 AM
Combining strategy optimization types caprica NinjaTrader Programming 0 July 27th, 2009 05:52 AM


All times are GMT -4. The time now is 10:39 PM.

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-10 in 0.13 seconds with 20 queries on phoenix via your IP 54.221.73.186