NexusFi: Find Your Edge


Home Menu

 





Strategy Fitness Test


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Big Mike with 7 posts (7 thanks)
    2. looks_two Zach b with 5 posts (1 thanks)
    3. looks_3 Trader.Jon with 1 posts (0 thanks)
    4. looks_4 darthtrader3.6 with 1 posts (1 thanks)
      Best Posters
    1. looks_one piersh with 3 thanks per post
    2. looks_two Big Mike with 1 thanks per post
    3. looks_3 darthtrader3.6 with 1 thanks per post
    4. looks_4 webart with 1 thanks per post
    1. trending_up 7,018 views
    2. thumb_up 14 thanks given
    3. group 6 followers
    1. forum 17 posts
    2. attach_file 0 attachments




 
Search this Thread

Strategy Fitness Test

  #11 (permalink)
 Zach b 
NV
 
Experience: Intermediate
Platform: NinjaTrader
Trading: fx
Posts: 21 since Mar 2010
Thanks Given: 18
Thanks Received: 11

Well luckily for me I do not know how to merge contracts and so all of my studies came from a single cl contract which should lend to it being robust since it tested well on all the others. On the downside, since then I have tried to install the continuous contract you have posted and it said "unexpected number of fields in line 1 " so I do not know how to get a singe result set to post for you to review. Any ideas RE the Error?

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
 
  #12 (permalink)
 Zach b 
NV
 
Experience: Intermediate
Platform: NinjaTrader
Trading: fx
Posts: 21 since Mar 2010
Thanks Given: 18
Thanks Received: 11


piersh View Post
it's my opinion (for what it's worth) that it's as hard to develop a good metric with which to evaluate an automated strategy as it is to develop the strategy itself. it's also much more important to have a good metric than to have a good strategy - without a good metric you cannot know whether or not the strategy you have is any good.

the problem is that you have to find some function that takes into account all the various characteristics of your strategy's performance:
- expectancy
- draw-down
- cumulative profit
- cumulative/contiguous risk
- resilience to changes in market conditions
- etc..

... and it has to represent all of that all in a single number. but how do you weigh the various values with respect to each other?

i'd love to see some more discussion on what people consider to be a good measure of an automated strategy. and, no, for me the sharpe ratio doesn't cut it...

I couldn't agree more. I am trying to apply ideas like risk of ruin but I don't have a clear enough idea as to what data I should use because it speaks in terms of $per an hour.

Mike could please you elaborate on how you go about using StandardDev for risk assessment?

Started this thread Reply With Quote
  #13 (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,236
Thanks Received: 101,661


piersh,

I primarily use expectancy plus heavily weight the number of trades and total sample size and then factor that into the total net profit for my custom fitness test.

Zach,

I am not math wizard, in fact quite the opposite. But I believe the general principal of the built-in standard deviation tests inside MultiCharts is that they use the total sample (trades) and compute the standard deviation from one trade to the other, then you can use that as a basis for formulating the standard deviation of the entire test set. I am the wrong person to ask when it comes to math stuff, I rely on trial and error or written examples from people smarter than me...

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:
  #14 (permalink)
 Zach b 
NV
 
Experience: Intermediate
Platform: NinjaTrader
Trading: fx
Posts: 21 since Mar 2010
Thanks Given: 18
Thanks Received: 11


Big Mike View Post
piersh,

I primarily use expectancy plus heavily weight the number of trades and total sample size and then factor that into the total net profit for my custom fitness test.

Zach,

I am not math wizard, in fact quite the opposite. But I believe the general principal of the built-in standard deviation tests inside MultiCharts is that they use the total sample (trades) and compute the standard deviation from one trade to the other, then you can use that as a basis for formulating the standard deviation of the entire test set. I am the wrong person to ask when it comes to math stuff, I rely on trial and error or written examples from people smarter than me...

Mike

So have you moved to multicharts from Ninja? Is that something you would recommend?

Started this thread Reply With Quote
  #15 (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,236
Thanks Received: 101,661


Zach b View Post
So have you moved to multicharts from Ninja? Is that something you would recommend?

I've moved, yes. I suggest you read:



and



Then you can better make your own decision as to what is best for you.

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:
  #16 (permalink)
 Zoethecus 
