custom indicator input value problem

 
Hi
Have custom indicator on chart and if i want to change the input email alert from false to true it goes back to false

Please assist
 
  1. Your post makes no sense. If mechanical translation you must use simple language.
  2. Don't look at a level, look at a change of level
    static bool isSignal=false;
    bool wasSignal = isSignal;
    isSignal = ...;
    if(isSignal && !wasSignal) NewSignal();

Reason: