Hi,
All indicators could be used only for candles.
min/max indicators calculates lowest/highest price for defined number of candles.
For example min indicator, as we see from documentation (
https://www.dukascopy.com/swiss/docs/api/com/dukascopy/api/IIndicators.html#min(com.dukascopy.api.Instrument,%20com.dukascopy.api.Period,%20com.dukascopy.api.OfferSide,%20com.dukascopy.api.IIndicators.AppliedPrice,%20int,%20int)),
could be used in three different ways. But for all these functions is common several parameters:
- Instrument instrument - define for which instrument(currency's pair) indicator should calculate value;
- Period period - define which candles should bee used (don't use Period.TICK - it's not a candle);
- OfferSide side - define which offer side bid or ask;
- IIndicators.AppliedPrice appliedPrice - define which of four main candle prices(OHLC) should be used for calculations;
- int timePeriod; - define amount of candles that should be used for calculations
As well there is
- int shift - define number of candle back in time staring from current bar.
0 - current bar (currently generated from ticks),
1 - previous bar (last formed bar),
2 - current bar minus 2 bars and so on
- long from, long to - interval where "from" is the start time of first tick/bar in range and "to" is the time of the last bar in range
- Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter - method with those parameters allow to filter flat bars
For example:
double minBid = indicators.min(Instrument.EURUSD, Period.TEN_SECS, OfferSide.BID, IIndicators.AppliedPrice.CLOSE, 5, 2);
Previous example will calculate minimum of bid price in EURUSD instrument last 5 ten second candles starting from (current bar minus 2 bars) bar.
Quote:
For instance is there an issue using them as soon as your strategy starts?
At the moment as far as we know there is'nt any issues with min and max indicators.
Quote:
I'm not too sure how the caching works with indicators. Is there any previous bar data available as soon as your strategy starts assuming chart data has been loaded already?
Yes, if data is loaded, its accessible.