Professional Documents
Culture Documents
Realtime Data From NOW, Odin, Tradetiger, Google, Yahoo To Amibroker, Fcharts, Qtstalker, Metastock
Realtime Data From NOW, Odin, Tradetiger, Google, Yahoo To Amibroker, Fcharts, Qtstalker, Metastock
13.
Run-time error '-2147024770 (8007007e) Automation error. The specified
module could not be found
24
14.
I am getting #N/A in RTNOW/RTNest after doing Link to Excel. 24
15.
I get error saying limit exceeded in RTNow/RTNest 24
16.
Amibroker hangs while closing/throws exception error
24
17.
I cannot open any other Excel sheet while RTxxx.xlsm is running. My
charts get messed up.
24
18.
RTNest/RTNow hangs while closing. I have to close it by Ctrl+Alt+Del and
end process. Some times I loose my data in Amibroker. 24
Preface
1. This utility was originally developed to feed real time quotes from NOW
(Neat on Web) to Amibroker and distributed it freely with source code. After
using it for some period, it was realised that with some further coding, it can
be used to feed real time quotes from NEST, ODIN, Trade Tiger, Google and
Yahoo to charting applications like Amibroker, Fcharts Qtstalker and
Metastock also. This utility was upgraded to various versions. and now it has
become stable.
2. The utility gives RT quotes in Ami from the time you click on- Start. It does
not give RT from beginning of the day. So start RT and then open backfill.
Copy data upto the time you logged in into Backfill. When backfills warns
you, save database and do backfill. Your data will be current.
3. You do not have to record any excel macro.
4. Since you are reading this, it means you have downloaded the zip file
containing the utility and extracted it. This help file is accompanied by
following files. Use the files appropriate for your setup.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
System Requirements
1. Minimum requirement is Excel 2007 32 bit and Windows XP or above.
2. Tested on Windows XP and Windows 2003 x64 Server, Windows 8 , Windows
7.
3. If you get N/A in RTNOW/Nest after Link to Excel - For those who
are using windows 7 and above, installing excel, Amibroker and
NEST(or NOW) in D: drive folders allows one to start programs as
normal user and get data feed with Josh utilities with out admin
privileges.
In normal installation, C:\Program Files folder is used. That needs
admin privileges to access. (Originally Posted by lvgandhi). You will
have to open Nest Trader as well as Excel as administrator. To open
them as administrator, Right/Click on these programs and then click
on Run as.
Alternately, click on Properties. In the Properties
dialog box, click the Compatibility tab. select the- Run This Program
As An Administrator check box, and then click OK. See below site for
details.
http://technet.microsoft.com/en-us/magazine/ff431742.aspx
http://www.snaphow.com/4543/make-programs-run-as-administrator-bydefault-in-windows-7
4. For NOW/Nest Trader Users - OS may be 64 bit but MSOffice must be 32
bit. 64 bit MS Office does not support RTD function as yet. It will not work
until Microsoft enables RTD.
Setup
1. There are two stages involved in getting real time charts with this utility.
First - Getting the realtime feed from Trading software or Google/Yahoo to
Excel.
Second - Getting the realtime feed from Excel to Charting software.
2. Files of type *.xlsm can be kept anywhere in a separate folder. However, I
recommend keeping them wherever your Trading Software/application
resides. Users of NOW should move them to C:\Program Files\NOW or
C:\Program Files (x86)\NOW depending upon your version of windows. Users
of Nest Trader should move them to C:\Program Files\Omnesys or C:\Program
Files (x86)\Omnesys depending upon your version of windows. Users of Trade
Tiger should move them to C:\Program Files\TradeTiger
3. Files of type *.format ( Nest3.format and RTG3.format ) should be moved to
'Your\Path\to\Amibroker\format folder' since Amibroker requires them there.
4. Open Excel. Click on the Office icon on top left
5. Click on Excel Options- Trust Center - Trusted Locations - Add New
Location and give the path of folder where your Trading Software resides.
Also give the path of folder where you kept the *.xlsm files. For example, if
you have kept the excel files on 'desktop\RTNOW' folder, then include that
folder in trusted loactions. This way, excel will open the .xlsm file with
macros enabled. Otherwise, you will have to enable macros every time.
Setup for AmiBroker Users1. Before trying anything in AmiBroker, create new database e.g.
C:\AmiBroker\RTdata.
2. Give database folder path to create database. Thereafter, do all the settings
as shown above. Those who want to combine EOD data should check against
-Allow mixed EOD/Intraday data in Intraday settings.
3. GoTO Tools Preferences-Do settings in preferences as shown below.
ODIN to Excel
1. Please note that ODIN ver 10.0.0.2 is minimum requirement.
Versions before that do not have capability of Open to Excel.
2. There are three stages for getting RT feed in Ami from ODIN.
1. Getting RT feed in Arbitrage.xls from ODIN.
2. Getting RT feed from Arbitrage.xls to RTOdin.xlsm
3. Getting RT feed from RTOdin.xlsm to AmiBroker.
1. Getting RT feed in Arbitrage.xls from ODIN.
3.
4.
5.
6.
15. If you installed RAM disk, then give Drive Letter in Cell B2 other
wise leave it blank.
16. Click on Start RT Data.
17. AmiBroker Should open automatically and you will see live charts
moving
18. Once you start getting data feed in AMIBroker, save the
arbitrage.xls in ODIN folder. Next time, open/load the same
arbitrage.xls file. Otherwise you will not get realtime feed.
13.We want Trading Symbol, Last Trade Time, Last Traded Price, Last
Traded Qty, Open interest in columns A, B, C, D, E respectively.
Therefore,
a. In Cell A7 type =[Snap.xls]Streaming_Stock_Watch!B9
b. In Cell B7 type =TEXT(NOW(),"HH:mm:ss")
c. In Cell C7 type =[Snap.xls]Streaming_Stock_Watch!E9
d. In Cell D7 type =[Snap.xls]Streaming_Stock_Watch!D9
e. In Cell E7 type =[Snap.xls]Streaming_Stock_Watch!V9
14.(actual cell content of Snap.xls will vary as how u save it - but most of the
case its same. and if u dont put Open Interest in your market watch, then
cell E7 in RTTiger.xlm will be skipped) do not interfere with its working.
15.In the excel sheet RTTiger, in the database path of Amibroker , use the
following Amibroker Databae Path = C:\Program Files
(X86)\Amibroker\RTDATA. If ur program files does not contains the (x86) part
u can safely omit that part, in that case it will be Amibroker Databae Path =
C:\Program Files \Amibroker\RTDATA. Here "RTDATA" is for example, you can
use any other meaningful name
16.Copy the entire row in four rows below. Check the format of the columns
once. Column B should have Time format and columns C, D, E should have
number format.
17. If you see the rates changing, you are done.
18.When all done, 1st open the Snap.xls (every time open new snap to excel file
or otherwise it will not work) and then open RTTiger.xlm in the
Sharekhan\Tradetiger folder. RTTiger.xlm will be linked with Snap.xls and
RTTiger.xlm will be active, that is it will show the live rate taken from
Sharekhan Trade Tiger.)
19.Please do it yourself before asking for help as this will help you to rectify any
problem you may face when something goes wrong. If you feel that the
installation is corrupt, then delete all the respective files and reinstall and
follow the procedure. This will help you to get streaming quotes from
TradeTiger to Amibroker via RTTiger excel files
3. Getting RT feed from RTTiger.xlsm to AmiBroker.
20. Change the database path in Cell B1 to Your\AMIBROKER
Database\folder\Path
21. If you installed RAM disk, then give Drive Letter in Cell B2 other
wise leave it blank.
22. Click on Start RT Data.
23. AmiBroker Should open automatically and you will see live charts
moving
24.Once you start getting data feed in AMIBroker, save the Snap.xls in
TradeTiger folder. Next time, open/load the same Snap.xls file. Otherwise you
will not get realtime feed.
Yahoo to Excel
1. This option is available in RTYahoo.xlsm. Yahoo gives realtime quotes for
^NSEI that is Nifty only. Rest of the quotes are 20 minutes delayed, useless
for intra-day trading. Hence, I use it to get realtime chart of Nifty only.
2. This utility was built with the help of Gummy-stuff.org. The url of the site and
url of Yahoo from where quotes are fetched is given in the sheet.
3. Open your browser and login into Yahoo. The utility will do rest of the work.
Yahoo does not give RT quotes. Login is done to ensure that Yahoo does not
block you from accessing their site.
4. Open Excel by clicking Start-Programs-Microsoft Office-Excel2007
5. A blank workbook opens with name book1. Ignore it and Open RTYahoo.xlsm
from within Excel. Change the database path to Your\AMIBROKER
Database\folder\Path
6. If you installed RAM disk, then give Drive Letter in Cell B2 other
wise leave it blank.
7. Click on Start RT Data.
8. AmiBroker Should open automatically and you will see live charts
moving
9. Click on Refil List and It will show the name of excel file.
10.Column settings as given in the image. They are self explanatory.
11.1st Data Row in our case is 7.
12. Click on Start. You can see one minute bars getting updated
live in FCharts.
Backfill.........
5. If Nest Plus has not started, following window will open. Login into Nest Plus.
6. Nest plus will start and intraday chart will be seen. If chart does not appear,
repeat previous step.
7. Click on the chart and select Data Table or press Ctrl+D.
8. Data window will open. This contains intraday data of last fifteen days. Click
on any row. Press Ctrl+A to select all rows.
11.Go to the Sheet1. Press Ctrl+V into cell A1 of Sheet1. If Coloumn B shows
###### instead of date, increase its width and you will see date time. You
are ready to backfill data.
12.See image below. Look at the Column B, Excel recognised date time and
right aligned it. If it is left aligned, there may be problem.
19.You can Change Scrip Name in RTNest while linking to Nest sheet so that it
matches with name in Data Downloader. I have given sample formulae in
RTNest for that. See all formulae.
20. Use simple find replace for scrips where name does not match.
2. The whole process will take about 10 seconds for each scrip. It can be used
for FnO scrips for upto 10 scrips and more if you do not get fatigued by
pressing Ctrl+P and Ctrl+D. For Cash scrips or for bulk backfill, you may use
Data Downloader by Joydeep that gives 10 days data from Google.
3. Note: If scrip name in NestPlus is different than your scrip name, you will
have to merge the two scrips in AmiBroker to integrate the data. For
example in my case Nifty future will be backfilled as NIFTYYMMMFUT. So
after running NOWBackfil I find a new scrip NIFTY12MAYFUT in the database.
I have to merge NIFTY with NIFTY12MAYFUT in AmiBroker. This can be done
from Symbol-Merge menu of AmiBroker. Target is NIFTY and mrge with
NIFTY12MATFUT. Overwrite Duplicate Quotes.
4. Working in Excel on other applications while realtime feed is running....
5. You will have to open separate instance of Excel from Start--Programs-MSOffice--Excel. do not open any file by double clicking on it.
4. You can link Nest sheet the symbol will be RELIANCE-EQ, use following
formula :
=IF(RIGHT(RTD!A13,3)="FUT",RTD!F13&"_F1",IF(RIGHT( RTD!A13,3)="-EQ",RTD!
F13&"",RTD!A13))
5. and now the symbol will exact match of NSE symbol i.e. RELIANCE,
6. after that using Joydeep Mitra DataDownloader,
format the intraday download as per nest column along with date i.e.
dd/MM/yyyy ,
7. Edit google intraday.txt. Add the scrips (symbol should be exact as per NSE
along with .NSE i.e. RELIANCE.NSE) ,
8. Download intraday data from ->INTRADAY->GOOGLE ,
9. Import all txt files in amibroker using import wizard. Save the format as
Google Intraday.
10.BINGO all scrips backfill done in seconds.
11.Next time use Google Intraday format and import ASCII.
18 Troubleshooting
1. I am not too good in computer related stuff, please help me.
You need not be good in computers to follow this. Follow all the instructions.
If you do not understand any instruction, ask me. Sorry, I cannot do spoon
feeding. Please help yourself first and thereafter I will help you.
2. I did everything as per instructions but I am not getting
charts. Please help.
What do you mean by that. I cannot help you with one like information.
Check whether you followed all the steps as given. Give me the exact step
where you are not getting desired results and ask specific question.
3. Backfill is not happening.
What do you mean by that. I cannot help you like that. Check whether you
followed all the steps as given and ask specific question. You do database
setting only once. Be sure that you give same database path to RT utility and
Backfill utility.
4. Microsoft visual basic Run -Time error '429' ActiveX
component can't create object"
Solution- This error occurs because of missing system files or registry
entries. See these sites for repairing
http://www.errorsupport.org/blog/visual+basic+runtime+error+429.html
http://windowserrorfixpro.com/runtime-error-429-fix-guides-to-repairruntime-error-429/
5. I did everything as per instructions but I am not getting data
from NOW/Nest to Excel.
This utility may not work on Windows 7 since there are some permission
issues on Windows7. If you get N/A in RTNOW/Nest after Link to Excel and
Paste in Windows7, nothing can be done.
6. In RTXXXX.xlsm the rates are changing. Symbols appear in
AMIBoker but I am not getting charts.
This in most cases occurs due to incorrect date setting. Date format should
be dd/mm/yyyy. Either correct date format of your PC in regional settings or
open RTG3.format file and change Date_DMY to Date_MDY in $Format line.
That file should be in AMIBroker\Format folder
7. AmiBroker does not open automatically when I click on
Start.
Your macros may not be enabled, enable it. When you open RTxxxx.xlsm,
excel asks you whether macros should be enabled. Also copy RTxxxx.xlsm in
to your Trading program folder and do Trust Center Settings.
8. When I click on start RT data, AmiBroker opens up, but blank
and no symbols in it. It gives me an error: formula file not
found or empty- no chart to display.
Copy RTG3.format and Nest3.format file into "formats" folder below
AmiBroker.
broker.newcharts This file is created by Amibroker in your database folder.
File containing references between chart layouts and formula files used. If
you delete it you will see "formula file empty or can not be found" in your
charts because reference between chart ID and formula is lost. You will NOT
however lose your formulas because formulas are separate. You will be able
to reinsert them into your charts.
9. I got a message from nest trader is that "scrip RTD attribute is
not licensed"
This means you are not allowed take live quotes. Contact your broker and
tell him to activate RTD feature for your account. Nothing can be done before
that.
10. Amibroker does not open correct database. Every time I
have to choose data folder where past data is
saved !!!!!!!!!!!!!!!
This means you have not given correct database path. Open database
settings of correct database and give the same path in RTxxxx.xlsm.
11. Run time error 76 path not found, when asked to debug,
following line is highlighted
Set a = fs.CreateTextFile(FileName, True) 'Here we create the file MyCSV.csv
You have to keep cell B2 empty if you have not installed RAM Disk. Otherwise
you are bound to get that error. If it is empty, then try to create folder RT
on C: drive manually. You can also give some path their to create temporary
file.
12. Run time error 1004 (If you work in another Excel book
while getting Real time Data Feed)
This error occurs when you open another spreadsheet from the same
instance. Do not open another spreadsheet from same instance or by
double-clicking on it.
If you want to work in another Excel book while getting Real time Data Feed;
Open Excel by clicking Start-Programs-Microsoft Office-Excel2007. Then Click
on Office Icon and open another spreadsheet from that instance.
13. Run-time error '-2147024770 (8007007e) Automation error.
The specified module could not be found
This error occurs when some DLLs in windows are unregistered. This is
solved by registering the DLL module in Windows.
Try
Windows
->
Run
command,
%\system32\scrrun.dll and press Enter.
type:
regsvr32
%windir