I cant see anything wrong with it so I'm gonna take a long shot.
My guess is, you are running MT4 on Vista or Windows7 and you are not aware of the UAC issues. Therfore you are not finding the file your program is creating.
If that is true, go to Program Files\MetaTrader 4\experts\files then click on, Compatibility Files.
SDC: My guess is, you are running MT4 on Vista or Windows7 and you are not aware of the UAC issues. Therfore you are not finding the file your program is creating.
Probably. Don't install the terminal in \program files* on Vista/Win7
Please read the whole thread
https://www.mql5.com/en/forum/138899/
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I write EA which save each tick. I don't know why function start() don't save ticks. Function start() should execute when new tick appear. Am I right? Please help. Where may be a problem?
int start()
{string strSymbol="EURUSD";
double bid =MarketInfo(strSymbol,MODE_BID);
double ask =MarketInfo(strSymbol,MODE_ASK);
double time =MarketInfo(strSymbol,MODE_TIME);
string strDate=TimeToStr(time,TIME_DATE);
string strTime=TimeToStr(time,TIME_SECONDS);
int FileHandle;
FileHandle=FileOpen("tick.txt",FILE_WRITE|FILE_READ|FILE_CSV,",");
FileSeek(FileHandle, 0, SEEK_END);
FileWrite(FileHandle,strDate,strTime,bid,ask);
//Print(bid,",",ask);
FileClose(FileHandle);
return(0);
return(0);
}