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
|