Hello,
I wrote the following simple EA:
The point of this EA is to collect tick data from different brokers in order to compare them to the large tick data files you can get from Dukascopy. I do this to find out how realistic the Dukascopy data actually is.
A week ago or so, I attached this EA to the EURUSD chart. It was running several days and produced a file "new.csv" with reasonable tick data. Then a removed the EA from the EURUSD chart and attached it to the USDJPY chart. Now the new file "new.csv" didn't contain only USDJPY data, but, obviously a mixture between EURUSD data and USDJPY data.
I don't believe this is correct, or if it is correct you are not running the code above . . .
You open the file using FILE_CSV|FILE_WRITE if there is a file existing it will be overwritten and not appended . . . from the documentation FileOpen()
If FILE_WRITE does not combine with FILE_READ, a zero-length file will be opened. If even the file containd some data, they will be deleted. If there is a need to add data to an existing file, it must be opened using combination of FILE_READ | FILE_WRITE.
Hello,
I wrote the following simple EA:
The point of this EA is to collect tick data from different brokers in order to compare them to the large tick data files you can get from Dukascopy. I do this to find out how realistic the Dukascopy data actually is.
A week ago or so, I attached this EA to the EURUSD chart. It was running several days and produced a file "new.csv" with reasonable tick data. Then a removed the EA from the EURUSD chart and attached it to the USDJPY chart. Now the new file "new.csv" didn't contain only USDJPY data, but, obviously a mixture between EURUSD data and USDJPY data. I removed and reattached the EA several times. I killed MetaTrader. I even rebooted my server. But now the situation is the following:
Whenever I start MetaTrader, the EA opens the file "new.csv" and writes EURUSD and USDJPY data into it. When I disable expert advisors, the file is opened, but nothing is written into it. I checked the EURUSD chart, the USDJPY chart and probably every other chart: No EAs are attached. When I right-click on the EURUSD or the USDJPY chart and select "Expert Advisors", "Remove" is greyed out.
Nevertheless, the EA must be running. It seems to have become some kind of zombie.
How can I stop it?
Tip Avoid to have one file for all Symbols if you wanna collect data
you have
CSV = FileOpen("new.csv", FILE_CSV|FILE_WRITE, ',');
all files named "new.csv"
if you had named it like
string newfile = Symbol()+"_new.csv" CSV = FileOpen(newfile, FILE_CSV|FILE_WRITE, ',');
then you will create for each symbol() separate file
How would you explain the phenomenon that you can observe in the following video?
>
How would you explain the phenomenon that you can observe in the following video?
...
This is what the log file looks like:
$ tail 20140127.log
I repeated this experiment many times. I rebooted my server several times. There is no (visible) EA attached to either EURUSD.H1 or USDJPY.H1 or to any other chart.
Yet, every time I start MetaTrader, the file new.csv is created. During trading times, EURUSD and USDJPY tick data will be written to it. Outside trading times, such as yesterday afternoon, nothing is written to it.
This is what the log file looks like:
$ tail 20140127.log
This is what the log file looks like:
$ tail 20140127.log
I repeated this experiment many times. I rebooted my server several times. There is no (visible) EA attached to either EURUSD.H1 or USDJPY.H1 or to any other chart.
Yet, every time I start MetaTrader, the file new.csv is created. During trading times, EURUSD and USDJPY tick data will be written to it. Outside trading times, such as yesterday afternoon, nothing is written to it.
He can see immediately which windows run EAs - by pressing Alt+W.
Thanks. That was the tip I needed.
But there are still a few things I don't understand or that I don't like:
(1) Why does MetaTrader open several chart windows of the same type (e.g. EURUSD.H1). Shouldn't there be exactly one chart for each combination of currency pair and period?
(2) If there is a good reason to open several chart windows per instrument-period pair (which I doubt), why does MetaTrader hide these windows in such a way that they can only be found with an insider key combination?
(3) My EA opens the file new.csv for writing, not for appending. How did several instances of it manage to write to this file?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I wrote the following simple EA:
The point of this EA is to collect tick data from different brokers in order to compare them to the large tick data files you can get from Dukascopy. I do this to find out how realistic the Dukascopy data actually is.
A week ago or so, I attached this EA to the EURUSD chart. It was running several days and produced a file "new.csv" with reasonable tick data. Then a removed the EA from the EURUSD chart and attached it to the USDJPY chart. Now the new file "new.csv" didn't contain only USDJPY data, but, obviously a mixture between EURUSD data and USDJPY data. I removed and reattached the EA several times. I killed MetaTrader. I even rebooted my server. But now the situation is the following:
Whenever I start MetaTrader, the EA opens the file "new.csv" and writes EURUSD and USDJPY data into it. When I disable expert advisors, the file is opened, but nothing is written into it. I checked the EURUSD chart, the USDJPY chart and probably every other chart: No EAs are attached. When I right-click on the EURUSD or the USDJPY chart and select "Expert Advisors", "Remove" is greyed out.
Nevertheless, the EA must be running. It seems to have become some kind of zombie.
How can I stop it?