Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 750
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
You can create a text ini file from which the indicator and EA will read data and use it as parameters for setting the indicator. Then create a template with the EA and the indicator and manually or with a script to load this template on the chart.
We can simply draw the lines of the indicator in the Expert Advisor with graphical objects.
You can also invent something else.
You can ... or you can not bother and enter it manually or use MT5 where everything is possible :)
Can we run the tester from the EA (with EA settings) in visualization mode (one day of history), and then save the template from the chart on which the testing was performed, and apply it to the chart with the EA, and do this during initialization?
Is it possible to run the tester from the EA (with EA settings) in visualisation mode (one day history length) and then save the template from the chart on which the testing took place and apply it to the chart with the EA, and do this at initialisation?
The EA will unload.
The advisor will unload.
At the moment the tester is started?
At the moment the tester is started?
I don't understand the question at all. Do you run the tester from an EA? I don't know of such a thing.
I know how to run the Expert Advisor in the Strategy Tester. But to run a tester from an Expert Advisor is nonsense...
I don't understand the question at all. Do you run the tester from an EA? I don't know about that.
I know how to launch the Expert Advisor in the Strategy Tester. But it is nonsense to make a tester out of an Expert Advisor.
Well, there are articles on auto-optimization, for example, this one. I myself have not implemented this method, so I asked you, as an experienced programmer.
Well, there are articles about auto-optimization, for example, this one. I have not used this method myself, so I asked you, as an experienced programmer.
So I understood that you are talking about the built-in tester, which is run from the EA. And not about self-optimization inside the EA.
The self-optimization is not worth the effort - just for the display of indicator on the chart. It has a different purpose. And again, the results of self-optimization are not the drawing of indicator lines on the chart - not in the same vein at all.
Thanks for the tips, I understand correctly that
1) In MQL4, in practice nobody connects an indicator with another Expert Advisor that uses this indicator? They just run it in parallel with the same settings of indicator parameters?
2) MQL5 has a possibility of calling the indicator from an Expert Advisor
Thanks for the tips, I understand correctly that
1) In MQL4, in practice nobody connects an indicator with another Expert Advisor that uses this indicator? They just run it in parallel with the same settings of indicator parameters?
2) MQL5 has a possibility to call the indicator from an Expert Advisor
Thanks for the clarification )
So I understand that you are talking about the in-house tester running from within the EA. Not about self-optimization inside the EA.
The self-optimization is not the point - just for the display of indicator on the chart. It has a different purpose. And again, the results of self-optimization are not the drawing of indicator lines on the chart - not from the same vein.
No, the article is about full-fledged control of optimizer from the EA through ini file, and ini, I think, can be prescribed not only optimization, but also any settings, it seems they are saved after the last start of tester in any mode. Then (in the EA code, you can) save the template and copy it to another terminal (from what I understood it is recommended to use the terminal for work of the tester and the EA). And after this procedure to call the template, where everything will be.