How to calculate profit per trade?

Created at 16 Apr 2019, 11:54
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
CT

ctid320188

Joined 19.04.2017

How to calculate profit per trade?
16 Apr 2019, 11:54


Hi,

I'm struggling with what I thought would be simple. I'm trying to work out the % profit each trade has made when it is closed off.

However, using the Open API v1 I don't have a way of knowing what the balance was when the trade was opened. If I did, I could do the following calculation:

Balance when trade was opened = £10,000

Profit made on closing trade = £100

Profit % for that trade = 100 / 10000 * 100 = 1%

When I place a trade using the Open API, It does not provide me with the account balance at the time the trade is opened. It does, however give me the current balance when the trade is closed. But, if I don't know the balance the trade was opened then I don't see how I can work out the profit %.

What am I missing???

Thanks

Ro


@ctid320188