Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
well it is for converting a hst to csv or something like that
the thing i was looking for is simple converting a day data into week or month
(in excel) as i have the data in excel
I'm tinkering around trying to figure out how to send 15 minute data to a file. Any help would be appreciated.
It compiles without errors. I put it in the Indicator folder and it's visible, but when I try to add it in MT4, it's not accepted - does not get added to the EURUSD chart.
int start()
{
int handle;
string tSymbol="EURUSD";
double rates_m15[][6];
ArrayCopyRates(rates_m15,tSymbol,PERIOD_M15);
handle=FileOpen("Out.csv",FILE_CSV|FILE_WRITE,',') ;
if (handle<1)
{
Print("File Out.CSV not found, the last error is ", GetLastError());
return(false);
}
else
{
FileWrite(handle,tSymbol,TimeToStr(rates_m15[0][0]),rates_m15[0][1],rates_m15[0][2],rates_m15[0][3],rates_m15[0,4]);
FileClose(handle);
Alert("Sent Data File");
}
}
I'm just taking a wild stab here, but I thought that MT4 could only handle single element arrays. I thought I read that somewhere.
Also FYI, the compiler is not bullet proof. It seems to compile even though there may be issues in the code, i.e. datetime variables accidently declared as int.
Try the Metaquotes (manufacturer's) forum for researching the big bugs.
I have 2 scripts that I wrote. the 1st one will write to the history, up to the datetime you can change. The 2nd will write to a CVS file. Hope it will help you
Eli
Hi, sorry for asking this, maybe I'm just not quite understand the problem. But why need additional script to write to CVS file when we already have SAVE AS feature from MT4 ? Thank you in advance
__________________ David Michael H
"Trader helps traders with sincerity, honesty and integrity"
Hi, sorry for asking this, maybe I'm just not quite understand the problem. But why need additional script to write to CVS file when we already have SAVE AS feature from MT4 ? Thank you in advance
CVS files is great way to see the data in Excel. Not always, u want to see only the OCLH values. I use this script to save the MA or MACD values and analyze them afterwards.
CVS files is great way to see the data in Excel. Not always, u want to see only the OCLH values. I use this script to save the MA or MACD values and analyze them afterwards.
Understand, thank you for the reply
__________________ David Michael H
"Trader helps traders with sincerity, honesty and integrity"
I'm a better VB6 than 'C' programmer, so while I'm re-going through the learning curve (haven't programmed in 'C' since the mid-80s when I worked on Unix), I'm interacting between MT4 & VB6. I'm programming in the MMTS system from the e-Book - which I can do easily in VB6 with the interaction from MT4. I can also use a number of visual metaphors such as scoring the 19 different setups identified by Monika.
I know that I can use the DDE connection between MT4 & VB6, but this lets me leverage the MT4 system.