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 shodson with 1 posts (1 thanks)
      Best Posters
    1. looks_one kevinkdog with 1.4 thanks per post
    2. looks_two shodson with 1 thanks per post
    3. looks_3 ShadowFox with 1 thanks per post
    4. looks_4 goodoboy with 0.8 thanks per post
    1. trending_up 4,623 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.

  #1 (permalink)
goodoboy
Houston
 
Posts: 380 since Dec 2016
Thanks Given: 344
Thanks Received: 246

Hello Everyone.

I am back testing algos for Edge with Strategy Analyzer. Below is my current optimization time remaining. I also attached my existing VPS hard ware metrics.

I have $70,000 for investing in algos, is there anyway on earth I can get faster (in minutes) optimizations results so I do not spend my entire life seeking an Edge to make money running algos?

Is there anyone out there I can pay to help me increase optimizations faster? Please let me know your fee and I will pay you today.

Is there a server I can buy to increase optimizations faster?

Thank you so much for all the help

Attached Thumbnails
Click image for larger version

Name:	Screenshot_1.png
Views:	154
Size:	16.1 KB
ID:	323422  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - May 2024
Feedback and Announcements
Better Renko Gaps
The Elite Circle
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
Cheap historycal L1 data for stocks
Stocks and ETFs
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
What is Markets Chat (markets.chat) real-time trading ro …
76 thanks
Spoo-nalysis ES e-mini futures S&P 500
55 thanks
Just another trading journal: PA, Wyckoff & Trends
37 thanks
Bigger Wins or Fewer Losses?
24 thanks
The Program
17 thanks
  #2 (permalink)
 
Fu510n's Avatar
 Fu510n 
Suffield, CT
 
Experience: Advanced
Platform: MC, TS, Python, Rust
Broker: IB, IQFeed, TS, Kraken
Trading: ES, NQ, RTY, YM, CL, RB, 6E
Frequency: Several times daily
Duration: Seconds
Posts: 144 since Oct 2009
Thanks Given: 902
Thanks Received: 143


goodoboy View Post
Hello Everyone.

I am back testing algos for Edge with Strategy Analyzer. Below is my current optimization time remaining. I also attached my existing VPS hard ware metrics.

I have $70,000 for investing in algos, is there anyway on earth I can get faster (in minutes) optimizations results so I do not spend my entire life seeking an Edge to make money running algos?

Is there anyone out there I can pay to help me increase optimizations faster? Please let me know your fee and I will pay you today.

Is there a server I can buy to increase optimizations faster?

Thank you so much for all the help

https://forum.ninjatrader.com/forum/ninjatrader-8/platform-technical-support-aa/1128700-does-nt8-use-all-cores-threads-when-backtesting

