check here... http://www.amibroker.com/library/detail.php?id=623 little simple,but at least something,right