Reading data from Dukascopy tick binary file
<p>I have downloaded the Dukascopy tick data and I have decompressing it with easylzma library. The original compressed binary file is EURUSD/2010/00/08/12h_ticks.bi5 (EURUSD/2010/ian/8/12h) After decompressing we get the following format:</p>

<pre><code>+-------------------------+--------+-------+
|           time          |  Bid   |   Ask |
+-------------------------+--------+-------+
000003CA 00022EC0 00022EB6 40CCCCCD 41180000
000004F5 00022EB6 00022EB1 4099999A 404CCCCD
</code></pre>

<p>(You can download original compressed file from:
<a href="https://docs.google.com/open?id=0B0PJ51qZTKX2QXJhdGRKNE9uRWs" rel="nofollow">EURUSD/2010/00/08/<strong>12h_ticks.bi5</strong></a>.
After decompressing it with lzma we get the file: 
<a href="https://docs.google.com/open?id=0B0PJ51qZTKX2eDd0MmM5R2NyR00" rel="nofollow"><strong>12h_ticks</strong></a>)</p>

<p>Reading the binary file:</p>

<pre><code>int ii1;
int ii2;
int ii3;
float ff1;
float ff2;
ifstream in("12h_ticks",ofstream::binary);
in.read((char*)(&amp;ii1), sizeof(int));
in.read((char*)(&amp;ii2), sizeof(int));
in.read((char*)(&amp;ii3), sizeof(int));
in.read((char*)(&amp;ff1), sizeof(float));
in.read((char*)(&amp;ff2), sizeof(float));
std::cout &lt;&lt; " ii1=" &lt;&lt; ii1 &lt;&lt; std::endl;
std::cout &lt;&lt; " ii2=" &lt;&lt; ii2 &lt;&lt; std::endl;
std::cout &lt;&lt; " ii3=" &lt;&lt; ii3 &lt;&lt; std::endl;
std::cout &lt;&lt; " ff1=" &lt;&lt; ff1 &lt;&lt; std::endl;
std::cout &lt;&lt; " ff2=" &lt;&lt; ff2 &lt;&lt; std::endl;
in.close();
</code></pre>

<p>I get the following result:</p>

<pre><code>ii1=-905773056
ii2=-1070726656
ii3=-1238498816
ff1=-4.29492e+08
ff2=8.70066e-42
</code></pre>

<p>What is wrong? I can't read data from binary file. Please help me.</p>
