(09-28-2020, 11:15 AM)C0101 Wrote: further more, could strategy scheduler be trigered by the completion of running exteral program?
Work flow: running exteral program - run strategy - running exteral program - run strategy until forever
Currently, the external program and strategy are run separately. If you know that your external program will take up to 10 minutes to run, then you can set the strategy to run 15 minutes after the external program runs using cron scheduling.
If your signals are time sensitive, then I recommend using the Alera API to tell Alera to run the strategy after your external program runs.
https://aleratrading.com/forum/showthread.php?tid=89
Once you enable the Alera API, you can add the following to your external program batch file (replace <port> with the Alera API port and <id> with your strategy id) in order to tell Alera to run the strategy
curl -X POST -d '' http://localhost:<port>/api/strategies/<id>?cmd=run
Note that you may need to tell the batch file to wait for your signal generation exe to complete before telling the Alera API to run your strategy.
See https://aleratrading.com/forum/showthread.php?tid=7
Also, if you are using Amibroker, see https://www.systematic-investors.com/sen...alera-apm/

