forex trading framework written by c