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.

inputParameterInfos
 Post subject: inputParameterInfos Post rating: 0   Post Posted: Wed 28 Oct, 2015, 23:57 
User avatar

User rating: 0
Joined: Wed 28 Oct, 2015, 23:15
Posts: 1
Location: Russian FederationRussian Federation
Hi,
In my custom indicator inputParameterInfos is defined as below:

"inputParameterInfos = new InputParameterInfo[]{
new InputParameterInfo("Price", InputParameterInfo.Type.PRICE),
new InputParameterInfo("Bars", InputParameterInfo.Type.BAR)};"

Can any explain to my how call this indicator?
All examples which I found InputParameterInfo[]{} contains only one new InputParameterInfo.

================
When I call custom indicator from Strategy

Object [] melCur= indicators.calculateIndicator(this.instrument, this.period, new OfferSide[]{OfferSide.BID},
indicatorName, new IIndicators.AppliedPrice[]{IIndicators.AppliedPrice.CLOSE}, optionalInputArray, 2);

return error: java.lang.ArrayIndexOutOfBoundsException: 1.

Thank you


 
 Post subject: Re: inputParameterInfos Post rating: 0   Post Posted: Tue 10 Nov, 2015, 14:47 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please provide full indicator code.


 

Jump to:  

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