Very basic coding help needed

 
 

Hi,

before Alert(....) I suggest to place if ( i == 0)

Because Alert work on the current bar only.

Igor

Reason: