One alert is good and not the second

 

From this alert :

extern int kstoch=14;

extern int dstoch=3;

extern int ssstoch=3;

double Stoch;

double Stochsignal;

int start()

{

Stoch=iStochastic(NULL,0,kstoch,dstoch,ssstoch,MODE_SMA,0,MODE_MAIN,0);

Stochsignal=iStochastic(NULL,0,kstoch,dstoch,ssstoch,MODE_SMA,0,MODE_SIGNAL,0);

if(Stoch>85)

{

Alert ("Stochastiques > 85 - Surveiller Signaux de Vente - ",Symbol());

}

if(Stoch<15)

{

Alert ("Stochastiques < 15 - Surveiller Signaux Achat - ",Symbol());

}

}

return(0);

---------------------------------

I have made this :

extern int kstoch=14;

extern int dstoch=3;

extern int ssstoch=3;

double Stoch;

double StochSignal;

double H4;

double M1;

double MACD;

double MACDSignal;

int start()

{

Stoch=iStochastic(NULL,M1,kstoch,dstoch,ssstoch,MODE_SMA,0,MODE_MAIN,0);

StochSignal=iStochastic(NULL,0,kstoch,dstoch,ssstoch,MODE_SMA,0,MODE_SIGNAL,0);

MACD=iMACD(NULL,M1,12,26,9,PRICE_CLOSE,MODE_MAIN,0);

MACDSignal=iMACD(NULL,M1,12,26,9,PRICE_CLOSE,MODE_MAIN,0);

if(Stoch>StochSignal && MACD>MACDSignal)

{

Alert ("Condition d'Achat - ",Symbol());

}

if(Stoch<StochSignal && MACD<MACDSignal)

{

Alert ("Condition de vente - ",Symbol());

}

}

return(0);

-------------------

The first is good, but the second don't alarm.

Do you see why?

Thanks for help.

Reason: