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.

Need return current account during backtesting
 Post subject: Need return current account during backtesting Post rating: 0   New post Posted: Sat 28 May, 2011, 01:03 

User rating: 0
Joined: Thu 19 May, 2011, 16:00
Posts: 37
Location: UkraineUkraine
Hello!

Many of JForex developers using linking between demo account ID and strategy to prevent clients run away with binary version.
I have found that context.getAccount() in testing more doesn't return current trading account what made which type of protection useless.


 
 Post subject: Re: JFOREX-3012 Need return current account during backtesti Post rating: 0   New post Posted: Tue 31 May, 2011, 10:49 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Consider the following onStart method:
public void onStart(IContext context) throws JFException {
context.getConsole().getOut().println("account id: " + context.getAccount().getAccountId());
}


 

Jump to:  

cron
  © 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