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 Thread Tools Display Modes
  #1 (permalink)  
Old 03-19-2006, 06:55 AM
leutzuro's Avatar
leutzuro leutzuro is offline
Senior Member
 
Join Date: Jan 2006
Posts: 318
leutzuro is on a distinguished road
Please Script request

Hello coders
If is posible to code a script to save me all data what i have avaiable on my metatrader4
for example i open eur/usd 4H chart i put the script and to save me data for eur/usd on CSV format fille and to update evry 4H
If i put the script on 5M timeframe to be update evry 5 min and so on for all timeframe or pair where i put the script
Thanks Very much
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-19-2006, 09:09 AM
newdigital newdigital is offline
Administrator
 
Join Date: Sep 2005
Posts: 15,146
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
Quote:
Originally Posted by leutzuro
Hello coders
If is posible to code a script to save me all data what i have avaiable on my metatrader4
for example i open eur/usd 4H chart i put the script and to save me data for eur/usd on CSV format fille and to update evry 4H
If i put the script on 5M timeframe to be update evry 5 min and so on for all timeframe or pair where i put the script
Thanks Very much
I do not know it is fully identical to your idea or not but I found the folowing:
- OutQuotings.mq4 is script to download the data for selected period into the file;
- Currency_Loader.mq4 is EA.
Attached Files
File Type: mq4 OutQuotings.mq4 (2.5 KB, 40 views)
File Type: mq4 Currency_Loader.mq4 (28.3 KB, 40 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-19-2006, 03:23 PM
leutzuro's Avatar
leutzuro leutzuro is offline
Senior Member
 
Join Date: Jan 2006
Posts: 318
leutzuro is on a distinguished road
Quote:
Originally Posted by newdigital
I do not know it is fully identical to your idea or not but I found the folowing:
- OutQuotings.mq4 is script to download the data for selected period into the file;
- Currency_Loader.mq4 is EA.
OutQuotings.mq4 works but i dont know if make update evry hour or minutes, depends what timeframe i use
i will test when the market is open

Currency_Loader.mq4 i really dont know what doing because dont save any fille or somethink like this

any help?
thanks for sharing
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-19-2006, 03:51 PM
newdigital newdigital is offline
Administrator
 
Join Date: Sep 2005
Posts: 15,146
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
Quote:
Originally Posted by leutzuro
OutQuotings.mq4 works but i dont know if make update evry hour or minutes, depends what timeframe i use
i will test when the market is open

Currency_Loader.mq4 i really dont know what doing because dont save any fille or somethink like this

any help?
thanks for sharing
Currency_Loader.mq4 is EA. Not a script.
I open this EA in MetaEditor and it is written the following:

Code:
extern int  BarsMin=100; // Minimal number bars in history which might be loaded into files.
extern int MaxBarsInFile = 20000; // Max Bars for loading into file.
extern int FrequencyUpdate = 60; // this value identify frequency update for files in sec.
extern bool LoadM1  = false;       //Timeframes of securities which data will be loaded onto File if True       
extern bool LoadM5  = false;
extern bool LoadM15 = false;
extern bool LoadM30 = false;
extern bool LoadH1  = false;
extern bool LoadH4  = false;
extern bool LoadD1  = false;
extern bool LoadW1  = false;
extern bool LoadMN  = false;
extern bool AllowInfo = True;
extern bool AllowLogFile = True;
As I understand from the code this EA is storing the data to csv file and probably updating as well.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-19-2006, 04:19 PM
leutzuro's Avatar
leutzuro leutzuro is offline
Senior Member
 
Join Date: Jan 2006
Posts: 318
leutzuro is on a distinguished road
Quote:
Originally Posted by newdigital
Currency_Loader.mq4 is EA. Not a script.
I open this EA in MetaEditor and it is written the following:

Code:
extern int  BarsMin=100; // Minimal number bars in history which might be loaded into files.
extern int MaxBarsInFile = 20000; // Max Bars for loading into file.
extern int FrequencyUpdate = 60; // this value identify frequency update for files in sec.
extern bool LoadM1  = false;       //Timeframes of securities which data will be loaded onto File if True       
extern bool LoadM5  = false;
extern bool LoadM15 = false;
extern bool LoadM30 = false;
extern bool LoadH1  = false;
extern bool LoadH4  = false;
extern bool LoadD1  = false;
extern bool LoadW1  = false;
extern bool LoadMN  = false;
extern bool AllowInfo = True;
extern bool AllowLogFile = True;
As I understand from the code this EA is storing the data to csv file and probably updating as well.
i know is not a script but the EA dont save me any CSV fille
is very strange
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-19-2006, 04:24 PM
beerhunter's Avatar
beerhunter beerhunter is offline
Member
 
Join Date: Nov 2005
Posts: 43
beerhunter is on a distinguished road
If it's EA, you will have to wait until ticks comes (market opens tonight)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 03-19-2006, 04:44 PM
leutzuro's Avatar
leutzuro leutzuro is offline
Senior Member
 
Join Date: Jan 2006
Posts: 318
leutzuro is on a distinguished road
Quote:
Originally Posted by beerhunter
If it's EA, you will have to wait until ticks comes (market opens tonight)
thanks i will waithing to see what happen
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 03-20-2006, 08:01 AM
leutzuro's Avatar
leutzuro leutzuro is offline
Senior Member
 
Join Date: Jan 2006
Posts: 318
leutzuro is on a distinguished road
the Currency_Loader.mq4 EA do a great joob but on the first line of the CSV fille i have this "Date" "Time" "Open" "High" "Low" "Close" "Volume"
is posible to modify the EA to dont show me this
i need the CSV fille to start directly with the right line
2006.02.15,23:00,0.8547,0.8557,0.8545,0.8554,118

thanks and i hope you understand what i mean
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 03-20-2006, 08:28 AM
beerhunter's Avatar
beerhunter beerhunter is offline
Member
 
Join Date: Nov 2005
Posts: 43
beerhunter is on a distinguished road
Try to comment "FirstLine", see below:

PHP Code:
int init(){//1
x="\"";
x2="\\";
iDigits=MarketInfo(Symbol(),MODE_DIGITS);
FilePatch "Export_History"+x2+Symbol()+x2
FileNameM1 FilePatch+Symbol()+"_"+"M1"+".csv"
FileNameM5 FilePatch+Symbol()+"_"+"M5"+".csv"
FileNameM15 FilePatch+Symbol()+"_"+"M15"+".csv"
FileNameM30 FilePatch+Symbol()+"_"+"M30"+".csv"
FileNameH1 FilePatch+Symbol()+"_"+"H1"+".csv"
FileNameH4 FilePatch+Symbol()+"_"+"H4"+".csv"
FileNameD1 FilePatch+Symbol()+"_"+"D1"+".csv"
FileNameW1 FilePatch+Symbol()+"_"+"W1"+".csv"
FileNameMN FilePatch+Symbol()+"_"+"MN"+".csv"
//FirstLine =  ""+x+"Date"+x+" "+x+"Time"+x+" "+x+"Open"+x+" "+x+"High"+x+" "+x+"Low"+x+" "+x+"Close"+x+" "+x+"Volume"+x;
ct=CurTime()+61;
return(
0);} 
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
Script Programming Request MNFX Metatrader 4 2 02-13-2007 04:11 PM
T/p S/L ....script hitman Metatrader 4 5 12-14-2006 09:37 PM
Hedge position- script request SloForeX Martingale/Average Cost and Hedging 1 12-07-2006 03:29 PM
Script halfasleep General Discussion 4 12-01-2006 02:44 PM


All times are GMT. The time now is 10:49 AM.