Search around the Scripting Help subforum. There were multiple threads like this in the past couple of months. I believe some people like Emp`, Bugsy, and Exolent have contributed stocks to getting things like these done.
__________________
[ Paid Requests ] DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT