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
  #81 (permalink)  
Old 12-30-2007, 11:58 AM
Administrator
 
Join Date: Sep 2005
Posts: 15,981
Blog Entries: 68
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
And I updated this small thread dose it posible to creat any function of "mql code" posting in this forum? with more functions.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #82 (permalink)  
Old 12-31-2007, 04:10 AM
Member
 
Join Date: Jul 2007
Posts: 57
Ghamm is on a distinguished road
Quote:
Originally Posted by DooMGuarD View Post
hy all

how i make a delphi code for use in MQL4... like DLL access...

anbody have a sample?

regards

charles
You can't.. object pascal is a different animal. You can however make a DLL to do tons of stuff. I also have source to do most of the common indicators in Delphi, but you will need to give it your own bars of data..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #83 (permalink)  
Old 01-17-2008, 05:43 PM
Junior Member
 
Join Date: Dec 2007
Posts: 1
laurent68 is on a distinguished road
Quote:
Originally Posted by codersguru View Post
Hi folks,

A lot of people asked me and metaquotes forum about file handling functions.
I think MT4 have a lot of bugs in those functions.
1- They don't work in backtesting
2- They don't write outside "MetaTrader 4\experts\files" path.

Today I opened my Visual C++ and wrote a file handling dll for MT4, I hope you enjoy it, and its source code, and tell me your .

Setup:
1- Extract the "mtguru1.dll" to "MetaTrader 4\experts\libraries" path.
2- Extract "FilesDemo.mq4" to "MetaTrader 4\experts\indicators" path and compile it.
3- Extract "gFiles.mqh" to "MetaTrader 4\experts\include".
4- Load FilesDemo from your Indicators - don't forget to enbable "Allow DLL Import"
5- Enjoy.
hi

really great and usefull

but i have a problem if i write a long text in a file and a short one in the same file, few minutes after.

i find old end of the text in the final file

any idea ?

many thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #84 (permalink)  
Old 04-03-2008, 01:36 AM
Junior Member
 
Join Date: Nov 2007
Posts: 1
avid1 is on a distinguished road
How lunch a second terminal from a Expert Adivsor working in a first terminal

Your source code is amazing! However, it does not allow me achieving what I need to perform my trading strategy.

What I need to do is to lunch a second terminal from my expert advisor. However, if I use your code as follows:

int file = gFileOpen("C:\Metatrader 2\terminal.exe",READ);

Nothing happen, and no terminal is lunched. Could you help me with this?

I understand I could do this task with WINAPI OpenFile; however, I am not a programmer and do not know how to declare it in mq4 and afterwards use it.

Best regards,

Andres
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #85 (permalink)  
Old 04-25-2008, 05:54 AM
Junior Member
 
Join Date: Apr 2006
Posts: 24
Carlo is on a distinguished road
Automatic EA trading

Dear All,

I had one EA stored in the folder named "expert" just under MT4, and the required DLL is stored into the folder named "library".

This EA is for automatic trading.

After attach the EA to the chart, it show the error message at the bottom:

"Can not load ...DLL."

Is any expert can tell me where is the problem ?

Carlo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #86 (permalink)  
Old 04-25-2008, 06:09 AM
Administrator
 
Join Date: Sep 2005
Posts: 15,981
Blog Entries: 68
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
You should have dll file in the folder. If you have it so allow dll (read few posts above on this page).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #87 (permalink)  
Old 04-25-2008, 05:37 PM
Junior Member
 
Join Date: Apr 2006
Posts: 24
Carlo is on a distinguished road
Smile

Quote:
Originally Posted by newdigital View Post
You should have dll file in the folder. If you have it so allow dll (read few posts above on this page).

I checked the MT4 folder, where is the folder you are mention ?

i only find the sample/dll sample.

Sonebody told me to save it into the expert/library, but the MT$ show the error message that can not load ...dll !

thanks
Carlo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #88 (permalink)  
Old 04-25-2008, 11:02 PM
Linuxser's Avatar
Moderator
 
Join Date: May 2006
Location: Helliconia (Winter)
Posts: 2,511
Blog Entries: 8
Linuxser has disabled reputation
Quote:
Originally Posted by Carlo View Post
I checked the MT4 folder, where is the folder you are mention ?

i only find the sample/dll sample.

Sonebody told me to save it into the expert/library, but the MT$ show the error message that can not load ...dll !

thanks
Carlo
See the pictures. Do you have the same settings?

2008-04-25_195914.gif

2008-04-25_195953.gif
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #89 (permalink)  
Old 04-26-2008, 07:27 AM
Junior Member
 
Join Date: Apr 2006
Posts: 24
Carlo is on a distinguished road
Quote:
Originally Posted by Linuxser View Post
See the pictures. Do you have the same settings?

Attachment 60014

Attachment 60015

I was so tired to find where the problem is. I am not the expert as yours.
Really need some expert to help me.

As in the following attachment, I saved the dll in the folder .../expert/libraries

so, where is the problem ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #90 (permalink)  
Old 04-26-2008, 12:26 PM
Linuxser's Avatar
Moderator
 
Join Date: May 2006
Location: Helliconia (Winter)
Posts: 2,511
Blog Entries: 8
Linuxser has disabled reputation
Quote:
Originally Posted by Carlo View Post
I was so tired to find where the problem is. I am not the expert as yours.
Really need some expert to help me.

As in the following attachment, I saved the dll in the folder .../expert/libraries

so, where is the problem ?
Don´t you mind to attach the EA to see the code and if we can reproduce the error.

If you can´t attach the code look for some quote in the code like the following and post it.

Quote:
#include <3c_BB_Osc.mqh>
or some line ending with DLL like abcd.dll

Have you checked the name of the dll inside the indicator it`s exactly the same as the dll name?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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 On
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 01:29 PM
MT4±à³Ìѧϰ½Ì³Ì! - MT4ϵͳ½»Ò× - Íâ»ãÅ£È衔 ჼüÃâ·ÑÍâ»ãÐÐÇé½ÓÊÕ!·ÉºüÍâ»ã½Ó¿Ú! - Powered by Discuz! This thread Refback 01-11-2008 05:45 PM
Mql - Metatrader Development Course This thread Refback 07-19-2007 02:50 AM
File functions - Part 1 | www.metatrader.info This thread Refback 06-21-2007 06:21 PM

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


All times are GMT. The time now is 07:15 AM.



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