Volumes dont match the volumes in the database file

 

Yea.I just opened a database file of EUR/USD, because i try to understand how MT4 compiles the raw data into candlesticks.The database was in M1 format for M1 candle O,H,L,C values, time,symbol and volume.

The first rows are:

<TICKER>,<DTYYYYMMDD>,<TIME>,<OPEN>,<HIGH>,<LOW>,<CLOSE>,<VOL>
EURUSD,20010102,230100,0.9507,0.9507,0.9507,0.9507,4
EURUSD,20010102,230200,0.9506,0.9506,0.9505,0.9505,4
EURUSD,20010102,230300,0.9505,0.9507,0.9505,0.9506,4
EURUSD,20010102,230400,0.9506,0.9506,0.9506,0.9506,4
EURUSD,20010102,230500,0.9506,0.9506,0.9506,0.9506,4
EURUSD,20010102,230600,0.9506,0.9506,0.9506,0.9506,4
EURUSD,20010102,230700,0.9505,0.9507,0.9505,0.9507,4
EURUSD,20010102,230800,0.9507,0.9507,0.9507,0.9507,4
EURUSD,20010102,230900,0.9507,0.9507,0.9507,0.9507,4
EURUSD,20010102,231000,0.9507,0.9507,0.9507,0.9507,4
EURUSD,20010102,231100,0.9507,0.9507,0.9506,0.9507,4
EURUSD,20010102,231200,0.9507,0.9507,0.9507,0.9507,4
EURUSD,20010102,231300,0.9507,0.9507,0.9507,0.9507,4
EURUSD,20010102,231400,0.9507,0.9507,0.9507,0.9507,4

...............................................................................................

The problem with this is obvious, the volume column has a constant value of 4 throughout the entire database, yet when i view the chart in MT4 it has variable volume (even on M1 chart)? How is this possible if this M1 database has a constant 4 value?

Oh well you could say that it calculates the candles based on 60 seconds of tick data, but the point is that ok that would be feasable if this were tick data but it isnt it is M1 candle data.So if we start our buildup from M1 then we may have variable volume on M5 to upwards, but on M1 we cant have since all our data is 4, yet when i load the M1 chart with this same data in MT4 it has variable volumes.

Can anyone explain to me how the heck does MT4 gets the volume of the M1 candle different even if all the data we got is 4?

 
Proximus:

Can anyone explain to me how the heck does MT4 gets the volume of the M1 candle different even if all the data we got is 4?

Look at the data that MT4 is using not at your "database file" . . . you can see the contents of the .hst files using the History Center (F2) select the symbol in question, select M11 and find the date you are interested in . . .
 
RaptorUK:
Look at the data that MT4 is using not at your "database file" . . . you can see the contents of the .hst files using the History Center (F2) select the symbol in question, select M11 and find the date you are interested in . . .


Yes i understand that in MT4 is different, and thats the problem.The original data file is in .txt, i import that to MT4 and then MT4 converts it to .hst of whatever.But the question is that how does the MT4 calculate the different volume, if all the information, from the original .txt file shows a permanent volume of 4.Does it generate false data?
 
Proximus: Does it generate false data?
  1. Are you looking at the data you imported or the current data comming from your broker?
  2. Did you check the volume box on the import screen?
 
Proximus:

Yes i understand that in MT4 is different, and thats the problem.The original data file is in .txt, i import that to MT4 and then MT4 converts it to .hst of whatever.But the question is that how does the MT4 calculate the different volume, if all the information, from the original .txt file shows a permanent volume of 4.Does it generate false data?
Nope, its a case of user error.
 
WHRoeder:
  1. Are you looking at the data you imported or the current data comming from your broker?
  2. Did you check the volume box on the import screen?

It is a simple database i found on the net.It is an M1 database only.And when i import the database to MT4 it reads it like an M1 database, but if i open an M1 chart with this new data, which btw covers all data, so i deleted all previous data for that pair,so this is a new data for it.I open the M1 chart, and the chart is looking normal, with volume ranging from 0-100 like a normal M1 chart, but the original database had only a permanent volume of 4? How is that possible, thats my question?
 
Proximus:
It is a simple database i found on the net.It is an M1 database only.And when i import the database to MT4 it reads it like an M1 database, but if i open an M1 chart with this new data, which btw covers all data, so i deleted all previous data for that pair,so this is a new data for it.I open the M1 chart, and the chart is looking normal, with volume ranging from 0-100 like a normal M1 chart, but the original database had only a permanent volume of 4? How is that possible, thats my question?
How did you remove the old data ?
 
RaptorUK:
How did you remove the old data ?


Deleted it from the history folder, or it can be also deleted from the history center, but why is that relevant?


I was clearly asking about the problems with the volume.

 
Proximus:

Deleted it from the history folder, or it can be also deleted from the history center, but why is that relevant?


I was clearly asking about the problems with the volume.

If you don't remove it and don't import the volume you may be left with a combination of old and new data. To get a clean import you should do the following:

  • disconnect from your Broker
  • close any charts for the symbol you are about to import
  • delete all .hst files for the symbol you are about to import (back them up first if you may need them later)
  • import your data with the volume box ticked (see below)
  • look at the imported data on a chart to verify it has imported
  • use period converter to create the timeframes above M1
  • reconnect to your Broker, bear in mind your Broker may overwrite some of the data you have just imported/created with period converter

Reason: