- Home
- Forum
- cTrader Automate
- Calculating maximum loss on a position
Calculating maximum loss on a position
Calculating maximum loss on a position
I'm trying to calculate the maximum loss on a position (including commissions and swaps) and am having trouble figuring out how to calculate it:
I'm trying:
Is this the correct way?
How can I get swaps?
Are these values in the base currency of my account or the currency of the trade?
Hi there,
Swaps are not available in the API at the moment unfortunately. So you would need to add them manually as parameters and consider them in your calculation.
Copyright © 2023 Spotware Systems Ltd. All rights reserved.