I am really trying to achieve these... http://www.elitetrader.com/vb/showthread.php?s=&threadid=24601&perpage=6&pagenumber=1
Look at the Wilmott thread and you'll find the doc I mentioned to you (I actually attached it there in a zip file).