add object to alert

 

I have an alert set when xyz happens, I would also like an arrow to be painted on the graph every time this occurs. I have added another buffer but am a little confused how I add this also.

Any help much appreciated.

if (a[1]>=a[MaxIndex]) Alert("Price Exceed") + (Add line object ) ;
Reason: