I have the following code :
if(period == Period.ONE_HOUR){
mInputParamsHttrendline = new Object[]{0};
mOfferSideBID = new OfferSide[]{OfferSide.BID};
m_ht_trendline_1_hour = indicators.calculateIndicator(instrument,
Period.ONE_HOUR,
mOfferSideBID,
"HT_TRENDLINE",
null,
mInputParamsHttrendline,
Filter.ALL_FLATS,
2,
askBar.getTime(),
0);
it always gives me a null pointer exception.
I tried initializing
mInputParamsHttrendline = new Object[]{0};
or using null as that parameter, since HT_TRENDLINE does not have any parameter that I can tell.
How can I use this indicator with this calculateIndictors method ?