User rating: 0
Joined: Sun 08 Mar, 2015, 23:36 Posts: 7 Location: Russian FederationRussian Federation
Does indicator have
public IndicatorResult calculate(int startIndex, int endIndex) { int today = startIndex - getLookback() + 1; long time = input[TIME][today]; return new IndicatorResult(0, 0); }
like for strategy:
public void onTick(Instrument instrument, ITick tick) throws JFException { long time = tick.getTime(); }
Any help?
API Support
Post subject: Re: tick.getTime() analog in IIndicator