|
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 |
AxonSoftware
|
Post subject: Need return current account during backtesting |
Post rating: 0
|
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.
|
|
|
|
 |
API Support
|
Post subject: Re: JFOREX-3012 Need return current account during backtesti |
Post rating: 0
|
Posted: Tue 31 May, 2011, 10:49
|
|
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()); }
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|