NexusFi: Find Your Edge


Home Menu

 





How much Money for faster Optimization Backtesting: Willing to Pay.


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one kevinkdog with 7 posts (10 thanks)
    2. looks_two goodoboy with 6 posts (5 thanks)
    3. looks_3 shade9281 with 3 posts (0 thanks)
    4. looks_4 Fu510n with 1 posts (0 thanks)
      Best Posters
    1. looks_one kevinkdog with 1.4 thanks per post
    2. looks_two Koepisch with 1 thanks per post
    3. looks_3 shodson with 1 thanks per post
    4. looks_4 goodoboy with 0.8 thanks per post
    1. trending_up 4,587 views
    2. thumb_up 18 thanks given
    3. group 13 followers
    1. forum 22 posts
    2. attach_file 1 attachments




 
Search this Thread

How much Money for faster Optimization Backtesting: Willing to Pay.

  #11 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,663 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,357


goodoboy View Post
Hello kevindog,

I appreciate your advice on keeping the iterations no more than 100 or even 200.

I think the premise behind this is:

1. Less is better. Adding too many inputs in the strategy leads to too much decision making.
2. Adding too many iterations leads to second guessing after the test is complete. Then we go round and round again with let me just try this and that.
3. If we get to deep in the overoptimizing process of the strategy, we eventually for get what we are really doing, which is confirm if the trading idea/method makes money with reasonable drawdown with in sample data.

I guess its the whole mindset of less is better.

For me at least, the only part of your 3 points I really agree with is "less than better."

"Too much decision making," "second guessing after testing" and "reasonable drawdown with in sample data" are not reasons I limit # of iterations.

But I guess the reasons do not matter as much as the final desired outcome - limiting iterations.

If I only had a nickel for every backtester who told me they needed a faster computer...

Then again, last November bought a top of line CPU to do more backtesting. I've run about 50 million unique backtests during that time. But never more than 100 iterations per strategy...

Follow me on Twitter Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
How to apply profiles
Traders Hideout
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Tao te Trade: way of the WLD
24 thanks
Just another trading journal: PA, Wyckoff & Trends
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #12 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,663 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,357


goodoboy View Post
Hello kevindog,

I appreciate your advice on keeping the iterations no more than 100 or even 200.

I think the premise behind this is:

1. Less is better. Adding too many inputs in the strategy leads to too much decision making.
2. Adding too many iterations leads to second guessing after the test is complete. Then we go round and round again with let me just try this and that.
3. If we get to deep in the overoptimizing process of the strategy, we eventually for get what we are really doing, which is confirm if the trading idea/method makes money with reasonable drawdown with in sample data.

I guess its the whole mindset of less is better.

Hey @goodoboy -

Whatever happened to this?

Follow me on Twitter Reply With Quote
Thanked by:
  #13 (permalink)
 
shodson's Avatar
 shodson 
OC, California, USA
Quantoholic
 
Experience: Advanced
Platform: IB/TWS, NinjaTrader, ToS
Broker: IB, ToS, Kinetick
Trading: stocks, options, futures, VIX
Posts: 1,976 since Jun 2009
Thanks Given: 533
Thanks Received: 3,709



kevinkdog View Post
Hey @goodoboy -

Whatever happened to this?

Maybe they started playing with NT Genetic Optimization, now they can't get enough CPU cycles to post a response

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #14 (permalink)
 TigerStripes   is a Vendor
 
Posts: 109 since Mar 2021
Thanks Given: 33
Thanks Received: 56


goodoboy View Post
Hello kevindog,

I appreciate your advice on keeping the iterations no more than 100 or even 200.

I think the premise behind this is:

1. Less is better. Adding too many inputs in the strategy leads to too much decision making.
2. Adding too many iterations leads to second guessing after the test is complete. Then we go round and round again with let me just try this and that.
3. If we get to deep in the overoptimizing process of the strategy, we eventually for get what we are really doing, which is confirm if the trading idea/method makes money with reasonable drawdown with in sample data.

I guess its the whole mindset of less is better.

Secondarily this can cause you to loose focus on the bigger picture.
You wnt to use money wisley and hedge based on a descision, so I have en edge in one product, you can understand there are other methods to work in favor that are inversely or non directly correlated to my current edge, which is how to hedge already working captial.

Reply With Quote
  #15 (permalink)
 
syswizard's Avatar
 syswizard 
Philadelphia PA
 
