I have got a friend who has enough expertise for the feature you need to implement. He was recently working on the forex trading site and helped to introduce some counting functions. You can see find the site by its name – tradersunion
. And I believe he will cope with your task as well. If you still need this help, please let me know and I will share his contacts.