need level monitoring!!!!!!!!!!

 
 

Care to expand on that?

 
BarrowBoy:

Care to expand on that?


suposing I have a level 100 on an indicator which I want to monitor

if my expert gives a signal, I want it to check the indicator value at that time of signal

first case: if the indicator value is greater than 100, iw ant the expert to wait till the indicator value falls below 100

second case: if the indicator value is less than 100, iw ant the expert to wait for the indicator value to go above 100 and back to below 100 befor taking the trade.

I do hope u understand now.Any form of help would be apreciated. thanks

 
static bool isSignal=false; 
if(isSignal){ 
  if(indicatorValue<100 && indicatorValue.old >100){
     //take the trade
     isSignal=false;
  }
}

and set isSignal to true, when your experts gives a signal

Reason: