Hi All,
I have an indicator that had the Alert and Email function REM'd out. Thank you to Oksana17 for pointing out the code was there.
I took the REM off the code, saved it and recomplied it. Looking in the Journal I get the following error:
Mail: not enough space for 'Trade Alert!!'
Here is the Alert & Email code from the Indicator. Could someone please look at it and advise ?
Thanks... Mike G
++++++++++++++++++++++++++++
/*--------------*/
/* ALERT CODE */
/*--------------*/
if ((Alert_SMA_Filtered == false ||
(Alert_SMA_Filtered == true && OzFX_Regular[0] == Filter_SMA[0]))
&&
(Alert_RSI_Filtered == false ||
(Alert_RSI_Filtered == true && MathCeil(OzFX_AES[0]) == Filter_SMA[0])))
{
switch (Alert_Signal)
{
case 0:
if (OzFX_Regular[0] != 0 && bAlertSounded == false)
{
if (Popup_Alerts_On == true)
MessageBox("alert", "Trade Alert!!", MB_OK);
if (Audio_Alerts_On == true)
PlaySound("Alert.wav");
if (EMail_Alerts_On == true)
SendMail("Trade Alert!!", "alert");
bAlertSounded = true;
}
else bAlertSounded = false;
break;
case 1:
if (OzFX_Regular[0] != 0 && bAlertSounded == false)
{
if (Popup_Alerts_On == true)
MessageBox("alert", "Trade Alert!!", MB_OK);
if (Audio_Alerts_On == true)
PlaySound("Alert.wav");
if (EMail_Alerts_On == true)
SendMail("Trade Alert!!", "alert");
bAlertSounded = true;
}
else bAlertSounded = false;
break;
}
}
return(0);
}
I have an indicator that had the Alert and Email function REM'd out. Thank you to Oksana17 for pointing out the code was there.
I took the REM off the code, saved it and recomplied it. Looking in the Journal I get the following error:
Mail: not enough space for 'Trade Alert!!'
Here is the Alert & Email code from the Indicator. Could someone please look at it and advise ?
Thanks... Mike G
++++++++++++++++++++++++++++
/*--------------*/
/* ALERT CODE */
/*--------------*/
if ((Alert_SMA_Filtered == false ||
(Alert_SMA_Filtered == true && OzFX_Regular[0] == Filter_SMA[0]))
&&
(Alert_RSI_Filtered == false ||
(Alert_RSI_Filtered == true && MathCeil(OzFX_AES[0]) == Filter_SMA[0])))
{
switch (Alert_Signal)
{
case 0:
if (OzFX_Regular[0] != 0 && bAlertSounded == false)
{
if (Popup_Alerts_On == true)
MessageBox("alert", "Trade Alert!!", MB_OK);
if (Audio_Alerts_On == true)
PlaySound("Alert.wav");
if (EMail_Alerts_On == true)
SendMail("Trade Alert!!", "alert");
bAlertSounded = true;
}
else bAlertSounded = false;
break;
case 1:
if (OzFX_Regular[0] != 0 && bAlertSounded == false)
{
if (Popup_Alerts_On == true)
MessageBox("alert", "Trade Alert!!", MB_OK);
if (Audio_Alerts_On == true)
PlaySound("Alert.wav");
if (EMail_Alerts_On == true)
SendMail("Trade Alert!!", "alert");
bAlertSounded = true;
}
else bAlertSounded = false;
break;
}
}
return(0);
}