mk77ch:
hi,
im still working on a function to get the maximum available lot size without getting the risk of a stop out.
there seems to be a bug somewhere, maybe someone of you can help me?
the idea is, to caluclate the maximum los of all open orders. then substract that from the account balance, because equity can change during open trades.
after getting this value, i have to calculate the difference between this value and the stop out value.... etc. etc...
What is the relevance of the lot-size to the propensity to get stopped out?
See this thread

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
hi,
im still working on a function to get the maximum available lot size without getting the risk of a stop out.
there seems to be a bug somewhere, maybe someone of you can help me?
the idea is, to caluclate the maximum los of all open orders. then substract that from the account balance, because equity can change during open trades.
after getting this value, i have to calculate the difference between this value and the stop out value.... etc. etc...