Silly man, you propose a "math problem" without defining a single one of your variables. Give us a mathematical definition of "trading system". Yeah I didn't think so. :p
There is no generic price series, no generic trading system, no generic trading parameters, no generic target level nor...