United States of America
 
Experience: Advanced
Platform: NT
Posts: 1,145 since Aug 2009


piersh View Post
it's my opinion (for what it's worth) that it's as hard to develop a good metric with which to evaluate an automated strategy as it is to develop the strategy itself. it's also much more important to have a good metric than to have a good strategy - without a good metric you cannot know whether or not the strategy you have is any good.

the problem is that you have to find some function that takes into account all the various characteristics of your strategy's performance:
- expectancy
- draw-down
- cumulative profit
- cumulative/contiguous risk
- resilience to changes in market conditions
- etc..

... and it has to represent all of that all in a single number. but how do you weigh the various values with respect to each other?

i'd love to see some more discussion on what people consider to be a good measure of an automated strategy. and, no, for me the sharpe ratio doesn't cut it...

I'd say a profit factor of 2:1 would seperate a very good system from most others. Next, I'd examine the drawdowns which as BM pointed out gets into ones personal risk thresholds rather than having a single number which is good or bad, but needlesss to say, the lower the better.

Also, for those who are using NT, don't forget that backtest results must be COBC =True to have an iota of relevance in your analysis.

Reply With Quote
  #17 (permalink)
 webart 
Australia
 
Experience: Intermediate
Platform: NT
Posts: 106 since Apr 2010
Thanks Given: 48
Thanks Received: 84

All good points here. I'de add as a side note, that if you backtest on tick data (and you should) then you mostly likely will need to forward test and go live on that same tick data source. Tick data is normally different from different sources and it may affect the way your strategy performs (well depending on the strategy).

Also I'de say at least 2 years of tick data, more is better, but Ninja hates many years of tick data, even in NT7. Also many years of data is also hard to come by, hard to load and test with. By going back several years you are covering more market conditions, and the more conditions in the past your strategy handles, the more in the future it is likely to be able to handle (it is more robust).

The other thing is that 2008 was the 'GFC' (or whatever they call it) and this presents some fairly unique conditions, some strats love it, some don't, but it is often hard to have an optimal strategy running through that period and also the current period. If you need to do any optimizing (for example for price targets and stops), I would run it on 2009-10 then run the desired variables through 2008 and make sure 2008 comes out ok also (kind of like a walk back test). Trading in 2008 was like surfing Pipeline, but now the surf is flatter, so there is less momentum and I think you really need to reflect the current conditions for optimization. Maybe some don't agree, just my thoughts.

Also watch out for unusually smooth equitity curves and profit factors higher than about 1.5. When I see that I start to get suspicious ... if it's too good to be true .......

I optimize for min DD, and then look at the list of min DD's and look for the best compromise between DD and profit. Look for the number of consequtive loosers, look for the longest period where you won't make a cent, can you handle a week of loosers, can you handle 3 months of sideways equitity curve. Put the equitity graph on a big wide monitor so you can really see the dips and DD's. A small equitity graph can make a lot of pain and wheelspin look fairly insignificant.

Next I run it on market replays (a NT thing) and check that matches the backtesting results. Then I'll take it live and hope for some immediate postive results to buffer me from the first DD.

Finally I make sure that it has the best chance to continue run in the future ... ie don't go posting it on public forums. Don't do the market the favour of feeding it food to become efficient with.

Have fun !

Reply With Quote
Thanked by:
  #18 (permalink)
 
darthtrader3.6's Avatar
 darthtrader3.6 
wny
 
Experience: Intermediate
Platform: ninja, excel
Trading: YM, equities
Posts: 86 since Jan 2010

One of the few nuggets of wisdom I've ever found online from Jim Simmons is that after everything has been passed through their teams of Phd's, the final question rentech asks themselves is "does this make sense?".
He didn't say anything more than that but I take that to mean does it make sense that they are exploiting some market property and not just falling into data snooping bias and spurious correlation but done from a speculative, non quantitative common sense perspective.
If you get some outrageous profit factor on a simple model you really need to first ask yourself if it makes sense...
You can make the arguement that any system who's next trade will be EV+ within your risk management you should trade, no matter how small the profit is. Obviously you want though a model that is going to have a life span but nothing is going to help you there beyond your own speculative common sense and skill.

Visit my NexusFi Trade Journal Reply With Quote




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