
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
Hi,
I've resolved all the compilation errors but find the EA's OnTick (simplified to testOffline.mq4 as attached) cannot be triggered on offline chart (generating by PeriodConvertor). It doesn't have problem with normal M1 chart though. So I wonder what's wrong?
There are no incoming ticks on the offline chart.
Try OnTimer instead of OnTick
See example of EA worked on offline chart refreshed from PeriodConverter
There are no incoming ticks on the offline chart.
Try OnTimer instead of OnTick
See example of EA worked on offline chart refreshed from PeriodConverter
OK, got the offline chart's tick now. But does it mean that EA can be triggered at every 1 second only the fastest? (since EventSetTimer() can set up to unit of seconds only).
If so, this is a degrade in the new mql4 and I wonder why.
Degrade? Why?
experts have never worked on offline charts
Can you get the Documentation for FileOpenHistory() updated please . . .
. . there is no mention of the other flags.
Try to update your Help please
Try to update your Help please
Degrade? Why?
experts have never worked on offline charts
Please don't joke. I have been trading with experts on offline chart for a year. Latest version I used (before being forced upgrade to 600) was build 509.
Please don't joke. I have been trading with experts on offline chart for a year. Latest version I used (before being forced upgrade to 600) was build 509.
Isn't with a hack, not supported by Metaquotes ?
Since the Metaquotes have not revealed the structure of hst files to public (they keep it for their own purposes), then every use of the *.hst files is a hack.
Since the Metaquotes have not revealed the structure of hst files to public (they keep it for their own purposes), then every use of the *.hst files is a hack.
y do you say that ? who is behind the script PeriodConverter ?
hint : try find out the author of this article
Since the Metaquotes have not revealed the structure of hst files to public (they keep it for their own purposes), then every use of the *.hst files is a hack.
Historical File Format (HST Files)
The database header is the first
struct HistoryHeader
{
int version; // database version
char copyright[64]; // copyright info
char symbol[12]; // symbol name
int period; // symbol timeframe
int digits; // the amount of digits after decimal point in the symbol
time_t timesign; // timesign of the database creation
time_t last_sync; // the last synchronization time
int unused[13]; // to be used in future
};
then goes the bars array (single-byte justification)
#pragma pack(push,1)
//---- standard representation of the quote in the database
struct RateInfo
{
time_t ctm; // current time in seconds
double open;
double low;
double high;
double close;
double vol;
};
#pragma pack(pop)