I need to run a script during the last run of an ea in the strategy tester. The program should loop through start and during the last run of the start program the script should be executed. If I could predetermine the number of times the start program will run I could create a counter and execute the script based on the counter value. So I guess I need to know how to predetermine the number of times the start program will run.
- How do i calculate the number of times start will run in the strategy tester...
- Questions from Beginners MQL5 MT5 MetaTrader 5
- Frequency of program execution
Strategy tester is for EA only. Write the script code as a function in EA. Call this function when you want it.
phillw:
I need to run a script during the last run of an ea in the strategy tester. The program should loop through start and during the last run of the start program the script should be executed. If I could predetermine the number of times the start program will run I could create a counter and execute the script based on the counter value. So I guess I need to know how to predetermine the number of times the start program will run.
I need to run a script during the last run of an ea in the strategy tester. The program should loop through start and during the last run of the start program the script should be executed. If I could predetermine the number of times the start program will run I could create a counter and execute the script based on the counter value. So I guess I need to know how to predetermine the number of times the start program will run.
Do it in EA deinit ()
onewithzachy:
Do it in EA deinit ()
Thanks I will try that.
I need to run a script during the last run of an ea in the strategy tester.
There is no last run when using Genetic setting. It stops when it can't improve the results.
Write your file EACH time. The last write will be the last run by definition.
I wrote the script in the denit() and it did not run. Now I will try what WHRoeder suggested. Thanks.
phillw:
Running it over and over worked. Thanks...
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