As a basic explanation, I'm trying to estimate in ticks where to place a stoploss to restrict my strategy without a max daily loss limit, considering my real P&L (which is not a round multiple of TickSize since including past commissions and slippage as well as anticipated commission+slippage for the stopout)
Please note I'm coding this from a NT indicator, not a strategy, hence I work from a simulated running EC.
ANYWAY, I will simplify the matter here to something along those lines :
Can it be solved efficiently in C# ? If so what needs to be written ? Never came accross such a need before. Thanks for your help (example scripts of equations solving welcomed)
Yes, I thought about using the Round method to solve it as a first intention but actually my equation terms are more complex than the ones written and I would have gotten several terms inside the same Round function which then I cannot split to solve the one liner equation... too bad.
(not sure if my explanation is clear but end of the story is that it was not possible in that case to achieve perfect precision )