NexusFi: Find Your Edge


Home Menu

 





How to properly optimize an strategy?


Discussion in NinjaTrader

Updated
    1. trending_up 3,288 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 3 posts
    2. attach_file 1 attachments




 
Search this Thread

How to properly optimize an strategy?

  #1 (permalink)
 pakricard 
Indonesia
 
Experience: Beginner
Platform: NT
Trading: FDAX
Posts: 29 since Jan 2011
Thanks Given: 13
Thanks Received: 18

How to optimize/ backtest properly?

I know it's a tricky and grey area, but I would like to share how do I optimize an strategy, and also would like to know how do you optimize/ backtest yours.

I think we must look for a GOOD combinationm of parameters, but NOt the best, as it will be obviously curve fitted.
Parameters should be stable over diferent epriods of time (on backtesting side) and should give similar results on sim / forward testing.

Also I think the GOOD strategy should have:
- Good profits
- Good win/loss ratio
- Few number of trades

Ninja Trader allows to optimize of ONE of these oncepts but not a combination of them, so i wrote a pice of code (attached) combining the 3 concepts, to be copied into your bin/custom/Type folder of NT.

1) Run optimization
2) Results exported to Excel ans get the top X (usually 1.000) and I get the average parameters.
3) Run the stratgey with those parameters in ANTHER set of data (diferent dates, to confirm it's stable)
4) Go to step 1) until I'm happy with the results.

Well, how do you optimize your strategies? From the zillions of parameters' combinations, which one do you choose?

To moderators: I could not find any similar thread, so I started a new one. If there's already one, please move this one there ;-)

Attached Files
Elite Membership required to download: MaxSB.cs
Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Better Renko Gaps
The Elite Circle
NexusFi Journal Challenge - May 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
38 thanks
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
21 thanks
  #3 (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



pakricard View Post
How to optimize/ backtest properly?

To moderators: I could not find any similar thread, so I started a new one. If there's already one, please move this one there ;-)

Perhaps similar enough?


Pakicard,

Have a look at what was attached to the other thread and comment further. I am sure it will be appreciated.

TJ

Writing to you from the wonderful province of Ontario, Canada. Home to the world's biggest natural negative ion generator, the Niagara Falls, and to those that dare to know how to go over it in a barrel. SALUTE!
Reply With Quote
  #4 (permalink)
 pakricard 
Indonesia
 
Experience: Beginner
Platform: NT
Trading: FDAX
Posts: 29 since Jan 2011
Thanks Given: 13
Thanks Received: 18

Thanks TJ. I'll post there.

Moderators, please delete this thread.

Started this thread Reply With Quote




Last Updated on April 3, 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