Dukascopy
 
 
Wiki JStore Search Login

JFOREX-1457: Special user input for indicators
 Post subject: JFOREX-1457: Special user input for indicators Post rating: 0   New post Posted: Tue 26 Jan, 2010, 11:00 

User rating: 0
Joined: Mon 25 Jan, 2010, 20:52
Posts: 13
In our indicator we need special user input also. But unluckily, Platform only support IntegerRange, DoubleRange etc..,


 
 Post subject: Re: JFOREX-1457: Special user input for indicators Post rating: 0   New post Posted: Thu 28 Jan, 2010, 14:03 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
what kind of input do you need?


 
 Post subject: Re: JFOREX-1457: Special user input for indicators Post rating: 0   New post Posted: Wed 03 Feb, 2010, 20:13 

User rating: 0
Joined: Mon 25 Jan, 2010, 20:52
Posts: 13
Like color options. Font options.

Also I need advanced parameter dialog for strategy.
One Example : in one strategy I need to have certain parameter and based on that parameter I need to show risk factor to the user in same dialog. User can pass various values and check risk factor in same dialog.

But I do not have such control in in parameter dialog.


Thanks


 
 Post subject: Re: JFOREX-1457: Special user input for indicators Post rating: 0   New post Posted: Wed 11 May, 2011, 11:22 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Support wrote:
Like color options. Font options.

The above can be achieved by using parameters of type IntegerListDescription, for example:

Setup options:

...
int[] colorValues = new int[10];
String[] colorNames = new String[10];
colorValues[0] = 0;
colorNames[0] = "Blue";
colorValues[0] = 1;          
colorNames[1] = "Red";
...

Create an optional parameter:
new OptInputParameterInfo("Color Options", OptInputParameterInfo.Type.OTHER, new IntegerListDescription(0 , colorValues, colorNames));


And hadle the selected value appropriately in IIndicator.setOptInputParameter method.


 

Jump to:  

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