assistant for checking strategies on history data
Info
The assistant for checking strategies on history data is a Indicator for MetaTrader 4 that builds 600 and up include the control functions, but only in indicators. that is still helpful.
Usage
This tool is typically used for enhancing chart analysis and decision making.
Platform
This Indicator works exclusively on MetaTrader 4 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL4/Indicators folder via File ? Open Data Folder in MetaTrader 4.
How to Install and Use assistant for checking strategies on history data
1. Installation: Place your file in the MQL/Indicators folder via "Open Data Folder" and restart your terminal.
2. Loading: Find the indicator in the Navigator, drag it onto your chart, and configure the input parameters in the popup window.
3. Customization: Press Ctrl+I to open the indicator list, select your tool, and click "Properties" to change colors, levels, or visual styles.
4. Updating: Replace the old file in the Indicators folder with the new version and restart the platform to apply changes.
Frequently Asked Questions
Q: Why is my indicator not showing? A: Verify the file is in the MQL/Indicators folder, or try right-clicking the "Indicators" tree in the Navigator and clicking "Refresh."
Q: Do custom indicators slow down the platform? A: Too many complex indicators can impact performance; remove unused ones via the "Indicator List" (Ctrl+I).
Q: Can I use MT4 indicators on MT5? A: No, MQL4 and MQL5 are distinct languages; ensure the indicator is compiled specifically for your platform version.
What this tool does
builds 600 and up include the control functions, but only in indicators.
Typical Use Case
This Indicator excels in automated trading and technical analysis on MetaTrader 4.
Compatible Platform & Setup
This Indicator works on MetaTrader 4. Place the file in the MQL4/Indicators folder and restart the terminal.
Description & Settings
Related: Hamyar: Your Chart Analysis Assistant - another powerful indicator for MetaTrader 4 traders.
builds 600 and up include the control functions, but only in indicators. that is still helpful.
Also recommended: signalitics trend assistant - similar indicator with strong performance on MetaTrader 4.
the "tpehep" (trainer) was developed to help analyze the interesting strategies, and also to practice and gain experience in analyzing the signals on history data in the selected strategy. the maximum approximation to the market rules gives the opportunity for the novice to understand the logic behind the order triggering and strategy signal formation, and to find the suitable strategy.initially, an assistant was needed to highlight the decision-making places. the opening line of buy (blue, key "b") or sell (pink, key "s") and the close line fit this task the best. keys were chosen for convenience — the right hand moves the history and the left performs commands.
basic rules of operation:
opening and closing orders is only allowed when the candle is closing (close[bar0]) inside a vertical colored area bar0 (purple), and the order itself is opened or closed the moment a new candle opens (open[bar-1]). once the stoploss or takeprofit level is reached, the closure happens by the order price in the active area. stoploss or takeprofit can be trailed by the mouse, with the control of the minimal distance and freezing.
during the early stages of learning the active area can be shifted using the "<" and ">" keys, gradually approaching the right side. the offset of the history is performed in steps by pressing the "f12" key or the hot key, and the active zone (purple) remains at the selected location.
selection of a hot key instead of "f12": press the desired button — alert with the message "pressed wrong button ХХХ" will appear, in the settings in the line "key to shift the chart by 1 step" write the ХХХ. by default the "del" key on the numeric keypad is used.
the installation of the indicator is standard: open the chart of the currency pair, it is necessary to select the history, set the analyzed strategy according to the template and attach the tpehep indicator. store the setting by pressing the "Р" key (
r
ecord) to the template (eurusd.60.tpl). all is set. if the active area is not visible, press the left mouse button.
after plotting the chart will look like:
the further improvement of the assistant was in maintaining the open positions, various trader error control, and also the output of the final data, excel table and plotting the profitability chart in excel.
the strategy results are displayed in the balance table, and once the checking ends, by pressing the "Р" (
r
ecord) key, are written to the file "eurusd.60 2015.07.06-2015.07.06.xls" with the testing start and end dates in the <terminal_data>\mql4\files\ folder.
then consider a different strategy…
analysis of the triple screen strategies
for plotting on another timeframe, disable the order processing (trading=false). only the vertical lines as signal moments are left. the plotting results are written to the "eurusd.60 2015.07.06-2015.07.06.tpl" file by pressing the "Р" (
r
ecord) key. use this plotting template on a different timeframe and, by changing the set of indicators and using the template plotting, perform the final profitability testing with the order processing enabled (trading=true).
after testing the strategy, save the recorded files in the backup folder with the name:
test eurusd per stochastic 5 3 3 moving averages ema55
and so on. this allows to select the best option of the strategy setup. during the next testing, if the template names or the results match, the files are overwritten with the loss of the previous results. so be sure to back up!
You may also like: modified assistant for selecting the manual strategy - excellent alternative for indicator users on MetaTrader 4.
Source Code
#property link "https://robotfx.org"
#property version "1.01"
#property strict
#property indicator_chart_window
#property description "this code is educational. feel free to use, modify and upgrade as you wish. visit robotfx.org for professional trading tools"
#property description "this code is educational. feel free to use, modify and upgrade as you wish. visit robotfx.org for professional trading tools"
#property description "this code is educational. feel free to use, modify and upgrade as you wish. visit robotfx.org for professional trading tools"
#property description "this code is educational. feel free to use, modify and upgrade as you wish. visit robotfx.org for professional trading tools"
#property description "this code is educational. feel free to use, modify and upgrade as you wish. visit robotfx.org for professional trading tools"
#property description "this code is educational. feel free to use, modify and upgrade as you wish. visit robotfx.org for professional trading tools"
.......
⚠ 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.