Batch File + Scheduler

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...


Scheduler_1

The batch file is structured as follows.....

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.

What am I doing wrong ?

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

@Tomasz

Hello Tomasz,

First of all, thank you for the answer.

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???

In newest AmiBroker, you have #pragma sequence that allows to run sequences of actions from within single formula automatically.

https://forum.amibroker.com/search?q=pragma%20sequence

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.