Forex
Google

Go Back   Forex Trading > Downloads > Tools and utilities
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 (3) Thread Tools Display Modes
  3 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 08-09-2006, 09:07 PM
RickD's Avatar
RickD RickD is offline
Member
 
Join Date: Jan 2006
Location: Eastern Europe
Posts: 52
RickD is on a distinguished road
MT4 Report v.3 & template file

Copy !Report_v3.mq4 to Experts\scripts directory.

report.zip contains report.htm template.
Copy report.htm to Templates directory.

There are 2 pathes in the body of !Report_v3.mq4:
Code:
#define template    "[ROOT]\\templates\\report.htm"
#define report      "[ROOT]\\experts\\files\\[ACCOUNT_NUM]rep.htm"
template is a template file path.
report is an output file.

Automatically the script will replace [ROOT] and [ACCOUNT_NUM] sections by MT4 root path and account number.
Attached Files
File Type: mq4 !Report_v3.mq4 (23.3 KB, 175 views)
File Type: zip report.zip (1.5 KB, 175 views)

Last edited by RickD : 08-10-2006 at 02:43 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 08-09-2006, 09:16 PM
RickD's Avatar
RickD RickD is offline
Member
 
Join Date: Jan 2006
Location: Eastern Europe
Posts: 52
RickD is on a distinguished road
Traders can change:
1. Template and output pathes.
2. Compare function.
3. Validate function.

At present Compare function sorts all the orders by CloseTime.
Validate function is the filter of closed orders.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-10-2006, 08:31 PM
RickD's Avatar
RickD RickD is offline
Member
 
Join Date: Jan 2006
Location: Eastern Europe
Posts: 52
RickD is on a distinguished road
Report uses the following Win API functions:

Code:
#import "shell32.dll"
  int ShellExecuteA(int hWnd, int lpVerb, string lpFile, int lpParameters, string lpDirectory, int nCmdShow);

#import "kernel32.dll"
  int GetModuleFileNameA(int hModule, int& buf[], int len);

  int _lcreat(string path, int attr);
  int _lopen(string path, int mode);
  int _lclose(int hFile);  
  int _llseek(int hFile, int offset, int origin);   
  int _lread(int hFile, int buf[], int len);
  int _lwrite(int hFile, string buf, int len);

#import
Allow DLL imports checkbox should be switched on.
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

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/tools-utilities/3220-mt4-report-v-3-template-file.html
Posted By For Type Date
Detailed Statement in MT4 This thread Refback 02-09-2008 12:30 AM
Detailed Statement in MT4 This thread Refback 07-10-2007 02:47 AM
Detailed Statement in MT4 @ Forex Factory This thread Refback 06-23-2007 03:23 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
SPLIT in report afernandes Expert Advisors - Metatrader 4 2 02-20-2007 12:22 PM


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