Rajandran R Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, USDINR and 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. Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in)

Importing Google Intraday and EOD NSE Datafeed into Metatrader 4 Platform

4 min read

Had seen this interesting topic in both the traderji and mudraa forum and the credit goes to the creator Mr.RAMDAS DUMBRE(Mumbai).

As everyone knows that most of the MT4 platform is available in demo account at free of cost. So importing the google intraday datafeed into metatrader could be boon for market learners & small investors and for those who cant spend on hefty money on paid softwares and datafeeds to analyse the stock markets. This article explains how to import Google Intraday and EOD NSE datafeed into metatrader.
[wp_ad_camp_5]

 
Step 1: Metatrader 4 Installation

1)Download MT4 platform from any broker. To download XTB Trader (MT4 platform) visit here
2)Install fresh copy of MT4

3)After installation complete MT4 will start and ask you for login or ask for account creation.
Cancel all, we don’t need to create any account with any broker, we don’t require to login to any broker server. Close MT4 and go to step 2.

Step 2 : Copy Files

1)Download MT4 Stock Chart V10.Zip
2)Extract or Unzip the MT4 Stock Chart V10 files to local drive.
3)Now Distribute those files to the respective metatrader 4 folders as shown below

1)C:program filesexpertsindicatorsNSE Stock Chart V10.mq4
2)C:program files(Metarader 4)expertslibrarieReadWebCSV.mq4
3)C:program files(Metarader 4)expertslibrarieReadWebCSV.ex4
4)C:program files(Metarader 4)expertsincludeReadWebCSV.mqh
5)C:program files(Metarader 4)expertsfilessymbols.txt
6)C:program files(Metarader 4)historyNSEsymbols.raw
7)C:program files(Metarader 4)historyNSEsymgroups.raw
8)C:program files(Metarader 4)templatesdefault.tpl
9)C:program files(Metarader 4)expertsscriptsScript Create Symbol List V10.mq4

Step 3 : Login Setup

1)Start MT4, it will ask you to login, put 1234 in login and 1234 in Password field.
2)Put NSE in server field.
3)Click save account information and click Login button.
4)Login window will go and server connection status at right bottom corner of MT4 will be not connected.

Step 4 : How to enable all symbols

1)Now Go to View -> Market Watch or Ctrl+M
2)You will see Market watch window with symbols name, right click on any symbol and select Show All. This will show all symbol in market watch.
4)Go to MT4 tools – > options -> expert adviser, in this select allow DLL import. This is required for MT4 to access ReadWebCSV.mq4

Step 5 Opening new chart.

1)Right click on any symbol name and select Chart Window
2)One Blank chart will get Open. Click on Monthly Time frame MN
3)Now go View -> Navigator or Ctrl+N
4)Then go to Custom Indicator and select indicator NSE Stock Chart V10 Apply this indicator on Chart.
5)Now right click on the chart select->template->save template and save this template as default.tpl

Why we saved this template as default ?

Reason is. Whenever we open new chart , new chart will open with this template and chart timeframe will be Monthly Time frame which is MN and with indicator NSE Stock Chart V10

And indicator NSE Stock Chart V10 fetch data from google finance and creates 1min, 5min 15min, 30min, H1, D1 chart.
Now click on 5min timeframe button and you will see 5min chart, like this you can click D1 button and you will see daily chart.
Button W1 timeframe on toolbar is used to clear all timeframe charts.
If you want to clear all timeframe chart data click button W1 and this will delete data of this stock symbol

In short. MN creates charts of M1 to D1 Timeframe and W1 delete M1 to D1 Timeframe chart data.
Note. When you click W1 still you will able to see M5… M15 chart since data is already loaded in MT4 RAM and it will get clear when you restart MT4.
Now you can open any chart by right click on symbol name.
After 1 to 3 sec blank chart will open, and then you can study M1 to D1 chart by clicking M1 to D1 Timeframe buttons.

Note: M1 15day data featch from google takes 2 to 3 sec that’s why when new chart open, it takes some time to open. If you select only D1 and M15 timeframe which you can do in indicator propertythen chart will open fast. Only M1 takes little longer time.

