Alert Spam & Arrows

 

How can I send an alert from an indicator, but NOT spam tons of alerts every time it is processed? I want to send 1 alert per bar if appropriate to that bar, and not send any alerts for historical data when loading the indicator.

I'd also like to make the arrow symbols displayed to the chart larger.

 
GameMusic3:

How can I send an alert from an indicator, but NOT spam tons of alerts every time it is processed? I want to send 1 alert per bar if appropriate to that bar, and not send any alerts for historical data when loading the indicator.

I'd also like to make the arrow symbols displayed to the chart larger.

double alertTag;

if (rule for alert && alertTag!=Time[0]){
   Alert(...);
   alertTag=Time[0];
}
This will give you alert only once per bar.
 
Thanks. I tried that with Bars but guessed there must be another way. Is there any way to make arrows bigger?
 

I use the following code to allow non-standard size arrows:

SetIndexStyle( 0,DRAW_ARROW, EMPTY, indicator_width1, indicator_color1);

Note that all arrows on chart will be same size. When I want multiple size or colours for arrows on one chart, I use multiple buffers. e.g.

   SetIndexStyle( 0,DRAW_ARROW, EMPTY, indicator_width1, indicator_color1);

   SetIndexArrow( 0,35);

   SetIndexBuffer(0,V1Buff);

   SetIndexStyle( 1,DRAW_ARROW, EMPTY, indicator_width2, indicator_color2);

   SetIndexArrow( 1,35);

   SetIndexBuffer(1,V2Buff); 

If you want more than 8 size/colour combos, maybe use multiple indicators!
Reason: