Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Tools and utilities


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack (4) Thread Tools Display Modes
  #31 (permalink)  
Old 12-20-2005, 05:19 PM
Junior Member
 
Join Date: Dec 2005
Posts: 17
tworkman is on a distinguished road
Post

Also, I'm not an expert, but from the little I've learned about winsock, the listening functions are blocking functions, which means (I think) that the application (mt4) needs to be multi threaded. It would have to switch back and forth between listening for an incoming message, and doing its own work.

for what its worth...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #32 (permalink)  
Old 12-21-2005, 10:01 PM
Member
 
Join Date: Oct 2005
Location: Netherlands
Posts: 75
michal is on a distinguished road
Thumbs up

Quote:
Originally Posted by tworkman
Also, I'm not an expert, but from the little I've learned about winsock, the listening functions are blocking functions, which means (I think) that the application (mt4) needs to be multi threaded. It would have to switch back and forth between listening for an incoming message, and doing its own work.

for what its worth...
mt4 is already multi threaded. Every chart has its own thread. In order to use blocking winsock functions, one would like to attach a script to a chart with a continous loop. The script can then set/unset some global variables, which on the other hand can be used by any EA.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #33 (permalink)  
Old 12-28-2005, 02:30 AM
Junior Member
 
Join Date: Dec 2005
Posts: 17
tworkman is on a distinguished road
Quote:
Originally Posted by codersguru
tworkman,

It's a very good idea. (Executing an external program & Winsock direct calling).


But do you think it'll be good to put those function in the File Handling dll?

Isn’t it better to make another dll(s)?


I think executing an external program fit the File Handling dll, I'll add it and tell you.


About the Winsock, which functions you want to use?


I think you need these functions:


send
connect
listen
recv
I know it's the holiday season, but have you had a chance to look at these new features?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #34 (permalink)  
Old 01-06-2006, 12:43 PM
Junior Member
 
Join Date: Jan 2006
Posts: 24
feb2006 is on a distinguished road
Question MT4 into SQL server - how to transfer data?

Quote:
Originally Posted by Beluck
well done , but file functions (as well as many other) may be used directly from windows API dlls.

example of file copy function import:

#import "Kernel32.dll"
bool CopyFileA (string source_file, string destination_file, bool if_exist);

with DLLs you can do a lot of things, like SQL database access and so on.
Getting MT4 traderecords and quotes into a SQL database would be great.

But I don't know how to get this working.

Could someone explain step by step with code samples how to auto transfer these data into SQL server?

Last edited by feb2006; 01-06-2006 at 12:47 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #35 (permalink)  
Old 01-25-2006, 12:49 AM
Junior Member
 
Join Date: Dec 2005
Posts: 17
tworkman is on a distinguished road
codersguru,

Do you still think these socket-based functions are a good idea? I'd like to hear if you've looked into it at all? Please let me know if you've had no time, or just given up on the idea.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #36 (permalink)  
Old 01-25-2006, 01:58 AM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 986
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow

Quote:
Originally Posted by tworkman
codersguru,

Do you still think these socket-based functions are a good idea? I'd like to hear if you've looked into it at all? Please let me know if you've had no time, or just given up on the idea.

Thanks.
tworkman,

My problem is the time, I didn't give up the idea.
I'll inform you with the update as soon I get the time.
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #37 (permalink)  
Old 02-14-2006, 01:29 AM
Junior Member
 
Join Date: Dec 2005
Posts: 17
tworkman is on a distinguished road
Hi again,
I've been working with a friend to write a dll in c++ that does this netcomm stuff, but I can't get past the problem mentioned above: cannot call function functionname from dll ' dllname.dll'

If and when your time permits, would you be willing to take a look at the source and let me know if you can see what is wrong? We've actually tried compiling with two different c++ compilers, and still get the same error. We even took the sample source code that mt4 delivers, and get the same error when trying to call those functions. Seems like it must be a compile issue.

Please let me know.
Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #38 (permalink)  
Old 02-14-2006, 02:01 AM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 986
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow

Quote:
Originally Posted by tworkman
Hi again,
I've been working with a friend to write a dll in c++ that does this netcomm stuff, but I can't get past the problem mentioned above: cannot call function functionname from dll ' dllname.dll'

If and when your time permits, would you be willing to take a look at the source and let me know if you can see what is wrong? We've actually tried compiling with two different c++ compilers, and still get the same error. We even took the sample source code that mt4 delivers, and get the same error when trying to call those functions. Seems like it must be a compile issue.

Please let me know.
Thanks.
tworkman,

Did you try the source code of my dll? it's wrote in VC++.
Please try to compile my source code and tell me what you get.
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #39 (permalink)  
Old 02-14-2006, 07:19 AM
Member
 
Join Date: Oct 2005
Location: Netherlands
Posts: 75
michal is on a distinguished road
Quote:
Originally Posted by tworkman
We even took the sample source code that mt4 delivers, and get the same error when trying to call those functions. Seems like it must be a compile issue.

Please let me know.
Thanks.
This is not good. I have no problems with compiling it. Maybe too simple, but have you enabled calling DLL functions from MT4?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #40 (permalink)  
Old 02-14-2006, 02:11 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 986
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow

Quote:
Originally Posted by michal
This is not good. I have no problems with compiling it. Maybe too simple, but have you enabled calling DLL functions from MT4?
Sure, you have to enable "Allow DLL Import"
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
mtguru1.dll, Awesome

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/tools-utilities/386-mt4-files-functions-replacement.html
Posted By For Type Date
File functions - Part 1 This thread Refback 03-05-2008 02:29 PM
MT4±à³Ìѧϰ½Ì³Ì! - MT4ϵͳ½»Ò× - Íâ»ãÅ£È衔 ჼüÃâ·ÑÍâ»ãÐÐÇé½ÓÊÕ!·ÉºüÍâ»ã½Ó¿Ú! - Powered by Discuz! This thread Refback 01-11-2008 06:45 PM
Mql - Metatrader Development Course This thread Refback 07-19-2007 03:50 AM
File functions - Part 1 | www.metatrader.info This thread Refback 06-21-2007 07:21 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
File Functions intelligent_14 Questions 6 07-11-2006 09:37 PM
Unusual Functions intelligent_14 Questions 3 06-24-2006 12:20 AM
Appendix 2 - Trading functions codersguru Lessons 8 12-26-2005 02:46 PM
Lesson 7 - Functions codersguru Lessons 2 11-02-2005 04:32 PM


All times are GMT. The time now is 03:56 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.