Single Tester Cache
Info
The Single Tester Cache is a Library for MetaTrader 5 that this library allows you to read/write tst files - mt5-tester single pass format. Some variants of use, 2019.
Usage
This tool is typically used for enhancing chart analysis and decision making.
Platform
This Library works exclusively on MetaTrader 5 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL5/Libraries folder via File ? Open Data Folder in MetaTrader 5.
How to Install and Use Single Tester Cache
1. Storage: Place library files in the MQL/Libraries directory to ensure they are accessible to your projects.
2. Implementation: Include the library in your code using the #import directive, ensuring you match the exact function names and parameters.
3. Compilation: Ensure the library is present in the directory before you compile your main EA or script, as the compiler links them during this phase.
4. Management: Keep libraries organized in sub-folders if you manage many custom functions to maintain a clean project structure.
Frequently Asked Questions
Q: What is a library file used for? A: Libraries store reusable code modules, allowing you to centralize common logic used by multiple EAs or indicators.
Q: Is a library executable? A: No, libraries are non-executable files containing functions; they must be imported into an EA, indicator, or script to function.
Q: Can I update a library while the platform is running? A: You should compile your EA or script after updating a library to ensure the latest code changes are integrated.
What this tool does
This library allows you to read/write tst files - MT5-Tester single pass format.
Typical Use Case
This Library excels in automated trading and technical analysis on MetaTrader 5.
Compatible Platform & Setup
This Library works on MetaTrader 5. Place the file in the MQL5/Libraries folder and restart the terminal.
Description & Settings
Related: Tester Benchmark - another powerful library for MetaTrader 5 traders.
This library allows you to read/write tst files - MT5-Tester single pass format.
Some variants of use
, 2019.10.04 07:18 pm.
Also recommended: Singleton - creational design pattern - similar library with strong performance on MetaTrader 5.
If they open the format of tst-files andplace the cache folder of the Tester in the sandbox
, it is possible to create Market products of a new type, which will be analysers/correctors of the Tester results.
For example, it will be possible to write a Market-combine that shows all single passes available in the cache.
You select the necessary ones with the mouse and it shows the combined statistics.
It cleans the cache from unnecessary passes.
Calculates the optimal portfolio with appropriate weighting coefficients from the passes.
Shows the best trading intervals for each pass.
Offers its own interactive visualisation of statistics, including filters.
Calculates the optimal MM.
For each hedge position in history shows OrderOpenPriceBest (the best opening price during the lifetime of the position), OrderClosePriceBest (similar), OrderOpenPriceLength (how long the price was not worse than OrderOpenPrice during the lifetime of the position), OrderClosePriceLength (similar), OrderProfitBest (the highest possible profit of a similar position during the lifetime of the original position).
Shows the efficiency of each hedge position.
Calculates the result when latency is enabled.
Calculates the result at different settings (whether they slide, etc.) and commissions.
Shows the result of the TS on a different tick history.
...
You don't need to launch the Tester to implement each item.
All this can be done now, if you put the cache folder into the sandbox via mklink. You only need tst-format.
Whoever feels the strength in himself should probably start writing such a product. I would gladly join the team of its developers and purchase it. The niche is completely empty.
If cache-folder is not sandboxed, there may be an increased chance that similar products will appear outside the MQ ecosystem, as they will be written in other languages.
Examples.
This script corrals real account trading history into tst format. It is imported into the Tester as follows.
It turns out something like this.
DLL-solutions cannot be placed in KB, so below is the source code of another script, which is not included in KB delivery.
This script will automatically pick up the data of the last single pass and output its data, including a balance/equity graph.
Acknowledgements.
Thanks to the developers for creating the Tester caches and helping me to unpack its formats.
You may also like: Making and Saving Graphic Charts from the MT5 Strategy Tester - excellent alternative for library users on MetaTrader 5.
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.