Rajandran R Creator of OpenAlgo - OpenSource Algo Trading framework for Indian Traders. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Building Algo Platforms, Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in

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
[wp_ad_camp_5]

 

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 Creator of OpenAlgo - OpenSource Algo Trading framework for Indian Traders. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Building Algo Platforms, Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in

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
38 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…

TA-Lib is a technical analysis library for financial market data, widely used by traders and analysts to build trading strategies and make investment decisions....
Rajandran R
42 sec read

23 Replies to “Simple Financial SpreadSheets – Kids Stuff”

  1. 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.

  2. 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.

  3. Thanx alot sir for sharing such a wonderful knowledge… Its really being very very informative..

  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,Rajendran how to get the data for 2-3 stocks and then get this data into amibroker.Thanks,Sudhin

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

  7. 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

  8. 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

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