|
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.
getCommissionInUSD not working in back testing JForex |
cb888trader
|
Post subject: getCommissionInUSD not working in back testing JForex |
Post rating: 0
|
Posted: Tue 27 Nov, 2012, 06:38
|
|
User rating: 0
Joined: Tue 22 Nov, 2011, 12:47 Posts: 130 Location: United States,
|
IOrder.getCommissionInUSD not working in back testing JForex - the returned value is always zero.
Am I missing something?
|
|
|
|
 |
cb888trader
|
Post subject: Re: getCommissionInUSD not working in back testing JForex |
Post rating: 0
|
Posted: Tue 27 Nov, 2012, 06:58
|
|
User rating: 0
Joined: Tue 22 Nov, 2011, 12:47 Posts: 130 Location: United States,
|
just to clarify:
during the strategy run in back test - the commission is returned as expected by calling the IOrder.getCommissionInUSD.
but when trying to iterate over the *SAME* orders by fetching them at the IStrategy.onStop using the context.getHistory().getOrdersHistory(..) the returned value is ZERO.
Any clue?
|
|
|
|
 |
API Support
|
Post subject: Re: getCommissionInUSD not working in back testing JForex |
Post rating: 0
|
Posted: Tue 27 Nov, 2012, 08:27
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Please provide example strategy which replicates the case and launch scenario, including Historical Tester settings.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|