MT4 Files Functions Replacement. - page 9

 
DooMGuarD:
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..

 
codersguru:
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

 

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

 

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

 

You should have dll file in the folder. If you have it so allow dll (read few posts above on this page).

 
newdigital:
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

 
Carlo:
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?

 
Linuxser:
See the pictures. Do you have the same settings?

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 ?

 
 
Reason: