What branch of mathematics would help me optimize profit if I have a trading strategy that on an individual trade basis (Trade 1, Trade 2, ..., Trade N) has a draw down of (X1,X2,...Xn) ticks and a profit for each trade of (Y1,Y2,..., Yn) ticks? Maybe I should have a larger stop-loss and smaller take-profit to maximize win percentage or maybe I should take smaller losses and bigger gains? I'm asking assuming I have specific data for X and Y values.
Now that I know which branch of mathematics I would need to know, what is the formula or algorithm to determine the stop-loss and take-profit that I should use each time?
What is the answer to questions 1 and 2 if I would want to know how to include in an algorithm or formula a potential Take-Profit that I come up with for each trade. For example, let's say that I project that for Trade 1 the potential profit is P1 and for Trade N the potential profit is Pn. Maybe the algorithm will say to ignore that piece of information and take Z ticks each time or maybe the algorithm will dictate a better actual-Take-Profit value if I include in that algorithm what I think my profit could be.