help in codening email and alert message

 

hi ...

i want help in codening please help me

1 - hi i have this coddening alert for email & sound alert

i mostly it use this email & sound alert for the 4 timeframe (1,5,15,30)

it is possible to make codes like that will show the on and off bution on the indicator properties that will show user to choose the time frame which he want to recevie email and alert

facilty ( on and off facily button) .

blow it will display into the indicator properties .

1 mint email - false, sound alert - fasle,

5 mint email - true, sound alert - true,

15 mint email - true, sound alert - true,

30 mint email - true, sound alert - true .

which codes i have that r below

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

if(dt!=iTime(NULL,0,0))
{
if(buf1_up[1]==4 && buf1_down[2]==4)
{
if(enable_sound_alert) Alert( Symbol() + " BUY " + strtf(timeframe1)+" "+Bid );
if(enable_email_alert) SendMail("MACD VSESION 1 BUY " + strtf(timeframe1),"MACD VSESION 1 " + Symbol() + " BUY " + strtf(timeframe1)+" "+Bid );
}
if(buf2_up[1]==3 && buf2_down[2]==3)
{
if(enable_sound_alert) Alert( Symbol() + " BUY " + strtf(timeframe2)+" "+Bid );
if(enable_email_alert) SendMail("MACD VSESION 1 BUY " + strtf(timeframe2),"MACD VSESION 1 " + Symbol() + " BUY " + strtf(timeframe2)+" "+Bid );
}
if(buf3_up[1]==2 && buf3_down[2]==2)
{
if(enable_sound_alert) Alert( Symbol() + " BUY " + strtf(timeframe3)+" "+Bid );
if(enable_email_alert) SendMail("MACD VSESION 1 BUY " + strtf(timeframe3),"MACD VSESION 1 " + Symbol() + " BUY " + strtf(timeframe3)+" "+Bid );
}
if(buf4_up[1]==1 && buf4_down[2]==1)
{
if(enable_sound_alert) Alert( Symbol() + " BUY " + strtf(timeframe4)+" "+Bid );
if(enable_email_alert) SendMail("MACD VSESION 1 BUY " + strtf(timeframe4),"MACD VSESION 1 " + Symbol() + " BUY " + strtf(timeframe4)+" "+Bid );
}


if(buf1_up[2]==4 && buf1_down[1]==4)
{
if(enable_sound_alert) Alert( Symbol() + " SELL " + strtf(timeframe1)+" "+Bid );
if(enable_email_alert) SendMail("MACD VSESION 1 " + Symbol() + " SELL " + strtf(timeframe1),"MACD VSESION 1 " + Symbol() + " SELL " + strtf(timeframe1)+" "+Bid );
}
if(buf2_up[2]==3 && buf2_down[1]==3)
{
if(enable_sound_alert) Alert( Symbol() + " SELL " + strtf(timeframe2)+" "+Bid );
if(enable_email_alert) SendMail("MACD VSESION 1 " + Symbol() + " SELL " + strtf(timeframe2),"MACD VSESION 1 " + Symbol() + " SELL " + strtf(timeframe2)+" "+Bid );
}
if(buf3_up[2]==2 && buf3_down[1]==2)
{
if(enable_sound_alert) Alert(Symbol() + " SELL " + strtf(timeframe3)+" "+Bid );
if(enable_email_alert) SendMail("MACD VSESION 1 " + Symbol() + " SELL " + strtf(timeframe3),"MACD VSESION 1 " + Symbol() + " SELL " + strtf(timeframe3)+" "+Bid );
}
if(buf4_up[2]==1 && buf4_down[1]==1)
{
if(enable_sound_alert) Alert( Symbol() + " SELL " + strtf(timeframe4)+" "+Bid );
if(enable_email_alert) SendMail("MACD VSESION 1 " + Symbol() + " SELL " + strtf(timeframe4),"MACD VSESION 1 " + Symbol() + " SELL " + strtf(timeframe4)+" "+Bid );
}


dt=iTime(NULL,0,0);
}

return(0);
}

2 i want some more help in email and sound alert when he send the email me then it was like this message and his title

example. -

MACD VSESION 1 Dow_Jones SELL M5 10308.00000000 ( it was email message inside the email )

MACD VSESION 1 Dow_Jones SELL M5 ( it was the email title )

i want the email message and the title are must be the same and when they r seding email and the alert like this below pattern is my requriment

" Dow_Jones " " SELL " " timeframe M5 " " @ 10308.00 " " AT 8.00 A.M."

here Dow-jones is the script /currecy name on that the call was genrated .

here "AT 8.00A.M " is the time on that the trade/call was genrated

and the bid price i will get 10308.00000000 i dont want all last digit he must gives the 10308.00000 ( only last 5 digites have to display)

3 also it is possible ito make this type off view (codes for it ) into the email . shown in the below image .

pleas help me for codeing it -

mangesh

Reason: