i dont want to disappoint you by saying you cant..you can but it is hard..i myself have tried creating a basic antivirus but now figured out that there are awfull lot of things you must know
like programming if you are a programmer then
you can first study how a virus works
know the saying "if you cant think like a thief you are not fit for a cop"
vivek, January 2008
You can't really make your own Anti-Virus Program, unless you are a very experienced programmer with the resources of a R&D department to research new viruses.
If you are interested in programming, learn the basics first.