Risk-Based Dynamic Position Size Incorrect

Community / Features & BugsCategory: BugsRisk-Based Dynamic Position Size Incorrect
Anand asked 3 years ago

Hi David I would like to use risk-based position sizing ie Position = (% Risk x Account Size) / SL Distance. I see the Risk-Based dynamic position option in the current boilerplate, but the calculation appears to be incorrect. Here is an example using a $100000 account with 1% percent of account traded on 1x leverage. For trade #1 with a SL of 1.9%, the indicator calculated a position size of $2. The correct calculation would be: Position = (1% x $100000) / 1.9% = $1000 / 1.9% = $52631. Fixing this should be straightforward as the calculation is quite simple. I know not many people use risk-based position sizing in your community, but I would really appreciate it! Thanks.

Attachments

1 Answers
Jerry answered 3 years ago

Yes, might be in line with what I was thinking as well. Only I suspected it was maybe taking the trade in USDT as opposed to BTC (i.e. alert said qty": "1.7682", which resulted in a position of 0.002 BTC on bybit).

Liked it? Take a second to support on Patreon!
Become a patron at Patreon!