Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free

Genuine reviews from real traders, not fake reviews from stealth vendors

Quality education from leading professional traders

We are a friendly, helpful, and positive community

We do not tolerate rude behavior, trolling, or vendors advertising in posts

We are here to help, just let us know what you need

You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

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)

Can you help answer these questions from other members on NexusFi?

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 )

Just vaguely recalling from school. Linear algebra can be used to solve systems of linear equations. And there's probably code out there in C that does it.