Can anyone help me to code some function to act fallowing-
I have: A=0
When indicator hits point nr1: A=1
When indicator left this poinr nr1: A=1 (A still holds his value)
When indicator hits point nr2: A=0.

Thanks for any replays!