Forex



Go Back   Forex Trading > Downloads > Tools and utilities
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #32 (permalink)  
Old 12-21-2005, 10:01 PM
Senior Member
 
Join Date: Oct 2005
Location: Netherlands
Posts: 120
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #36 (permalink)  
Old 01-25-2006, 01:58 AM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 994
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #38 (permalink)  
Old 02-14-2006, 02:01 AM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 994
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #39 (permalink)  
Old 02-14-2006, 07:19 AM
Senior Member
 
Join Date: Oct 2005
Location: Netherlands
Posts: 120
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #40 (permalink)  
Old 02-14-2006, 02:11 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 994
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
awesome, metatrader kernel32.dll, MT4 FILES, mtguru1.dll, mtguru1.zip


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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:32 PM.



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