Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

IContext.getAccount().getUserName() == null
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=16&t=51516
Page 1 of 1

Author:  bojno [ Wed 23 Jul, 2014, 08:20 ]
Post subject:  IContext.getAccount().getUserName() == null

Greetings,

I am working on strategy and IContext.getAccount() not provides info like
username (IContext.getAccount().getUserName() returns null) or account id
(IContext.getAccount().getAccountId() returns an empty string) ... Maybe
there are more issues, I don't know right now... I hope you don't need more
description about this... I think there is no problem with IAccount at
indicators!

This problem occurs in HISTORICAL TESTER!

I hope in early fix!

Best regards
bojno

Author:  API Support [ Fri 25 Jul, 2014, 09:35 ]
Post subject:  Re: IContext.getAccount().getUserName() == null

We can't replicate this, could you please provide more information about your account type, and the JForex-API version that you are using?

Author:  bojno [ Fri 01 Aug, 2014, 07:27 ]
Post subject:  Re: IContext.getAccount().getUserName() == null

Account Type: LIVE
JForex version: 2.37.2

But I think it doesn't matter what version it is or what type of the account it is... I mean, when strategy runs for real (on DEMO or LIVE) - so not on Historical Tester - then the information of account there is present... But when it runs on Historical Tester, the information like username or etc missing - there is present only equity, profit/loss... I need it to limit users who can use the strategy and doesn't matter wheter it runs on Historical Tester or for real...

Author:  API Support [ Tue 05 Aug, 2014, 15:51 ]
Post subject:  Re: IContext.getAccount().getUserName() == null

We managed to replicate this, we are going to fix this as soon as possible.

  Page 1 of 1