Creating your own symbol list

For creating your own symbol list we will use script Script Create Symbol List V10.mq4
This script is located under Scripts on the Navigation bar

How to create your own symbol list.

Create one file name symbols.txt which content you script name. e.g below
And save this text file symbols.txt in folder C:program files(Metarader 4)expertsfiles

ACC
BHEL
GAIL
ITC
SIEMENS
SAIL
INFOSYSTCH

Then open any chart and apply script Script Create Symbol List V10 on chart and then restart MT4.
And follow step 4 to show all symbol.

Regarding “default.tpl” file for smooth operations

This is important file , when you open new chart it is open with this default template.By default chart with time frame MN will get open , you will not see any chart on MN timeframe.

And indicator NSE Stock Chart V10 is already attached to chart. then when you click timeframe button M5 or M15 you will see those charts.

default.tpl template with some moving average attached with the download file.

When you want your own template with your indicator, you have to create your own template and save it with some name, and you can just apply that template on chart when all timeframe chart get created.

When you want to create your own default template you have to create it on 5min chart or any other timeframe except MN and W1 timeframe.

Here is procedure to setup template

Step 1: Open 5min chart apply all indicator which chart settings as per your requirement.
Step2: Apply indicator NSE Stock Chart V10 on chart.
Step 3: save this template as default.tpl
Step4: go to folder templates and open file default.tpl with Notepad.
Step5: on 3rd line put period=43200 this 43200 is timeframe MN.
Step6: save this file and you are ready to open chart with your own default template.

Settings for 1min Datafeed

1min data featch is disabled, since it takes longer time to featch 1min data. you can see indicator property M1 it is set as false. if you want to see 1min chart just open template file default.tpl with notepad …go to bottom there you will something like below…make M1=1 and save defauilt template file.Then it will show you 1min chart. pl click W1 button to delete old data, then restart MT4.

Disable=0
M1=0
M5=1
M15=1
M30=1
H1=1
D1=1
BFPeriod_Y=2Y
BFPeriod_D=15d

How to this usefull tool Realtime

1)Download NSE Stock Chart V10 RealTime.mq4
2)Extract the file into C:program filesexpertsindicatorsNSE Stock Chart V10 RealTime.mq4

For using realtime, you have to login to some demo accout, then open any chart which is moving, Nifty chart will be good.
Open Nifty 5Min chart, put indicator NSE Stock Chart V10 RealTime
In indicator property under stock name put e.g ACC .
then go to MT4 – File -> Open Offline –> ACC 5Min chart, and you will see it changes realtime on every tick of Nifty.
In realtime on every tick of Nifty chart data is pull from google finance and chart is created. on ACC 5Min offline chart you can out any indicator and it will work.
if you want ACC 15Min chart, Then just change Nifty chart to M15 and open ACC M15 Offline chart.

Rajandran R Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, USDINR and 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. Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in)

Algomojo Button Trading Expert Advisor for Metatrader 4 Platform

Here is a video tutorial and button trading expert advisor code for MetaTrader 4 platform. You can use the expert advisor to send automated...
Rajandran R
4 min read

Metatrader 4 – Simple Expert Advisor for Algomojo Platform

f writing a simple expert advisor for Metatrader 4 to send automated orders from MT4 to Algomojo - Cloud-Based Trading Platform. This tutorial provides...
Rajandran R
1 min read

How to Send Orders from Metatrader 4 Expert Advisor…

This tutorial helps you to convert your Metatrader 4 expert advisor to send automated orders to the Algomojo Platform. Currently, Algomojo supported brokers are...
Rajandran R
2 min read

64 Replies to “Importing Google Intraday and EOD NSE Datafeed into Metatrader…”

  1. thanks for your work –
    I tried this, but the only symbol I got was 3IInfotech – the first one.
    All the other ones show up when I go to All symbols, and I click to activate them, but they dont show up in the Market watch,
    Any Ideas on this.
    Thanks again, and great work

  2. DEAR SIR , PLS TELL ME HOW CAN I RUN GOOGLE INTRADAY AND EOD IN AMIBROKER…..LIKE AS MT4…….?

  3. Great work sir. I think such a option and you provide this for all of us. How is your married life?

  4. Sir will it work during intraday in real time?
    I can see it on monday
    anyhow I want to know that before monday
    Thank you.
    I think that the above querries of your readers kapildev and theo has already been solved.

  5. Sir please refer my above querries.
    I found myself that it is not for intraday, it can download only available latest data from Google. But if Metatrader is refreshed like Metastock (while connected with ManshiRT), it can download the data from Google finance in real time. But i am not capable of creating one. It is possible for those who created such a great stuff now you provided.
    This new thing you provided is a great work. I checked the mq4 files.
    What a Mandai !!!!!!!!!!! Konnudanka !!!!!!!!!!!!!!
    As now we can use the Metatrader also Please provide the best intraday indicator collection for real time trading through Metatrader like provided for Amibroker and Metastock.

  6. I followed sincerely the above given procedure and I get all the options as provided by the Software developer Thanks to you all.

  7. i dunno hw 2 thank u 4 dis wonderful wrk!! being an amateur trader it ws a blessing as i didnt like spending money till i master d art of trading!! ur a wonderful person who is helpin ppl like me!! duaaen milegi!! just 1 prob – i didnt understd hw 2 use dis wrk 2 get RT data. though u hv posted it in last part of d section but i didnt get from dis point onwards –

    In indicator property under stock name put e.g ACC .
    then go to MT4 – File -> Open Offline –> ACC 5Min chart, and you will see it changes realtime on every tick of Nifty.
    In realtime on every tick of Nifty chart data is pull from google finance and chart is created. on ACC 5Min offline chart you can out any indicator and it will work.
    if you want ACC 15Min chart, Then just change Nifty chart to M15 and open ACC M15 Offline chart.

    do i hve 2 install another XTB demo platform & open 5min nse chart side by side wid dis platform (all signals) or do u mean 2 open NSE 5min chart in d same platform?? bt dt is nt possible as it will be on a diff server!!

    PLS HELP ME!!!
    THKS IN ADVANCE!!

  8. DEAR SIRJI……..MY MOBILE NUMBER IS – 08128010800 ……PLS GIVE ME YOUR MOBILE NUMBER……….

  9. Sir, I am new to computer. I had downloaded the xtb meta trader 4 platform. Kindly help how to feed the google intraday and nse end of the day data into the meta trader 4 platform. Kindly give me the cellno of ramdas dumbre(mumbai) for taking his help . My cell No 09421609167 and I will give my team view er 6 for configurating the google data into the meta trader 4. At present I paying Rs 500/- for nse futures data from real stock data and using amibroker trial version of the software. Can the data from nse futures of real stocks data be fed or plug into the meta trader 4. Kindly help if you can do so. thanking you laxminarayanan

  10. Hello sir,
    Would it be possible to feed data from EOD Yahoo Data to metatrader similar to EOD NSE?
    regards,
    George

  11. fantastic Boss kalakittinga………………………intra player like me …….verysuperbbbbbbbbbbbbbbb……keep it up

    Regards,
    chokalingam.R

  12. This is great work, Mr, Rajendran! And thank you for sharing it with us. It saved me a LOT of time…

    By the way, a couple of points regarding your code… There are a lot of people who are facing issues with getting the Symbols loaded from symbols.txt. When creating the symbols.raw file inside the MakeSymbolsFile function of your “Script Create Symbol List V10” script, it might help to push the FileFlush function AFTER the entire loop. This is the modification I made:
    …………………
    …………………
    FileWriteString(rawHandle, CharToStr(0x10), 1816);
    }
    FileFlush(rawHandle);

    And in your NSE Stock Chart indicator, there’s an error that kept popping up stating “invalid integer for parameter 2 of WindowHandle function”. This is because you passed hst_TF as a string in RefreshChartWindow function instead of passing it as an int. So, here’s the correction I made:

    void RefreshChartWindow(string SymbolName,string hst_TF)
    {
    int int_hst_TF = StrToInteger(hst_TF);
    int hwnd = WindowHandle(SymbolName, int_hst_TF);
    ………………………..
    ………………………..

    Hope my feedback helps. These are really cool scripts and I truly appreciate the time and effort you put into this. Thank you once again!!

  13. Dear sir i had done what you said about the set up the mt4 and nifty folder . but still i got problem for updating as i am using username 1234 and same as password and nse server but still i dont find any connectivity so that i can watch the RT or EOD charts . I had done several attempts but all in fails .
    pls help me out and give the solution.

    waiting for your reply

  14. avinash dont worrry pls try gci trading free software it will give nifty with 10 nse stocks.

  15. Hallo!
    Great blog, great tips indeed!
    Is it possible to use this tools with other markets, namely FTSE, DJ and the like, not just only Nifty ?
    Thanks in advance,
    You are great!
    Best Regards

    Albegam

    1. @albegam

      Its universal and applied to all stocks and indices for which google provides realtime feed. I had taken nifty as a example in the above post

      1. Thank you, Sir!

        I’ve tried to do something with other stocks (NSE works perfectly, very useful!), probably I made something wrong. Should I have to use an extension to the symbols maybe, each for every stocks (as in google symbols I mean, for instance F.MI for FIAT @ MIB stock) ? I created a folder for each stock, but It doesn’t retrieve updated data.
        Could you please show which passage I should modify of your excellent guide in order to do the same with other stocks? Thank you very much!

      2. Hello Rajandran,

        I love the script. I am trying to get data from US stocks like AAPL etc. It is not loading the chart.

        What am I doing wrong? As the instruction I have created a new symbols.txt list, import as the instructions.

        Please can you show me how to do it right, help much appreciated.
        Hoang

  16. hi sir i m following broco commodity chart now it just opening gold, aluminium and crude oil so i need extra mcx
    chat plzzzzzzzzzzzzzzzzz

  17. RESPECTED SIR ,
    I INSTAL THE SOFTWARE SO I AM UNABLE TO CONNCT THE SEVER.
    SO PLEASE HELP ME

  18. I had the same problem as theo, only the first simbol will show in market watch.
    I have found a workaround, it’s a little cumbersome but it works:

    1. copy the original “symbol.txt” file under the folder (MT4)/experts/files (the first symbol on the list is 3IINFOTECH) make sure MT4 is started
    2. run the script “Script Create Symbol List V10” on any chart
    3. stop and restart MT4, go to market watch, click the right mouse key and select -> show all
    4. only the first symbol in symbol.txt will be shown (original problem)
    5. now EDIT the file experts/files/symbol.txt by moving the first symbol TO THE BOTTOM OF THE FILE. Save the file.
    6. REPEAT STEP 2 TO 6 FOR ALL THE SYMBOLS

    In the end, all the symbols contained in symbol.txt should be correctly displayed and available for operations in the market pane.

    Regards

    http://www.tradewhileyougolf.com
    Resources for traders

  19. Rajendra and team,

    I would like to express my great thanks for the work you are doing. The inputs you have given on this site are extremely helpful. Please keep up the good work.

    Wish you good luck !!

    Cheers

  20. Can these scripts be edited to download stock data from US markets? If they can, how can I do it?

  21. Sir i have installed XTB Trader and did all procedure for the same.
    But its not working properly.
    i can just see 3iinfotect chart.
    i cant even see all scripts in Market Watch( After doing Show All).
    please help me to get realtime google data in Metatrader or Amibroker..
    Thanks…

  22. here is the solution to update EOD datas :
    1.open the stock chart
    2.press w1 to delete the file
    3.restarted mt4
    4.press m1
    5.now press any of the TF button and hurray! the chart got updated!

  23. here is the solution to update EOD datas :
    1.open the stock chart
    2.press w1 to delete the file
    3.restarted mt4
    4.press m1
    5.now press any of the TF button and hurray! the chart got updated!
    if it doesn’t pray!..

  24. Thank u very much for sharing
    can u suggest for hot import data of options like nifty 5900 put, call
    as well as MEC, NCDEX also like gold , copper , Cardamom

    Thank q very much

  25. Hi,

    Followed all steps but chart not working.getting error NSE Stock Chart V10: invalid handle -1 in FileSize,NSE Stock Chart V10 ABGSHIP,M5: invalid integer number as parameter 2 for ‘WindowHandle’ function

    Please assist me on same.

  26. Please provide me detail about real time chart or moving chart with updated data from google finance.

  27. I tried Create Symbol List.mq4, but the only symbol I got was 3IInfotech – the first one.
    All the other ones show up when I go to All symbols, and I click to activate them, but they dont show up in the Market watch,
    Please help me on this

  28. i installed it prefectly. But charts are not updating i am getting message waiting for update. Please help me out.

  29. Hi,

    I have installed the software as instructed and I could see the charts live but it only shows the live data at the point of opening the stock and thereafter it does not refreshes. ( I also find “No Connection” message at the bottom of the screen. Pls suggest as to what I should do to get live auto-refreshing (streaming ) quotes.

    Also let me know if there is any way I can use google or yahoo data into Metastock for live charts.

    Regards,
    Shiva
    [email protected]

  30. I have uninstalled and re-installed. Now i am getting NIFTY symbols, but charts are not being displayed.

  31. Hi everyone,

    I completed all the steps as per your step given .

    I also got all the stock name in symbol list .

    I have almost completed 90% of the procedure but not able to get the data to load . I was working on a Sunday Evening ( would that be a problem as NSE is closed) .

    But i m not getting any EOD data … it is just showing `WAITING FOR UPDATE `.

    I even downloaded the Realtime data plugin or ex4 file for metatrader . Even that is not updating the data .

    Hope some one guides us and resolve this problem.

    Thanks in advance
    Manoj

    [email protected]

  32. Installed correctly, list also gets dispalyed but chart is always showing waiting for updates

  33. HI, I tried your script to create the symbols.raw file, but when I reopen MT4, only the symbol is viewable. On Menu Symbol I can see all symbols that I imported, but if I click on any symbol, hide and show only first symbol. Can you help me to find the solution? I followed your istruction on MT4 build 890. Thanks. Luigi

      1. I tried with 401 build but I found the same problem. Can you give me please the number of build that it works? And then if you have an exe of this build, it will be a pleasure.

        Luigi

    1. Luigi Sir,

      Can you please help me to transfer EOD/RT data to MetaTrader4

      prakashdotmodak65atgmaildotcom

      Prakash Modak

  34. Hi Rajendra,
    Nice to see this information. but I think, the server NSE is no more active and giving the data.
    Metatrader is not able to do ping test to the server.
    Pls share, if you have come across any way to get the NSE Real time data to Meta trader. Thanks in advnce

  35. Sir I have downloaded MT5.

    How to feed data in it.

    It is showing european market data.

    Please guide.

  36. sir

    pls give me a nse data form beginning to 2018 for metastock or amibroker

    Your’s
    soumya sankar ray

  37. Rajendran Sirji ,mt4 nsemcx symbol open nahi ho raha hai ? Ye Kya downlode send kar ? Ye Kya Maza hai?

  38. This is outdated now can you please send me the updated version as google not supports the url calls to finance.

  39. Hi;
    I searched everywhere to get exactly what you had done… I mean i haven’t found anything else that could give the NSE on MT4… I know google had stopped their API, but I would GREATLY appreciate if you could make it work with this free api..

    https://www.alphavantage.co/

    This one is free and works the same as google..
    Do you think you could update your code to make it work with this alphavantage api?
    It would be the greatest gift!!
    Thanks 😉

  40. Hello sir, I failed to create my new symbols, I wanted to create a list from Indonesia’ stocks, can you please explain it more in a new post? Thank you sir

Leave a Reply

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