Calculating maximum loss on a position

manoj.clsd.kumar@gmail.com since: 04 Dec 2019;

  17 Oct 2022, 12:18
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?

PanagiotisChar's avatar

PanagiotisChar since: 15 Sep 2022;

  17 Oct 2022, 13:37

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.

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

Cofounder and Chief Technologist at Aieden Technologies