Experience: Advanced
Platform: Multicharts
Broker: Ironbeam, Rithmic
Trading: Emini ES / NQ / CL / RTY / YM / BTC
Posts: 344 since Jan 2019
Thanks Given: 20
Thanks Received: 146


ShadowFox View Post
I use Multicharts for my optimization...
Also, in Multicharts at least, optimization speed is directly related to cores. You can select how many cores you want to utilize during optimization (and change on the fly, which is important for me). So I see you have 2 cores available for optimization. I have 16 cores available. Which means I can optimize 8 times faster than you, in Multicharts at least.

Does Multicharts use multiple cores for any other operations ? For instance, it would be great if one could put multiple workspaces into their own core.

Reply With Quote
  #16 (permalink)
goodoboy
Houston
 
Posts: 380 since Dec 2016
Thanks Given: 344
Thanks Received: 246


kevinkdog View Post
Hey @goodoboy -

Whatever happened to this?

Hello kevinkdog,

Sorry for late response. Thanks for your advice sir.

I followed your advice:

1. Decreased the amount of optimization parameters and got back faster results.
2. Cut the back test data in half. In sample and out of sample
3. Optimized or Curve fit the trading idea on in sample data to my liking and budget
4. Test on out of sample data
5. If I like the results, do some market replay and sim for no errors,
6. Go live

I have 2 algos running now and making money. Working on another algo now.

Thank you alot and others for all your help and motivation. I guess all that manually trading paid off for something and gave me some good trading ideas to back test.

Algo trading is not so bad after all and makes alot of sense. I have no issue with discretionary manual trading, it was just too hard for me, and I was never consistent making money. too hard for me. I look at charts to seek trading ideas for my liking only.

Reply With Quote
  #17 (permalink)
shade9281
Hartford, Connecticut
 
Posts: 6 since Mar 2023
Thanks Given: 0
Thanks Received: 1


kevinkdog View Post
For me at least, the only part of your 3 points I really agree with is "less than better."

"Too much decision making," "second guessing after testing" and "reasonable drawdown with in sample data" are not reasons I limit # of iterations.

But I guess the reasons do not matter as much as the final desired outcome - limiting iterations.

If I only had a nickel for every backtester who told me they needed a faster computer...

Then again, last November bought a top of line CPU to do more backtesting. I've run about 50 million unique backtests during that time. But never more than 100 iterations per strategy...

kevin how do you ensure accuracy in the strategy analyzer? I was optimizing a strategy that didn't need tick data, only needed candle close info and got wildly different results as compared to market replay for the same time period. I manually checked the market replay and it was spot on, but I don't feel comfortable with only 3 months of data on a trade

Reply With Quote
  #18 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,663 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,357


shade9281 View Post
kevin how do you ensure accuracy in the strategy analyzer? I was optimizing a strategy that didn't need tick data, only needed candle close info and got wildly different results as compared to market replay for the same time period. I manually checked the market replay and it was spot on, but I don't feel comfortable with only 3 months of data on a trade

I use Tradestation, not Ninja, for strategy testing, so I can't really tell you what the issue is in your case.

I can say Tradestation is accurate when the strategy is set up correctly, and I am surprised at your comment about Ninja testing - I have heard it is good, too.

Kevin

Follow me on Twitter Reply With Quote
  #19 (permalink)
shade9281
Hartford, Connecticut
 
Posts: 6 since Mar 2023
Thanks Given: 0
Thanks Received: 1


kevinkdog View Post
I use Tradestation, not Ninja, for strategy testing, so I can't really tell you what the issue is in your case.

I can say Tradestation is accurate when the strategy is set up correctly, and I am surprised at your comment about Ninja testing - I have heard it is good, too.

Kevin

yeah it's actually quite awful. Here are the results for a super curve-fit overoptimized dog-turd strategy I was working on:
From NT:
+13,000, 244 trades, 54,000 max drawdown
Actual
+21,000, 15 trades, 2875 max drawdown

Reply With Quote
  #20 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,663 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,357



shade9281 View Post
yeah it's actually quite awful. Here are the results for a super curve-fit overoptimized dog-turd strategy I was working on:
From NT:
+13,000, 244 trades, 54,000 max drawdown
Actual
+21,000, 15 trades, 2875 max drawdown

I would say what you programmed and backtested is not the same strategy as what you ran as actual. I don't know what is different, but there is probably an explanation. I'm sure one of the Ninja experts here would be happy to take a look.

Follow me on Twitter Reply With Quote




Last Updated on June 16, 2023


© 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