...there are SO many ways to address this but you might want to start by "throwing hardware/cores at it". AMD Ryzen ThreadRipper CPUs can be purchased with 64/128 threads but those aren't cheap - if you're tied to cloud-based only, you can throw a lot of CPU horsepower there as well. Neither option is "cheap" but you didn't divulge exactly what you're trying to optimize (length/size of data, # parameters being optimized, etc.).

Follow me on Twitter Reply With Quote
  #3 (permalink)
 Koepisch 
@ Germany
 
Experience: Beginner
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: FDAX
Posts: 569 since Nov 2011
Thanks Given: 440
Thanks Received: 518



goodoboy View Post
Hello Everyone.



I am back testing algos for Edge with Strategy Analyzer. Below is my current optimization time remaining. I also attached my existing VPS hard ware metrics.



I have $70,000 for investing in algos, is there anyway on earth I can get faster (in minutes) optimizations results so I do not spend my entire life seeking an Edge to make money running algos?



Is there anyone out there I can pay to help me increase optimizations faster? Please let me know your fee and I will pay you today.



Is there a server I can buy to increase optimizations faster?



Thank you so much for all the help

Pay an programmer to build a backtesting environment for you. Don't go further with NT if you have Budget and less time. It's not that difficult.

Input: Tick Data + Algo DLL + Variable Ranges
Output: Trade Metrics + Statistics + Heatmaps

Sent using the NexusFi mobile app

Reply With Quote
Thanked by:
  #4 (permalink)
 
ShadowFox's Avatar
 ShadowFox 
CO/USA
 
Experience: Intermediate
Platform: TradeStation, Multicharts
Trading: Stocks, Futures
Posts: 129 since Jun 2020
Thanks Given: 70
Thanks Received: 157

I use Multicharts for my optimization, and there is an option for a genetic algorithm optimization. It's a way to genetically pick the best combinations of inputs. For instance, I may have 1 million exhaustive optimization options, genetic optimization may reduce this to 5000.

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.

Another way to speed things up is if you have certain inputs that you can take larger steps initially as you hone in on what may or may not affect performance. For example, optimizing on a moving average value from 100-200 by 1 is not necessary. You may be able to get away with optimizing by increments of 25 (and have better real time performance). Taking 100 iterations to 5.

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #5 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,666 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,360


goodoboy View Post
Hello Everyone.

I am back testing algos for Edge with Strategy Analyzer. Below is my current optimization time remaining. I also attached my existing VPS hard ware metrics.

I have $70,000 for investing in algos, is there anyway on earth I can get faster (in minutes) optimizations results so I do not spend my entire life seeking an Edge to make money running algos?

Is there anyone out there I can pay to help me increase optimizations faster? Please let me know your fee and I will pay you today.

Is there a server I can buy to increase optimizations faster?

Thank you so much for all the help

I can tell you how to reduce that time by a factor of 360. >> follow my advice and 48 hours becomes about 8 minutes.

I won't even charge you.

Reduce the number of iterations to no more than 100.

You have 36K iterations now, you are just curvefitting and overoptimizing. You'll get a nice looking backtest that just falls apart in real time. The result with 100 iterations will look worse for sure. But is that the goal here - a great looking backtest?

Of course, most people will say "only 100 iterations?" but I have 10 inputs to optimize, or 2 inputs with 190 values I want to test? Or some such nonsense. OK, so maybe do 200 iterations.


But 36,000 iterations? Yikes.

Follow me on Twitter Reply With Quote
  #6 (permalink)
goodoboy
Houston
 
Posts: 380 since Dec 2016
Thanks Given: 344
Thanks Received: 246


Koepisch View Post
Pay an programmer to build a backtesting environment for you. Don't go further with NT if you have Budget and less time. It's not that difficult.

Input: Tick Data + Algo DLL + Variable Ranges
Output: Trade Metrics + Statistics + Heatmaps

Sent using the NexusFi mobile app

Hello Koepisch,

Thank you for the reply.

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


ShadowFox View Post
I use Multicharts for my optimization, and there is an option for a genetic algorithm optimization. It's a way to genetically pick the best combinations of inputs. For instance, I may have 1 million exhaustive optimization options, genetic optimization may reduce this to 5000.

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.

Another way to speed things up is if you have certain inputs that you can take larger steps initially as you hone in on what may or may not affect performance. For example, optimizing on a moving average value from 100-200 by 1 is not necessary. You may be able to get away with optimizing by increments of 25 (and have better real time performance). Taking 100 iterations to 5.

Thank you ShadowFox,

NT8 have genetic algorithm optimization, I will be studying it to understand the advantages.

Thank you

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


kevinkdog View Post
I can tell you how to reduce that time by a factor of 360. >> follow my advice and 48 hours becomes about 8 minutes.

I won't even charge you.

Reduce the number of iterations to no more than 100.

You have 36K iterations now, you are just curvefitting and overoptimizing. You'll get a nice looking backtest that just falls apart in real time. The result with 100 iterations will look worse for sure. But is that the goal here - a great looking backtest?

Of course, most people will say "only 100 iterations?" but I have 10 inputs to optimize, or 2 inputs with 190 values I want to test? Or some such nonsense. OK, so maybe do 200 iterations.


But 36,000 iterations? Yikes.

Hello Kevin,

lol, that was a good laugh but you right. 36K is big. Seems more like data mining than true Edge mining.

I will get the iterations down.

Thanks,

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


kevinkdog View Post
I can tell you how to reduce that time by a factor of 360. >> follow my advice and 48 hours becomes about 8 minutes.

I won't even charge you.

Reduce the number of iterations to no more than 100.

You have 36K iterations now, you are just curvefitting and overoptimizing. You'll get a nice looking backtest that just falls apart in real time. The result with 100 iterations will look worse for sure. But is that the goal here - a great looking backtest?

Of course, most people will say "only 100 iterations?" but I have 10 inputs to optimize, or 2 inputs with 190 values I want to test? Or some such nonsense. OK, so maybe do 200 iterations.


But 36,000 iterations? Yikes.

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.

Reply With Quote
  #10 (permalink)
 SpeculatorSeth   is a Vendor
 
Posts: 780 since Apr 2016
Thanks Given: 22
Thanks Received: 1,018


More processing power can help, but there are limitations to that if you are trying to use tick replay. When I'm trying to test a really large number of variations I've found the memory to be the bigger barrier here. Even with 32gb of ram you can run into problems. Once you've maxed out your memory things slow to a crawl. I found that setting IncludeTradeHistoryInBacktest = false makes a big difference here. You can also try the generational optimization runs.

There's big problems with trying to do optimization in this manner anyways though. You're just going to overfit. If it's a good idea your model should just work, and it shouldn't require insane amounts of fitting. So the optimization runs become more of a way to run small experiments rather than discovering some magic settings. I usually only do a large number of iterations when I'm trying to thoroughly test an popular strategy for videos.

There's probably a lot of things that could be done with the strategy analyzer. I still have issues with some sort of memory leak from time to time. Expensive operations like tick replay could be saved to disk so that you only have to do that once. If not actually saving the live data. Ultimately though at that point you're probably better off diving deeper into the machine learning realm. Get a system going in python and tensorflow or pytorch where you can use graphics cards to speed things up.

- SpeculatorSeth
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