How do I get minimised windows from 'Execute and Wait' in Batch (.abb)?

I'm using python to grab OHLCV data which I am then calling periodically and importing via batch. In python, I am able to launch each of the scripts in a minimised window so it doesn't get in the way. However, lanching the batch file itself from 'Execute and Wait' gives me this window, which I'd also like minimised....

So the first question is how can I launch this from Execute and Wait in a minimized fashion? The file that I am launching is a .BAT file.

Once these data call files have all done their things and created their respective CSVs, I have them all imported using the ASCII importer.
Then, each hour, any pairs that I want to keep a closer eye on (for example hourly volume above a certain amount) I have a different .abb file which runs an exploration, exports those files to a watchlist and then I have another sequence of scripts which end any websockets of tickers no longer meeting the criteria, check the watchlist for new tickers that 2, then start the websockets up.
When I launch this file, it opens a new instance of Amibroker...


I've put the /min command in there which you can see, but I am not getting the second instance of amibroker running in a minimised fashion.
So, question 2, is how can I modify my 'Execute and Wait' step in the .abb to achieve a minimised window.

Thanks in advance.

Spandy

When I launch this file, it opens a new instance of Amibroker...

Obviously it does because that is precisely what you told it to do.
First, you must not use ExecuteAndWait to run another AmiBroker (broker.exe) from AmiBroker. The same way as you should not cut the branch you are sitting on. And AmiBroker does not have /min command line switch, so why do you expect it to work when it doesn't exist? You can't expect non-existing switches to work.

If you want to run AmIBroker itself from scheduler you should use WIndows Task Scheduler, not AmiBroker to run AmiBroker.

1 Like

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