MQL4 - automated forex trading   /  

Forum

History for Strategy Tester

Back to topics list To post a new topic, please log in or register

avatar
23
harooki2 2006.08.17 22:33 
How can I add history to the Strategy Tester?
Why do I see different lengths of history in the Strategy Tester, depending on when I log into it?
article

Transferring an Indicator Code into an Expert Advisor Code. General Structural Schemes of an Expert Advisor and Indicator Functions

This article dwells on the ways of transferring an indicator code into an Expert Advisor Code and on writing Expert Advisors with no calling to custom indicators, and with the whole program code for the calculation of necessary indicator values inside the Expert Advisor. This article gives a general scheme of Expert Advisor changing and the idea of building an indicator function based on a custom indicator. The article is intended for readers, already having experience of programming in MQL4 language.


avatar
364
Irtron 2006.08.18 04:31 
Usualy server supplies a fixed number of bars of history data. So the longer period of the data - the deeper history available. E.g. 1 minute bar history is about 2 weeks long, 5 munutes history is a few month long, etc.

Besides, MT doesn't load all history available automatically. You need to go through it by scrolling the chart backwards in time until all the data is downloaded..

Also the history can be truncated by MT. To keep it deep enough you need to set Tools -> Options -> Charts -> Max bars in history (as well as Max bars in chart) to a bigger value, e.g. 2147483647 (the maximum).

History can be added manually via Tools -> History Center -> Import or Add. The former accepts simple text format file.
Back to topics list  

To add comments, please log in or register