TICKSTORY DATA bein overwritten by mt4?

General discussion about the Tickstory Lite software package.
Post Reply
roadrigoes
Posts: 9
Joined: Fri Apr 05, 2024 8:52 am

TICKSTORY DATA bein overwritten by mt4?

Post by roadrigoes »

From what you've described, the most likely explanation is not that Tickstory itself changed the data, but that MT4 replaced or rebuilt your M1 history when it started.

Here's what probably happened:

All previous history was removed , including hst and hxt tick . reloaded by tickstory latest version , mt4 version 1470

Before launching MT4
Tickstory exported:
tester\history\*.fxt
history\<server>\*.hst
Your M1 history contained about 150,000 bars.
You disconnected the Internet.
Tickstory launched MT4.
Immediately after MT4 started
Your M1 history now contained only about 30,000 bars.

That tells us MT4 itself altered the history during startup.

What could cause this?
1. MT4 rebuilt the HST files (most likely)

Modern MT4 builds rebuild history files if they believe:

the HST format is old,
the header doesn't match the current build,
the file version is different.

Instead of accepting the imported history, MT4 writes a new HST file.

The result is exactly what you saw:

150,000 bars
becomes
around 30,000 bars

without needing an Internet connection.

2. Wrong history folder

MT4 has several possible data locations.

For example:

Program Files\MT4\history

and

AppData\Roaming\MetaQuotes\Terminal\xxxxxxxx\history

If Tickstory exported to one folder but MT4 used another, MT4 may have generated a fresh history containing only about 30,000 bars.

This is very common.

3. Broker cache

Even without Internet, MT4 has cached history stored locally.

When MT4 starts it may decide

"My cached history is newer."

and overwrite the imported file.

4. Build conversion

Build 1470 can convert older HST files into its own format.

Sometimes that conversion loses large sections of history if the source format isn't exactly what it expects.

Less likely

I don't think disconnecting the Internet caused this.

If the Ethernet cable was already unplugged before MT4 started, then MT4 couldn't download new bars.

So the reduction from 150,000 to 30,000 bars almost certainly came from local processing, not from the broker.

How to find the exact cause

A few questions will narrow it down:

Where did you see the 150,000 bars?
In Tickstory?
In the history folder?
In MT4 History Center?
When did it become 30,000?
Before MT4 opened?
Immediately after MT4 opened?
After opening a chart?
After running Strategy Tester?
Which file changed?
EURUSD1.hst?
XAUUSD1.hst?
GBPUSD1.hst?
Did the actual file size change?
For example, did XAUUSD1.hst shrink from 18 MB to 4 MB?
I suspect one particular cause

Based on your previous messages, my strongest suspicion is this:

You exported 150,000 M1 bars from Tickstory.
MT4 Build 1470 started.
MT4 detected the HST file format didn't match what it expected.
It rebuilt the M1 HST from its own local cache.
The rebuilt cache only contained about 30,000 bars.
Every higher timeframe (M5, M15, H1, etc.) was then regenerated from this shortened M1 history.

That sequence matches your observation that all the higher timeframes also changed after the M1 history was reduced.
tickstory
Posts: 5308
Joined: Sun Jan 06, 2013 12:27 am

Re: TICKSTORY DATA bein overwritten by mt4?

Post by tickstory »

Hi Roadrigoes,

Your post looks like the transcript from AI conversation so it's hard to distil all the information you have provided.
From what I understand, the core issue is that your HST files have been replaced when you started MT4.

Could you please concisely tell us (ideally in your own words):

1) Have you disconnected from your broker terminal prior to exporting data. That is, go to File->Login to Trade Account in Metatrader and type in an incorrect password.
2) Did you correctly select the server you are using in Tickstory (File->Settings->MT4 Settings->Server)? To find the current server your MT4 terminal is using, you can see the default selected server (as shown in the screenshot).

Once you have checked the above, please export your data again from Tickstory.

Exceptionally, if you continue to see the HST data being cleared, after freshly exporting again, you can browse to File->Open Data Folder in Metatrader. Then browse to (servername)/history and select all the *.HST files, right-click->Properties and then make them read-only. That should force the files not to be re-written.

image.png
roadrigoes
Posts: 9
Joined: Fri Apr 05, 2024 8:52 am

Re: TICKSTORY DATA bein overwritten by mt4?

Post by roadrigoes »

I have done every thing you requested

After the tester starts , 1 minute data is bein thrown out and over written by mt4 tester.


It has have many times today after reinstalling data and hst files
tickstory
Posts: 5308
Joined: Sun Jan 06, 2013 12:27 am

Re: TICKSTORY DATA bein overwritten by mt4?

Post by tickstory »

Hi - Did you try to make the .HST files read-only as described? Was this working previously for you on any other MT4 terminal?

Thanks.
roadrigoes
Posts: 9
Joined: Fri Apr 05, 2024 8:52 am

Re: TICKSTORY DATA bein overwritten by mt4?

Post by roadrigoes »

Yes read only files were done

Last year almost june 2025 everything was working fine , i am using 1470 build and latest buil is 1473
tickstory
Posts: 5308
Joined: Sun Jan 06, 2013 12:27 am

Re: TICKSTORY DATA bein overwritten by mt4?

Post by tickstory »

Hi Roadrigoes,

We have tried to replicate your issue on both Build 1470 and 1473 and were not able to.

In order to assist you further, could you please go through the following steps and take screenshots of the results:

1) Go to Tickstory's File->Settings->MT4 Settings configuration and take a screenshot.
2) Select a symbol (say EURUSD) in Tickstory and Export to MT4. Show us your export settings. Select to export 3 months of data and proceed with your export. Note any log errors if you get any and take a screenshot.
3) Once the export is complete, in MT4 go to File->Open Data Folder and then browse to history/<servername> and take a screenshot.
4) Restart MT4 and then go to Tools->History Center, then browse to the symbol name (eg. EURUSD) and then drill down to the "Daily" node. Take a screenshot.

Thanks.
Post Reply