Click here to Login

                                                   How to query quote database and bin symbols by some attribute


Dave Walton
2013-06-28 09:41:30

Hi, I'd like to know if it is possible to query a quote database (say Russell 3000) and dynamically bin (say 10 buckets) volatility (ATR%) of all symbols for the last 200 days. I'd like to create a function that returns the average next bar return over the last 200 days for a selected bucket.

2013-06-28 20:02:12


Best Answer
You will have to use the script editor (Tools -> Script Editor). The script should read quotes from a specific list of symbols, bin volatility then store the result in a custom database. After that you can create a custom function to get average next bar return from the new database.

Please contact support [at] quantshare [dot] com if you want to hire a programmer to implement this for you.

Dave Walton
2013-07-12 19:11:17


I have been working with a QS programmer on this. I'm receiving excellent service so far. Very reasonable and professional.

No more messages


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"


Trading Items
Futures, Forex and Indices Symbols
Recent mergers and acquisitions
Historical Earnings Surprise, EPS and Consensus Data
IPO Pricings - Recent and Historical
Tweet Sentiment Index for the Forex and Stock Market

How-to Lessons
How to quickly select stocks based on the last value of a databas...
How to plot support and resistance lines automatically
How to download and use U.S. stocks earnings data
How to create trading rules based on Put and Call volume data
How to download EOD quotes for active and valid stocks only

Related Forum Threads
How to read date and get quote of next day.
How to export historical data for a list of symbols
How to update NSE/BSE symbols in QuantShare?
Create and Export each database for each market
Erase all quotes from database and start over

Blog Posts
How to create buy and sell trading rules based on News Data
How to filter quotes data from high and low price spikes
How To Create and Backtest an S&P 500 Trend Following System
How to create a trading system, screen and composite using earnin...
Step by step on how to get free realtime/delayed data for stocks,...

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2020
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
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.