i have problems with Alert
I have code:
private int alertId=0;
private int arrowId=0;
OnBarUpdate() {
...
if (something) {
DrawArrowLine("Arrow"+arrowId, ...other atributes...);
arrowId++;
Alert("Alert"+alertId, Priority.High, "message", "sound.wav", 0, Color.White, Color.Black);
alertId++;
}
...
}
now. when something is true, it will draw arrow and i hear the sound. Thats OK. But sometimes, atribut "something" is false and indicator will not draw the arrow in this case (thats ok), but it makes the sound anyway and thats not ok. I dont know why??
Could you help me please?
Thank you
Comment