Dukascopy
 
 
Wiki JStore Search Login

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
 Post subject: getCommissionInUSD not working in back testing JForex Post rating: 0   New post 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?


 
 Post subject: Re: getCommissionInUSD not working in back testing JForex Post rating: 0   New post 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?


 
 Post subject: Re: getCommissionInUSD not working in back testing JForex Post rating: 0   New post Posted: Tue 27 Nov, 2012, 08:27 
User avatar

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.


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com