Rajandran R Founder of Marketcalls and Co-Founder Algomojo. Full-Time Derivative Trader. Expert in Designing Trading Systems (Amibroker, Ninjatrader, Metatrader, Python, Pinescript). Trading the markets since 2006. Mentoring Traders on Trading System Designing, Market Profile, Orderflow and Trade Automation.

Simple Financial SpreadSheets – Kids Stuff

1 min read

Excel Web Query – What in the world is that? If you are like the other 99.9% of MS Excel users, you probably have never heard of microsoft excel web queries

Excel web queries are powerful! Web queries strips web pages of useless stuff and gives you access to the essential information. You can then use Excel formulas (like =A1/B2) to work directly with the data you’ve downloaded. Even one can build realtime data without prior knowledge of Programming.
Web queries can be used for importing stock quote data into Excel. For rapidly changing data like stock quotes, the web queries can be set to automatically refresh every 1,3,5,20,… minutes.
With a web query, you can set up a program that will automatically gather up-to-the second refreshed data from the web every time you open the spreadsheet. Here is an example to build a simple application that extracts index data from nseindia.com and auto refreshes every 1 minute.

To start, use Data – Import External Data – New Web Query.

Webquery

 

A mini-browser opens inside of Excel. Initially, it will display your default Internet Explorer home page.

Use the mini-browser to navigate to the web page containing data that you would like to download. type www.nseindia.com into the address bar in the Excel browser. Click Go, the page loads. You will notice that there are many yellow arrows on the page. These arrows point to each table on the page. The nseindia.com page has a lot of tables. Some web pages might just have one arrow, to grab the whole page. Click on a yellow arrow to select that table. Once you select the table(s), the yellow arrow(s) turn to green checkmarks. When you click the Import button, the Import Data dialog is displayed. By default, the data will be imported at the current cell pointer location.

Auto Refresh Feature

Move the cell pointer so that it is selecting one of the cells inside the imported data range. And Now go to
Data->Import External Data->Data Range Properties
There are many good settings here. In this case, I would suggest:

  • Refresh every 1 minute
  • Refresh data on file open
  • Insert entire rows for new data, clear unused cells
  • Fill down Formulas in columns adjacent to Excel data

With these settings, your Excel Sheet will automatically update the data every 1 minute from the web .

Its one among the kids stuff…….. Be a good kid!!!!
Rajandran R Founder of Marketcalls and Co-Founder Algomojo. Full-Time Derivative Trader. Expert in Designing Trading Systems (Amibroker, Ninjatrader, Metatrader, Python, Pinescript). Trading the markets since 2006. Mentoring Traders on Trading System Designing, Market Profile, Orderflow and Trade Automation.

Merge Indices & Bhavcopy text files into One text…

Use the link given to access the Excel VBA that will merge different EOD Indices files to the main Bhavcopy file. This is a...
rajib
36 sec read

VBA Macro to Download Bhavcopy

Here is a initiative from me to automate the NSE EOD data in ASCII format using simple VBA Scipts in MS Excel. The following...
Rajandran R
1 min read

TA Lib Excel Addon installation in Ms Office 2003…

Here is a simple video that explains how to install TA Lib Excel Addon installation in Ms Office 2003.Ta-Lib is a free tools to...
Rajandran R
27 sec read

24 Replies to “Simple Financial SpreadSheets – Kids Stuff”

  1. good artcle. but i cannot download the nseindia page. i am using office 2000. do ypu need to upgrade?.naren309@gmail.com

  2. one of the best updates in your blog… you have shared something which is going to ease life of many.. keep sharing ways and methods you use.

  3. Rajendra,Thanks once again. Few queries…Can we import data data from multiple sources into one single spreadsheet? Also can you suggest any online resources to enhance this knowledge.

  4. How does one import data for 2-3 stocks please.I got the nse page but how to get a specific stocks data and then from there into amibroker?Thanks in advance

  5. hi this is good,if we give 1 minute refresh.old data delet and new data there.how to save old data in spreedsheet?

  6. Rajandran,
    You are genius as always.But very few people share it with others & ur one of them.I’m still not succeeded in this exercise.No values coming into cells.It will be too much asking for u but what r the next steps.

    Amirishali

  7. Dear Market Calls,
    I am looking out for someone to help me set up EXCEL Programming to fetch live intraday nifty (open, high, low, close) 1 minute and 5 minute

    Do you know anyone who can help me?

Leave a Reply to Mustafa Cancel reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More