- Making a Custom Indicator that draws trend lines according to MACD histogram bars
- Histogram on chart window
- How do you draw vertical lines in between candles?
On MT4 you can use Offline Charts for displaying OHLC data of other symbols and assets.
On MT5 you can use the Custom Symbols for the equivalent purpose.
On MT4 you can use Offline Charts for displaying OHLC data of other symbols and assets.
On MT5 you can use the Custom Symbols for the equivalent purpose.
Did I not just say that the exact purpose of Offline Charts is to display OHLC data from other symbols?
Us the FileOpenHistory() function to produce the Offline Charts. Study the "PeriodConverter.mq4" file for more details and do a search on the site as well. The following thread should also help ...
Forum on trading, automated trading systems and testing trading strategies
.hst file format . . . Old and New (Jan 2014)
Simon Gniadkowski, 2014.01.29 22:51
For clarity for myself, at least, and anyone else that has an interest . . .
.hst file format valid as of MT4 Build 509
The database header first . . . total 148 bytes
int version; // database version - 400 4 bytes string copyright[64]; // copyright info 64 bytes string symbol[12]; // symbol name 12 bytes int period; // symbol timeframe 4 bytes int digits; // the amount of digits after decimal point 4 bytes datetime timesign; // timesign of the database creation 4 bytes datetime last_sync; // the last synchronization time 4 bytes int unused[13]; // to be used in future 52 bytes
then the bars array (single-byte justification) . . . total 44 bytes
datetime ctm; // bar start time 4 bytes double open; // open price 8 bytes double low; // lowest price 8 bytes double high; // highest price 8 bytes double close; // close price 8 bytes double volume; // tick count 8 bytes
.hst file format valid as of MT4 574 and laterThe database header is the same . . . total 148 bytes
int version; // database version - 401 4 bytes string copyright[64]; // copyright info 64 bytes string symbol[12]; // symbol name 12 bytes int period; // symbol timeframe 4 bytes int digits; // the amount of digits after decimal point 4 bytes datetime timesign; // timesign of the database creation 4 bytes datetime last_sync; // the last synchronization time 4 bytes int unused[13]; // to be used in future 52 bytes
then the bars array (single-byte justification) . . . total 60 bytes
datetime ctm; // bar start time 8 bytes double open; // open price 8 bytes double high; // highest price 8 bytes double low; // lowest price 8 bytes double close; // close price 8 bytes long volume; // tick count 8 bytes
int spread; // spread 4 bytes long real_volume; // real volume 8 bytes
- docs.mql4.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use