|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
IOrder.getCommission() returning half commission on demo ? |
G4815
|
Post subject: IOrder.getCommission() returning half commission on demo ? |
Post rating: 0
|
Posted: Wed 22 Jan, 2020, 07:51
|
|
User rating: 1
Joined: Mon 04 Nov, 2019, 03:51 Posts: 8 Location: Canada, Vancouver
|
Hi, I'm encountering an issue that I cannot understand : I have a strategy that writes a log of every trade in a CSV when a trade closes (onMessage, message.getType()==Type.ORDER_CLOSE_OK, order.getCommission()). It returns the proper commission during a backtest : it's matching the HTML test report as well as the commission using the Forex Calculator. But when I tried it on a demo account the commission is about half of what it should be (proper commission is in the position report web page). I am not using a global account for the demo and there was no deconnection / reconnection between the opening and closing of the trades (according to the message log). It's doing it for every single trade. I'm guessing it's only accounting commission for the closure but it shouldn't do that and there is a discrepancy with what I get in backtest. Could it be that I found a bug ?
|
|
|
|
|
vadim_berezhnoj
|
Post subject: Re: IOrder.getCommission() returning half commission on demo ? |
Post rating: 0
|
Posted: Mon 17 Feb, 2020, 18:36
|
|
Visual JForex expert at Dukascopy | |
User rating: ∞
Joined: Mon 22 Apr, 2013, 11:30 Posts: 604 Location: UkraineUkraine
|
Hello.
There was one similar bug some time before and it was fixed on platform. Please check the platforms version. If it is up to date please provide the code example that replicates the issue.
Kind regards, Support Team.
|
|
|
|
|
|
Pages: [
1
]
|
|
|
|
|