Alert once question !

 

Hi,


Can anyone help me ?


This is part of the code:


nameObj="_"+ExtComplekt+"LineR_" + countGartley;
ObjectDelete(nameObj);
ObjectCreate(nameObj,OBJ_TREND,0,Time[aXABCD[X]],zz[aXABCD[X]],Time[aXABCD[B]],zz[aXABCD[B]]);
ObjectSet(nameObj,OBJPROP_COLOR,ColorLineR);
ObjectSet(nameObj,OBJPROP_STYLE,LineRStyle);
ObjectSet(nameObj,OBJPROP_WIDTH,LineRWidth);


How to write Alert once to it ?



if (LineR)
Alert( Symbol() + " " + Period () + " LineR on ");

PlaySound(AlertWav );



Artur

Reason: