Need high performance computer for back testing on historical data - futures io
futures io



Need high performance computer for back testing on historical data


Discussion in Trading Reviews and Vendors

Updated
      Top Posters
    1. looks_one jsk123 with 4 posts (0 thanks)
    2. looks_two shodson with 1 posts (3 thanks)
    3. looks_3 rleplae with 1 posts (2 thanks)
    4. looks_4 SMCJB with 1 posts (3 thanks)
      Best Posters
    1. looks_one Big Mike with 4 thanks per post
    2. looks_two shodson with 3 thanks per post
    3. looks_3 SMCJB with 3 thanks per post
    4. looks_4 rleplae with 2 thanks per post
    1. trending_up 3,128 views
    2. thumb_up 14 thanks given
    3. group 7 followers
    1. forum 10 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Need high performance computer for back testing on historical data

(login for full post details)
  #1 (permalink)
jsk123
Hyderabad,India
 
 
Posts: 86 since Oct 2013
Thanks: 40 given, 20 received

Hello,

I am into trading for a while and now I want to automate my trades. I have developed some strategies and want to back test them on historical data. I am facing a problem because of low processing power on my computer. I am written codes in PERL programming language and when I run my strategies on Core i7 4510U with 4 threads, it takes 36 hours to finish running one strategy. I need to run 44 such strategies. So I am really looking for a high performance computer, preferably online.

I dont want to buy a work station and I am only looking for services that offer high computing power online. The platform may be windows/linux based. Can someone suggest me such a service where high processing power can be hired cheaply? Key word "Cheap".

Reply With Quote

Can you help answer these questions
from other members on futures io?
Needing harmonic patterns indicator
TradeStation
Futures education program reviews
Trading Reviews and Vendors
Thinkorswim MACD Thinkscript
ThinkOrSwim
NT8 connectivity by FXI API to unsupported brokers?
NinjaTrader
Weather services for trading NG
Trading Reviews and Vendors
 
Best Threads (Most Thanked)
in the last 7 days on futures io
How much do you know about Bitcoin?
114 thanks
I finally blew up an account
44 thanks
FIO Journal Challenge - April 2021 w/Jigsaw Trading
38 thanks
Big Mike in Ecuador
27 thanks
The tiyfTradePlanFactory indicator
25 thanks
 
(login for full post details)
  #3 (permalink)
 rleplae 
Gits (Hooglede) Belgium
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,991 since Sep 2013
Thanks: 2,437 given, 5,802 received


I was facing similar situation.
while I do have a powerful machine.

Things i have done to win time are :

1. Simulator

I wrote a simulator to speed things up +/- 20.000 x times.
this works in a scenario, where the data and the indicators are stable but you want to try various
combinations of filters. In this solution i wrote all the data (bar + indicators) to a file and read them in the simulator.

2. virtual machine
i have been doing back-testing with 4 VM's on my server and run 4 periods in parallel
that is another way to win time.

3. automation
If i read you are using perl (which is not a compiled language)
that could be optimized if some scripts run 50.000 times, that might not be efficient
versus another technical choice..

would need more general info
to give further advice

Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
The following 2 users say Thank You to rleplae for this post:
 
(login for full post details)
  #4 (permalink)
jsk123
Hyderabad,India
 
 
Posts: 86 since Oct 2013
Thanks: 40 given, 20 received

Thanks for the reply.

I think using Virtual service is the best way to go forward for me (I have no idea of the simulation you are talking of. I aint a big time programmer frankly). I have actually looked for VPN in Godaddy etc., but I am not sure how useful they will be or if they will allow installing perl and some associated modules. So I am looking for an advice regarding this. Please do suggest me some such services that offer high computing power.

I am using perl since thats the language I find easy to write codes in, no other reason. Please suggest another language. I shall try to code in that from next time, but for now, I prefer sticking to perl. By the way, I am only using perl to have an estimate of my profits using different strategies. I am using Ninja trader to write my code that does real trading.

Reply With Quote
 
(login for full post details)
  #5 (permalink)
 MacroNinja 
Buenos Aires Argentina
 
Experience: Advanced
Platform: NT, MT4, Sierra
Trading: S&P, Bonds, Crude, FX
 
