Hi, just got started using MQL5 and wanted to test some indicators in an EA.
When I tried testing it using the "minute" time frames (1min, 5min, 30min), the indicator appears on the chart as the backtest runs.
However, when I shift it to the "hourly" or "daily" time frames, the strategy tester does not seem to display them at all, not even on the Data Window. Have attached screenshots below.
1) Does this mean the EA is not using any indicators?
2) I did not change anything in the code, why does it affect certain time frames?
3) There is also some red and grey lines outlining the prices only half-way, what are these? (Seen in "withoutIndicator_1H.jpg")
Hi,
does the indicator produce any errors in the experts tab ?
Hi, just got started using MQL5 and wanted to test some indicators in an EA.
When I tried testing it using the "minute" time frames (1min, 5min, 30min), the indicator appears on the chart as the backtest runs.
However, when I shift it to the "hourly" or "daily" time frames, the strategy tester does not seem to display them at all, not even on the Data Window. Have attached screenshots below.
1) Does this mean the EA is not using any indicators?
2) I did not change anything in the code, why does it affect certain time frames?
3) There is also some red and grey lines outlining the prices only half-way, what are these? (Seen in "withoutIndicator_1H.jpg")
No there were no errors, it starts off with "Initialization completed" and proceeds like any other back test just that I don''t see any indicators in the data window or the chart so I have no clue if the trades are based on the indicators or not.
I printed out the handler codes and any errors, attached is the log file.
the "*******0" in the log was printing the GetLastError() which returned 0, the rest are the return codes of the individual indicator handlers.
Ignore the trades it is making, it is because of my algorithm that it does not really work on 1H time frame.
Hi, just got started using MQL5 and wanted to test some indicators in an EA.
When I tried testing it using the "minute" time frames (1min, 5min, 30min), the indicator appears on the chart as the backtest runs.
However, when I shift it to the "hourly" or "daily" time frames, the strategy tester does not seem to display them at all, not even on the Data Window. Have attached screenshots below.
1) Does this mean the EA is not using any indicators?
2) I did not change anything in the code, why does it affect certain time frames?
3) There is also some red and grey lines outlining the prices only half-way, what are these? (Seen in "withoutIndicator_1H.jpg")
Try this:
When you attach the indicator to strategy tester-> click allow DLL imports
Also check in the indicators' code if ex the variables using specific period ex PERIOD_H1 instead of 0 or _Period

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi, just got started using MQL5 and wanted to test some indicators in an EA.
When I tried testing it using the "minute" time frames (1min, 5min, 30min), the indicator appears on the chart as the backtest runs.
However, when I shift it to the "hourly" or "daily" time frames, the strategy tester does not seem to display them at all, not even on the Data Window. Have attached screenshots below.
1) Does this mean the EA is not using any indicators?
2) I did not change anything in the code, why does it affect certain time frames?
3) There is also some red and grey lines outlining the prices only half-way, what are these? (Seen in "withoutIndicator_1H.jpg")