Forex
Google

Go Back   Forex Trading > Metatrader Training > Metatrader 4 mql 4 - Development course > Questions
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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 Thread Tools Display Modes
  #1 (permalink)  
Old 11-17-2005, 08:52 AM
WRR WRR is offline
Junior Member
 
Join Date: Nov 2005
Posts: 28
WRR is on a distinguished road
File Directory Option for Scripts

Is there a way to get MT4 to create *.csv files in a different directory other than in Experts>Files or a subdirectory of it? If so, how does one code this?
WRR
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-17-2005, 11:07 AM
newdigital newdigital is offline
Administrator
 
Join Date: Sep 2005
Posts: 15,147
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
We have in download area some scripts and utilities to have csv files.
It is somewhere here
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-17-2005, 02:22 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow No

Quote:
Originally Posted by WRR
Is there a way to get MT4 to create *.csv files in a different directory other than in Experts>Files or a subdirectory of it? If so, how does one code this?
WRR
WRR,

When you use the MQL4 File functions (OpenFile,FileWrite etc)
There are only two paths used to save your files:

MetaTrader 4\tester\files
MetaTrader 4\experts\files

You may consider Windows APIs or DDE to save in different directory.
__________________
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
  #4 (permalink)  
Old 11-18-2005, 07:06 AM
WRR WRR is offline
Junior Member
 
Join Date: Nov 2005
Posts: 28
WRR is on a distinguished road
Quote:
Originally Posted by codersguru
WRR,

When you use the MQL4 File functions (OpenFile,FileWrite etc)
There are only two paths used to save your files:

MetaTrader 4\tester\files
MetaTrader 4\experts\files

You may consider Windows APIs or DDE to save in different directory.
codersguru,
thanks for getting back to me so quickly. Yes, the code I have now uses OpenFile, FileWrite, etc. and saves the file in

MetaTrader 4\experts\files\<mysubdirectoryname>\<myfilename>. csv.

I am only familiar with DDE with respect to the sample spreadsheet that comes with MT4. I am not familiar with API. Could you steer me in the right direction on this?

How does one go about making suggestions to MetaQuotes about such enhancements?

When a new build of MT4 is released, how does one find out what the changes are to that build?

Is there an online source that describes the improvements and fixes for each build?

Is this forum owned by MetaQuotes? If not, what is the relationship between this forum and MetaQuotes?

Cheers.

WRR
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-20-2005, 02:21 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Wink MT4 Files APIs & DDE.

WRR,

I've made two programs:

1- DDE Example - built with visual basic.
MT4 Monitor - MT4 DDE in visual basic 6.

2- File replacement DLL - which you can save your file any place in your PC - built with Visual C++.
MT4 Files Functions Replacement.

Please download them and tell me what do you think.
__________________
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
  #6 (permalink)  
Old 11-20-2005, 10:35 PM
forexts's Avatar
forexts forexts is offline
Administrator
 
Join Date: Sep 2005
Posts: 290
forexts has disabled reputation
Quote:
Originally Posted by WRR

Is this forum owned by MetaQuotes? If not, what is the relationship between this forum and MetaQuotes?
www.forex-tsd.com is a community of trading system developers using metatrader as development plattform.

relationship = fans of the product.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up the email option in metatrader 4 Suresh Setup Questions 15 12-03-2007 09:03 AM
applying mt4 scripts symtec23 Metatrader 4 2 01-31-2006 02:44 PM
Breakeven option Fast_cris Expert Advisors - Metatrader 4 10 01-27-2006 08:48 PM
MetaTrader 4 Scripts secxces Metatrader 4 4 01-12-2006 08:50 AM


All times are GMT. The time now is 11:12 AM.