Hello,
I found many posts here in the forum asking for solutions to close batch files (and the associated APX files) after they have finished.
That's exactly what I don't want. The batch file and the associated APX file should not be closed.
Here the batch files are executed correctly using the scheduler.
The settings in the scheduler are these...
Everything works fine. Unfortunately, the new batch file closes the previous batch file called via the scheduler and also the associated APX file. In the scheduler, the "Close Batch and Analysis Window" option is NOT ENABLED.
This is BY DESIGN as otherwise you would end up with thousands of Analysis windows that would eventually eat all computer resources and you would complain that the software is crashing.
If you want the results from Analysis to be persistent - EXPORT THEM TO FILE.
Scheduler and batch are meant to be clean and lean on resources.
For periodic reruns of explorations within open Analysis window there is OTHER TOOL (not scheduler). It is auto-repeat feature. This way you can keep Analysis open and run the exploration periodicially WITHOUT using scheduler. Read the documentation: https://www.amibroker.com/guide/h_newanalysis.html
I am well aware of the auto repeat function. I've also used it occasionally.
For my program flow, however, it is absolutely necessary that a backtest is carried out before the exploration is called. In CBT, values are calculated that are needed in exploration. Such as position sizes. In the exploration, for example with signals, the emails are sent. It's an hourly system.
An ideal flow would be .... Scan --> Backtest --> Explore .....
Scan --> Explore via the Auto Repeat function would be good. Just.....how do I get the backtest in between???