Database - A Simple Query - Traders Hideout | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Traders Hideout

Database - A Simple Query
Started:October 15th, 2011 (02:04 PM) by ab456 Views / Replies:721 / 1
Last Reply:October 15th, 2011 (02:04 PM) Attachments:2

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Database - A Simple Query

Old October 15th, 2011, 02:04 PM   #1 (permalink)
Elite Member
New Delhi, India
Futures Experience: Intermediate
Platform: NEOTICKER, NinjaTrader, MarketDelta
Favorite Futures: ES,Stocks, Futures
Posts: 160 since Sep 2011
Thanks: 731 given, 98 received

Database - A Simple Query

I have got a database in MS-Access in which I import the EOD data for NSE India Futures Contracts on a daily basis. It has got the following fields in it -

INSTRUMENT --- whether it is stock future or index future
EXP_DATE --- expiry date of this contract
OPEN_INT --- Open Interest of the contract
TRD_VAL --- Traded VALUE of the contract in Rs - Indian Currency
TRD_QTY --- Total number of shares traded - this is same as VOLUME
NO_OF_CONT --- Total number of shares traded converted into number of contracts
NO_OF_TRADE --- Total number of trades
Sector --- Which sector this contract belongs to
Series --- Which series contract it is out of 4
Price % Chg --- % change in price over the previous day
Timestamp --- Date of the trading session

The snapshot of the database is attached.

Can some one please guide me on how to make 2 queries in it.
A - that will show the TOTAL VOLUME of the last 5 days for every single contract.
B- that will show the AVERAGE VOLUME of the last 5 days for every single contract.

I have attached the database as well. It is small size, just 2.5 mb, if you want to see the database.

Thanks for any input.

Attached Thumbnails
Database - A Simple Query-database.png  
Attached Files
Register to download File Type: zip EOD (2.66 MB, 12 views)
Reply With Quote

Old October 15th, 2011, 02:04 PM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

Last edited by ab456; February 11th, 2012 at 01:06 AM. Reason: link

Reply > Futures Trading, News, Charts and Platforms > Traders Hideout > Database - A Simple Query

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
GomdRecorder framework and database Mrbaffalo The Elite Circle 6 March 11th, 2013 03:38 PM
Tick Database Storage MXASJ Platforms and Indicators 40 July 20th, 2012 12:30 PM
Database for NT bomberone1 NinjaTrader Programming 6 April 29th, 2011 09:11 AM
Driving Ninjatrader charts with web query price feed RJ3000 NinjaTrader Programming 5 October 19th, 2010 11:42 PM
My 2 cents in mysql database iwannatoscript NinjaTrader Programming 5 March 7th, 2010 08:56 AM

All times are GMT -4. The time now is 05:15 AM.

Copyright © 2016 by 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

Page generated 2016-10-27 in 0.07 seconds with 20 queries on phoenix via your IP