I have written a logic to change the ShapeCircle to ColorRed on Amibroker chart if there is a sell signal. I want to incorporate a sound alert when the ShapeCircle changes it's color. Can anyone please guide me how to achieve this? I have gone through Amibroker guide as well but unable to write the appropriate logic. Please help.
Here is the sell signal generator which changes shape color to red:
@sandeeppanja there's a big difference between plotting shapes on n past bars and triggering live alerts/notifications as they happen. You don't want to be alerted about every event which happened in the past, every time the code is executed. You can achieve your goal by using AlertIf() function or implement another solution - for example study my example code. You can modify it to suit your needs:
You can be alerted about some events (as they happen) by a PopUp window, spoken message, an email or in many other ways. If you just want a simple sound alert, you can use PlaySound():