Why does this not work? :( - page 3

 
whroeder1:

Then you broke something and can't see your broken code. There are no mind readers here and our crystal balls are cracked.

int BarsCount=0;

void OnTick()
{
  if(Bars>BarsCount)
  {    
   double K_line=iStochastic(NULL,0,20,3,5,2,0,MODE_MAIN,1);
   double D_line=iStochastic(NULL,0,20,3,5,2,0,MODE_SIGNAL,1);
   double pK_line=iStochastic(NULL,0,20,3,5,2,0,MODE_MAIN,2);
   double pD_line=iStochastic(NULL,0,20,3,5,2,0,MODE_MAIN,2);

        
      if(pD_line>80 && D_line<80)
      {    
       (SendNotification((string) Period() + Symbol() + "Sell"));
      }    
      if(pD_line<20 && D_line>20)
      {    
       (SendNotification((string) Period() + Symbol() + "Buy"));
      }       
   BarsCount=Bars;
  }      
}
Here's what I have at the moment...
 
WTM: Here's what I have at the moment...
  1. Add print statements so you know what's happening.
               question about decima of marketinfo() - MQL4 and MetaTrader 4 - MQL4 programming forum
  2. If the send doesn't work it's your configuration. Fix your options, we can't help you with that.
 
whroeder1:
  1. Add print statements so you know what's happening.
               question about decima of marketinfo() - MQL4 and MetaTrader 4 - MQL4 programming forum
  2. If the send doesn't work it's your configuration. Fix your options, we can't help you with that.

You mean add a print line after each 'step' of the indicator so I know where it's getting stuck?

My options are fine, I can get the test notifications

Reason: