can anyonehelp me to edit my indicator alert system

 
my indicator alert on every  dot, but i need modified it to only 1st opposite  dot .
 
this is code
Files:
 
Abdul Kader #:
this is code

Topics concerning MT4 and MQL4 have their own section.

In future please post in the correct section.

I have moved your topic to the MQL4 and Metatrader 4 section.

 
Abdul Kader #: this is code

Increase dk.