Expert advisor code

Greetings,
I want to generate following two kind of alert :
1)when close is below 50 william% R
2)when close is above 50 william% R respectively
Thanks,
AJay.