• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 2:47pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 2:47pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Export to Excel in Real Time 27 replies

Roffild's Library - Library for MQL5 (MetaTrader) with support 10 replies

Exporting data from Metatrader into Excel in real time 32 replies

[Excel] How to store time with real-time data? 0 replies

Boost Library Import Into Metatrader (MT4) Script File 1 reply

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 11
Attachments: Export to Excel in Real Time - library for MetaTrader 4
Exit Attachments
Tags: Export to Excel in Real Time - library for MetaTrader 4
Cancel

Export to Excel in Real Time - library for MetaTrader 4

  • Last Post
  •  
  • Page 1 2
  • Page 1 2
  •  
  • Post #1
  • Quote
  • First Post: May 3, 2015 11:45am May 3, 2015 11:45am
  •  Fabio69
  • | Joined Sep 2010 | Status: Member | 67 Posts
On the old Mt4 build I used the script and libraries attached in order to export data from MT4 to excel (see attachments).

Now in mql5 I put:
ExcelExportLib under MQL4\Libraries and
ExcelexportTest under Script

It does not work anymore.

Can somebody help me ?

Thanks
Fabio
Attached File(s)
File Type: ex4 ExcelExportLib.ex4   6 KB | 654 downloads
File Type: mq4 ExcelExportTest.mq4   1 KB | 780 downloads
  • Post #2
  • Quote
  • May 3, 2015 12:41pm May 3, 2015 12:41pm
  •  sangmane
  • Joined Apr 2009 | Status: MT4 Programmer | 758 Posts
Tt was coded for MT4. Did it work on MT5?
 
 
  • Post #3
  • Quote
  • May 3, 2015 1:17pm May 3, 2015 1:17pm
  •  Fabio69
  • | Joined Sep 2010 | Status: Member | 67 Posts
Hi sangname
indeed it worked on MT4.
Can you help me to let it work on MT5?

Thx
 
 
  • Post #4
  • Quote
  • May 3, 2015 1:27pm May 3, 2015 1:27pm
  •  sangmane
  • Joined Apr 2009 | Status: MT4 Programmer | 758 Posts
let me try
 
 
  • Post #5
  • Quote
  • May 3, 2015 3:05pm May 3, 2015 3:05pm
  •  sangmane
  • Joined Apr 2009 | Status: MT4 Programmer | 758 Posts
Excel library for MT5 (export only)
Attached File(s)
File Type: ex5 sangmaneExcelLib.ex5   6 KB | 528 downloads
File Type: mq5 sangmaneExcelTest.mq5   < 1 KB | 573 downloads
 
 
  • Post #6
  • Quote
  • May 3, 2015 5:29pm May 3, 2015 5:29pm
  •  Fabio69
  • | Joined Sep 2010 | Status: Member | 67 Posts
Hi Sangmane,
I thank you very much, but this is mql5. I would like to have it for MT4 build 600 + (i.e.the build where mql5 was inserted).
May be I can include the files you sent me also on Mt4 build 600+?

Thx again
 
 
  • Post #7
  • Quote
  • May 3, 2015 7:49pm May 3, 2015 7:49pm
  •  sangmane
  • Joined Apr 2009 | Status: MT4 Programmer | 758 Posts
Go to http://www.forexfactory.com/showthread.php?t=400606
I posted Excel Export for MT4.
 
 
  • Post #8
  • Quote
  • May 4, 2015 3:35am May 4, 2015 3:35am
  •  Fabio69
  • | Joined Sep 2010 | Status: Member | 67 Posts
Hi sangmane,
first of all I want to thank you for your time.
I downloaded the ExcelExportLib and the ExcelExportTest for the new buil. Unfortunately it does not work: error : ExcelInit failed !!!!

Krgrds
Fabio
 
 
  • Post #9
  • Quote
  • May 5, 2015 10:28am May 5, 2015 10:28am
  •  Fabio69
  • | Joined Sep 2010 | Status: Member | 67 Posts
Hi sangmane
any idea why it does not work?

Cheers
Fabio
 
 
  • Post #10
  • Quote
  • May 5, 2015 12:20pm May 5, 2015 12:20pm
  •  sangmane
  • Joined Apr 2009 | Status: MT4 Programmer | 758 Posts
I reattached the files here.
1. Place ExcelExportTest.mq4 to Scripts folder
2. Place ExcelExportLib.ex4 to Libraries folder
3. Restart MT4
4. Make sure Excel is open, sheet name = Sheet1
5. Run ExcelExportTest script

What is your Excel language?
Attached File(s)
File Type: mq4 ExcelExportTest.mq4   1 KB | 878 downloads
File Type: ex4 ExcelExportLib.ex4   6 KB | 817 downloads
 
 
  • Post #11
  • Quote
  • May 5, 2015 12:35pm May 5, 2015 12:35pm
  •  Fabio69
  • | Joined Sep 2010 | Status: Member | 67 Posts
Hi sangmane
thanks a lot it WORKS

It should be very nice if you can make the ExcelLib also to read from Excel into MT4.

Can you try it ?

My best regards
Fabio
 
 
  • Post #12
  • Quote
  • May 5, 2015 1:00pm May 5, 2015 1:00pm
  •  sangmane
  • Joined Apr 2009 | Status: MT4 Programmer | 758 Posts
You're welcome

I'll make an Excel Lib for importing Excel into MT4 if I see there is sufficient demand for it
 
 
  • Post #13
  • Quote
  • May 5, 2015 5:32pm May 5, 2015 5:32pm
  •  Fabio69
  • | Joined Sep 2010 | Status: Member | 67 Posts
Hi sangmane,
may I contact you via private mail?
I want to talk about a project I have in mind

Cheers
Fabio
 
 
  • Post #14
  • Quote
  • May 6, 2015 3:26am May 6, 2015 3:26am
  •  sangmane
  • Joined Apr 2009 | Status: MT4 Programmer | 758 Posts
Quoting Fabio69
Disliked
Hi sangmane, may I contact you via private mail? I want to talk about a project I have in mind Cheers Fabio
Ignored
Fabio, you can hire me at Elance.com
 
 
  • Post #15
  • Quote
  • May 6, 2015 11:42am May 6, 2015 11:42am
  •  Fabio69
  • | Joined Sep 2010 | Status: Member | 67 Posts
I post a job on Elance ;-)

Let me know if you got it

Thx
Fabio
 
 
  • Post #16
  • Quote
  • May 6, 2015 11:56am May 6, 2015 11:56am
  •  sangmane
  • Joined Apr 2009 | Status: MT4 Programmer | 758 Posts
Quoting Fabio69
Disliked
I post a job on Elance ;-) Let me know if you got it Thx Fabio
Ignored
I got it. Thanks!
 
 
  • Post #17
  • Quote
  • Dec 20, 2017 4:10am Dec 20, 2017 4:10am
  •  friday13
  • Joined Aug 2015 | Status: Member | 85 Posts
Quoting sangmane
Disliked
You're welcome I'll make an Excel Lib for importing Excel into MT4 if I see there is sufficient demand for it
Ignored
Hey sangmane,
I would really like also to import from Excel to MT4.
I've been searching all around for ways to do that but I cannot find any good ones.
I even tried writing an ExcelRead function, using DdeClientTransaction with other flags, but it didn't work.

Could you point me to the right direction?

By the way, I changed your ExcelWrite function to fit multiple characters transmission, it otherwise sent only the first char from the string.

Inserted Code
int ExcelRead(string CellAddress, string &CellValue)
{
int iItem = DdeCreateStringHandleW(idInst, CellAddress, 0);
char CellValueChar[256];
int iRet = DdeClientTransaction(CellValueChar, 256, iConv, iItem, CF_TEXT, XTYP_REQUEST, 1000, 0);
CellValue = CharArrayToString(CellValueChar);
Print("New value is: "+CellValue);
DdeFreeStringHandle(idInst, iItem);
return (iRet);
}
Thunder OM Flex Secondary All Time Return: -18.2%
 
 
  • Post #18
  • Quote
  • Apr 11, 2018 12:06pm Apr 11, 2018 12:06pm
  •  kette
  • Joined Jan 2018 | Status: Member | 16,041 Posts
I have the problem with me is not with excel
Everything is activated
Attached Image (click to enlarge)
Click to Enlarge

Name: IMG_20180411_142444.jpg
Size: 331 KB
 
 
  • Post #19
  • Quote
  • Nov 17, 2018 1:58am Nov 17, 2018 1:58am
  •  elgendi
  • | Joined Nov 2018 | Status: Member | 12 Posts
Quoting sangmane
Disliked
I reattached the files here. 1. Place ExcelExportTest.mq4 to Scripts folder 2. Place ExcelExportLib.ex4 to Libraries folder 3. Restart MT4 4. Make sure Excel is open, sheet name = Sheet1 5. Run ExcelExportTest script What is your Excel language? {file} {file}
Ignored
Hello Sangmane,

I tried the script with MT4 ,the only output is I just have from Indonesia with love!

I just need to export the current chart OHLC to csv for some calculations.

Thanks

Ahmad
 
 
  • Post #20
  • Quote
  • May 16, 2020 3:37am May 16, 2020 3:37am
  •  iShiHara
  • | Joined Mar 2020 | Status: Member | 25 Posts
Hello, can you help me with this? I want my market scanner pro to be directed in my excel file that gives me the top 3 strong and weak currencies.
Attached Image(s) (click to enlarge)
Click to Enlarge

Name: CHFJPYm#H1.png
Size: 45 KB
Click to Enlarge

Name: USDJPYm#H1.png
Size: 43 KB
Attached File(s)
File Type: xlsx Currency_Rev2--5ebe28e2d57e7.xlsx   25 KB | 244 downloads
 
 
  • Platform Tech
  • /
  • Export to Excel in Real Time - library for MetaTrader 4
  • Reply to Thread
    • Page 1 2
    • Page 1 2
0 traders viewing now
  • More
Top of Page
  • Facebook
  • X
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • X

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023