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.

optInputParamaterInfo
 Post subject: optInputParamaterInfo Post rating: 0   New post Posted: Mon 20 Aug, 2012, 09:26 

User rating: 1
Joined: Sun 22 Jul, 2012, 13:35
Posts: 40
Hi support.

I need calculate indicator from same time for each periods. It is possible to define optional input parameter as date? Is any way how can I do it?
Thanks


 
 Post subject: Re: optInputParamaterInfo Post rating: 0   New post Posted: Thu 23 Aug, 2012, 13:59 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
You need to add several indicator optional input parameters, one for each time unit - date, hour, minute, etc.
optInputParameterInfos = new OptInputParameterInfo[] {
            new OptInputParameterInfo("date", OptInputParameterInfo.Type.OTHER, new IntegerRangeDescription(1, 1, 31, 1)),
            new OptInputParameterInfo("hour", OptInputParameterInfo.Type.OTHER, new IntegerRangeDescription(12, 0, 23, 1)),
            new OptInputParameterInfo("minute", OptInputParameterInfo.Type.OTHER, new IntegerRangeDescription(1, 0, 59, 1))
        };


 
 Post subject: Re: optInputParamaterInfo Post rating: 0   New post Posted: Thu 23 Aug, 2012, 14:39 

User rating: 1
Joined: Sun 22 Jul, 2012, 13:35
Posts: 40
Thank you. I will try it.


 

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