Dukascopy
 
 
Wiki JStore Search Login

ClientInfo.getClientId() null
 Post subject: ClientInfo.getClientId() null Post rating: 0   New post Posted: Fri 28 Nov, 2014, 10:36 
User avatar

User rating: 0
Joined: Wed 29 May, 2013, 04:14
Posts: 62
I tried to print my ClientID with this code on my custom indicator but doesn't work... Can you suggest??
public IndicatorResult calculate(int startIndex, int endIndex) {

      for(IClientInfo clientInfo : context.getAccount().getClients()){
            print("clientInfo "+clientInfo);
            //context.getConsole().getErr().println("Client ID "+clientInfo.getClientId());
            CLIENT_ID=clientInfo.getClientId();
        }
      print("Client ID: "+CLIENT_ID);   

        return new IndicatorResult(startIndex, j);
   }

Output: Client ID: Null


 
 Post subject: Re: ClientInfo.getClientId() null Post rating: 0   New post Posted: Mon 01 Dec, 2014, 04:36 
User avatar

User rating: 0
Joined: Wed 29 May, 2013, 04:14
Posts: 62
up


 
 Post subject: Re: ClientInfo.getClientId() null Post rating: 0   New post Posted: Thu 06 Aug, 2015, 20:32 
User avatar

User rating: 0
Joined: Wed 29 May, 2013, 04:14
Posts: 62
UP!!!!!!!!!


 
 Post subject: Re: ClientInfo.getClientId() null Post rating: 0   New post Posted: Tue 25 Aug, 2015, 17:14 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
We have tried the attached indicator. It prints client info without any problem.


 

Jump to:  

  © 1998-2024 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