Click here to Login





                                                   Backtest/Optimizing speed vs Size of Database & Vector vs loop

  0

0
Vangelis M.
2011-11-12 10:06:10


Hello,

Couple of questions:
1.
I am optimizing a system that only uses 5 symbols. My Database holds >1000 symbols witch I do not need for this optimization.
Does the size of the database (# of symbols, #objects, etc) affect the speed of the backtester? Is it better to create a new minimal account with the 5 symbols and run extensive optimizations there?
2.
As far as I can see I can code Functions in three different ways:
a. As a C# or JScript loop.
b. Using Vector calculations in the form VectorD answer= TA.sma(close,10)+TA.sma(close,22);
c. Feeding a string rule to the Parse Function.

Which one is most "efficient" (assuming it can be coded).

Thank you,
V.M.



QuantShare
2011-11-12 10:45:28

  0

Best Answer
1- It does not affect the speed of the backtester if symbols data are loaded in memory during backtest

Account -> Application Settings -> Memory Management -> Load quotes in memory when performing simulations/backtesting

2- "b"

"a" is also efficient, however you will have to implement every indicator from scratch



No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Earnings database
Survivorship bias-free S&P 500 database downloader
Lagged Data From a Custom Database
Last Gap Up/Gap Down Price Size
FII & DII - Foreign and Domestic Institutional Investors

How-to Lessons
How to quickly select stocks based on the last value of a databas...
How to speed up watchlist and screener plug-ins when working with...
How to run a screen or a watchlist from a script
How to download and use U.S. stocks earnings data
How to get trading orders from a portfolio programmatically

Related Forum Threads
INTRADAY VERSION AND SIZE OF DATA BASE
NSE & INdian Stocks
Create and Export each database for each market
Buy a specific instrument via QS vector language
How to import to database from a csv file?

Blog Posts
Speed Up Optimizations by Saving Ranking Data into a Custom Datab...
QS Trading Software: Database Optimization
How to speed up quotes and news downloads
How to deal with StockTwits data
How to Calculate and Display the Bid/Ask Spread on a Chart









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.