Dukascopy
 
 
Wiki JStore Search Login

Configurable has missing digits
 Post subject: Configurable has missing digits Post rating: 0   New post Posted: Mon 05 Mar, 2012, 15:34 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 413
Location: Germany, Munich
let us say we want to define a pricelevel like this:
@Configurable("Pricelevel") public double add1EntryPrice = 1.23456;
it comes to 1.235 in the parameter window.
Image

Please correct this.


Attachments:
configurable_bug.jpg [16.5 KiB]
Downloaded 851 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Configurable has missing digits Post rating: 0   New post Posted: Fri 09 Mar, 2012, 09:38 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
will do


 
 Post subject: Re: Configurable has missing digits Post rating: 0   New post Posted: Tue 22 May, 2012, 15:59 
User avatar

User rating: 0
Joined: Tue 25 Oct, 2011, 19:35
Posts: 5
Location: Russian FederationRussian Federation
Desktop Support wrote:
will do


Waiting for update, It is very important


 
 Post subject: Re: Configurable has missing digits Post rating: 1   New post Posted: Wed 23 May, 2012, 10:18 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 413
Location: Germany, Munich
Here is a workaround sniplet:
@Configurable("Pricelevel")                     public String pricelevel = "0";        
double priceD = 0D;
public void onStart(IContext context) throws JFException {   
    priceD = Double.parseDouble(pricelevel);
}

In variable priceD you will get your pricelevel as a double variable.


 
 Post subject: Re: Configurable has missing digits Post rating: 0   New post Posted: Thu 24 May, 2012, 15:42 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
Fixed. Will be released soon.


 

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