Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

Calculate commissions and overnight swaps
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=96&t=23976
Page 1 of 1

Author:  [cold-river] [ Tue 21 Sep, 2010, 14:16 ]
Post subject:  Calculate commissions and overnight swaps

Are there any methods to get the total commissions and overnight swaps of an order when I close it? Thanks for any suggestions.

Author:  API Support [ Wed 06 Oct, 2010, 10:04 ]
Post subject:  Re: How to calculate commissions and overnight swaps?

There are no such methods currently. They will be added later.

Author:  [quantisan] [ Sun 17 Oct, 2010, 16:19 ]
Post subject:  DDSJFX-181 Total commissions and overnight swaps

As suggested by this post, it would be good for data analysis if we can have a method to get the commission and overnight swaps (separately please) on both an opened and closed order.

Author:  API Support [ Mon 18 Oct, 2010, 09:47 ]
Post subject:  Re: DDSJFX-181 Total commissions and overnight swaps

The total commissions are being returned in the current API. The overnights will be added later.

Author:  [astro orbitor] [ Mon 18 Oct, 2010, 13:19 ]
Post subject:  Re: DDSJFX-181 Total commissions and overnight swaps

Support wrote:
The total commissions are being returned in the current API.
Couldn't find this one. Which class, which method? That is, how to get the commission in account currency for a particular order that is either open (filled) or closed?

Author:  [quantisan] [ Wed 08 Dec, 2010, 16:56 ]
Post subject:  Re: DDSJFX-181 Total commissions and overnight swaps

Support wrote:
The total commissions are being returned in the current API. The overnights will be added later.


I couldn't find this too.

Just to clarify this, I'm referring to commission and swap per order. Preferably as methods in IOrder. So that we can fetch these data in our own performance analysis.

Author:  [quantisan] [ Tue 08 Mar, 2011, 04:12 ]
Post subject:  Re: DDSJFX-181 Total commissions and overnight swaps

I understand these information are available in the portfolio report in the web. But that's for actual traded positions. I would like these data available in the API so that I can export data in backtesting for performance analysis.

Author:  trottel [ Fri 10 Jun, 2011, 12:10 ]
Post subject:  Re: DDSJFX-181 Total commissions and overnight swaps

[quantisan] wrote:
I understand these information are available in the portfolio report in the web. But that's for actual traded positions. I would like these data available in the API so that I can export data in backtesting for performance analysis.


I cannot find any method that returns commission.

Author:  kurak777 [ Mon 24 Sep, 2012, 22:05 ]
Post subject:  Re: APICLIENT-27 calculate commissions and overnight swaps

Hi,

Regarding commision... what about
IOrder.getCommission() 

and
IOrder.getCommissionInUSD();

don't they work good enough?

regards,
Kurak

Author:  docotor [ Thu 12 Dec, 2013, 22:54 ]
Post subject:  Re: Calculate commissions and overnight swaps

How can I convert commision into pips in order to modify SL and TP?

Author:  hebasto [ Fri 13 Dec, 2013, 07:51 ]
Post subject:  Re: Calculate commissions and overnight swaps

docotor wrote:
How can I convert commision into pips in order to modify SL and TP?
Some methods of the JFUtils interface convert the cost of one pip for particular instrument to specified currency. But you need reversal convertion.
So look for some examples here https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=65&t=50311

  Page 1 of 1