Posts: 250 since Sep 2014
Thanks: 37 given, 245 received

You could also consider using Amazon cloud computing power.

Reply With Quote
The following user says Thank You to MacroNinja for this post:
 
(login for full post details)
  #6 (permalink)
 Big Mike 
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: Custom solution
Trading: Futures & Crypto
 
Big Mike's Avatar
 
Posts: 50,093 since Jun 2009
Thanks: 32,554 given, 98,581 received


jsk123 View Post
Key word "Cheap".



Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/

Visit other sites? Please spread the word about your experience with our community!
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
The following 4 users say Thank You to Big Mike for this post:
 
(login for full post details)
  #7 (permalink)
 oasisjoe 
Taipei, Taiwan
 
Experience: Intermediate
Platform: Custom
Broker: IB/IQFeed
Trading: HG
 
Posts: 30 since Jul 2014
Thanks: 21 given, 25 received

Well, I haven't really written anything that needs 36 hours to run for one backtest. For me, one backtest with up to 5 years of data usually only takes minutes. But a parameter sweeper (which tries all variations) may take up to 12 hours. I used single thread PHP script. I can manually divide the parameter space into 3 subsets and run them on three different instances simultaneously to save time. I also backtested tick data before. It is slower but not that slow. For me, tick level strategy either work or it doesn't. I felt it didn't help to backtest tick data for a long period. For optimization, it helps to put all your data to memory and try to save and reuse the intermediate data that has already been computed. For example, if you need the moving average for one strategy, the moving average itself can be calculated once and saved to be used later by your other strategies. In my opinion, I7 is already a powerful machine and optimizing/profiling your code will help you the most.

Reply With Quote
The following user says Thank You to oasisjoe for this post:
 
(login for full post details)
  #8 (permalink)
 shodson 
Quantoholic
OC, California, USA
 
Experience: Advanced
Platform: IB/TWS, NinjaTrader, ToS
Broker: IB, ToS, Kinetick
Trading: stocks, options, futures, VIX
 
shodson's Avatar
 
Posts: 1,962 since Jun 2009
Thanks: 529 given, 3,655 received

Perl is not fast. Use a compiled language like C, C++, C#, or Java (JVM) for speed. This will help you more than using expensive VMs or cloud computing services. Your i7 should be fast enough but I'm not certain since you didn't disclose what kind of strategy it is and what kind of data set you are testing across.

As others mentioned, look to use caching of things that are being calculated over and over again, like a SMA(200), so you don't keep re-calculating the same things with each iteration.

I use Ninjatrader, which allows me to code strategies in C#, and I can backtest several years of data across thousands of stocks in a few minutes using daily bar data.

Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
The following 3 users say Thank You to shodson for this post:
 
(login for full post details)
  #9 (permalink)
jsk123
Hyderabad,India
 
 
Posts: 86 since Oct 2013
Thanks: 40 given, 20 received


Big Mike View Post


Mike


Reply With Quote
 
(login for full post details)
  #10 (permalink)
jsk123
Hyderabad,India
 
 
Posts: 86 since Oct 2013
Thanks: 40 given, 20 received


I've decided to go with dedicated Xeon 1230v3 server. It is many times faster than 4510u and cheaper too but falls behind when compared to amazon ec2. but it is good enough for me...

Reply With Quote
 
(login for full post details)
  #11 (permalink)
 SMCJB 
Legendary Market Wizard
Houston, TX
 
Experience: Advanced
Platform: Trading Technologies
Broker: Primary Advantage Futures. Also ED&F and Tradestation
Trading: Primarily Energy but also a little GE, GC, SI & Bitcoin
 
Posts: 4,096 since Dec 2013
Thanks: 3,403 given, 8,116 received

The $10 Hedge Fund Supercomputer That?s Sweeping Wall Street - Bloomberg Business

Reply With Quote
The following 3 users say Thank You to SMCJB for this post:


futures io Trading Community Trading Reviews and Vendors > Need high performance computer for back testing on historical data


Last Updated on June 4, 2015


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing

NEW BlackBird Features + FOREX Support w/Jeremy Tang @ SharkIndicators

Elite only
 

Our 12-year anniversary w/ $$,$$$ prizes (check soon)

June
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), 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