User Tools

Site Tools


metatrader_-_quick_primer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
metatrader_-_quick_primer [2020/04/29 06:36]
127.0.0.1 external edit
metatrader_-_quick_primer [2025/07/04 00:32] (current)
tickstory
Line 24: Line 24:
    
 MT4 stores historical data in its own custom format which have the extension *.HST and *.FXT. ​ These files are used by MT4 to display information on charts and is also used in the process of back-testing,​ respectively. ​ The historical data files contain important information for MT4 to evaluate a back-test such as: MT4 stores historical data in its own custom format which have the extension *.HST and *.FXT. ​ These files are used by MT4 to display information on charts and is also used in the process of back-testing,​ respectively. ​ The historical data files contain important information for MT4 to evaluate a back-test such as:
-oAccount ​details such as the leverage on the account, commissions,​ etc. + 
-oInstrument ​details such as the lot size, number of digits, tick value and so forth. +  * Account ​details such as the leverage on the account, commissions,​ etc. 
-oPrice ​information,​ including bid price & the bid/ask spread is for a particular instrument.+  * Instrument ​details such as the lot size, number of digits, tick value and so forth. 
 +  * Price information,​ including bid price & the bid/ask spread is for a particular instrument.
    
 All these details are embedded within the historical database which means when your EA requests information (such as the instrument lot size), it goes to this database to retrieve the details. ​ When MT4 builds its historical database, it sources all this information directly from the broker, but effectively only stores at most the 1-minute bar data of the ticks that are coming in for your broker. ​ When you perform a back-test, information stored in the database history (*.HST files) are used to produce an FXT data file for the purposes of back-testing. FXT files contain the detailed "​tick-by-tick"​ information that is used by the back-tester. ​ An FXT file is generated for each of the time-frames for which MT4 permits back-testing in - 1 minute, 5-minute, 15-minute, 30-minute, hourly, four hourly, daily and weekly. ​ The screen shot below shows the various back-testing periods that are supported by MT4. All these details are embedded within the historical database which means when your EA requests information (such as the instrument lot size), it goes to this database to retrieve the details. ​ When MT4 builds its historical database, it sources all this information directly from the broker, but effectively only stores at most the 1-minute bar data of the ticks that are coming in for your broker. ​ When you perform a back-test, information stored in the database history (*.HST files) are used to produce an FXT data file for the purposes of back-testing. FXT files contain the detailed "​tick-by-tick"​ information that is used by the back-tester. ​ An FXT file is generated for each of the time-frames for which MT4 permits back-testing in - 1 minute, 5-minute, 15-minute, 30-minute, hourly, four hourly, daily and weekly. ​ The screen shot below shows the various back-testing periods that are supported by MT4.
metatrader_-_quick_primer.txt · Last modified: 2025/07/04 00:32 by tickstory