Set alerts for stocks with different formula respectively

I have specific trading strategy for each stock,which means different stocks have different buy and sell conditions.
How can I set alert to buy and sell conditions for all atocks ?

As always, there are many possible solutions, but one of the easiest would be incorporating all your buy/sell conditions for the stocks that you are interested in (using Switch() statement) into one AFL and running this code via Automatic Analysis as a Scan or Exploration every n hours/minutes/seconds (using Auto-Repeat) to generate alerts or any other types of notifications.

https://www.amibroker.com/guide/keyword/switch.html
http://www.amibroker.org/userkb/2011/04/22/using-iif-if-and-switch-functions/
https://www.amibroker.com/guide/h_newanalysis.html

Thank you!
It seems to work! All I want to do is exactly to run one afl to monitor all different stocks’ buy and sell conditions. Will try it asap, thank you!

1 Like