Dukascopy
 
 
Wiki JStore Search Login

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.

Is it possible create own OptInputDescription implementation
 Post subject: Is it possible create own OptInputDescription implementation Post rating: 0   New post Posted: Mon 19 Apr, 2010, 12:46 

User rating: 0
Joined: Thu 19 May, 2011, 16:00
Posts: 37
Location: UkraineUkraine
Hello!

Some of our parameters of developed indicator represented with huge numbers and I want use more user friendly textual description.
e.g.
EUR/USD, 10 sec
Indicator_name(11001023)
will be nice to replace it on something more informative like Indicator_name(Param1).
I tried create implementation of OptInputDescription interface but looks like system not allow me to do it. Any suggestions?


 
 Post subject: Re: Is it possible create own OptInputDescription implementation Post rating: 0   New post Posted: Tue 20 Apr, 2010, 08:35 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hello,
here is sample (https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=6&t=4057) which demonstrates how to make look optional parameters nice.
Instead of a Currency type, define your own enum type in the indicator. If you have questions, please do not hesitate to ask.


 
 Post subject: Re: Is it possible create own OptInputDescription implementation Post rating: 0   New post Posted: Tue 20 Apr, 2010, 09:06 

User rating: 0
Joined: Thu 19 May, 2011, 16:00
Posts: 37
Location: UkraineUkraine
This is how everything working now. System shows combo box filled with names but after the name of strategy system putted value:

Image

This is normal behavior or we doing something wrong? What I want is replace this 600000 with it textual representation.


 
 Post subject: Re: Is it possible create own OptInputDescription implementation Post rating: 0   New post Posted: Tue 20 Apr, 2010, 10:10 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Yes, this is normal behavior. At the moment it is not possible to change a representation of parameters, but this will be added in a near future (JFOREX-1681).


 

Jump to:  

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