How to implement Alerts in my script correctly ...
Hi,
Im trying to implement alerts into my script but im not aware of howto. It should alert when two MA's crosses.
Most of the script is already working, its drawing the arrows at the right spot, but i also want to implement alerts when it crosses.
Right now my script is stressed out when i try to implement the alert because it iterates trough all of the bars and im getting bashed by soundalerts.
Can you guys give me some help implementing an alerts that only alerts on newly formed crosses not the existing crosses ...
This is my code so far:
Hi,
Im trying to implement alerts into my script but im not aware of howto. It should alert when two MA's crosses.
Most of the script is already working, its drawing the arrows at the right spot, but i also want to implement alerts when it crosses.
Right now my script is stressed out when i try to implement the alert because it iterates trough all of the bars and im getting bashed by soundalerts.
Can you guys give me some help implementing an alerts that only alerts on newly formed crosses not the existing crosses ...
This is my code so far: