I would like to have the same indicator in onBar method:
double indicator = indicators.tvs(Instrument.EURUSD, Period.FOUR_HOURS, OfferSide.BID, AppliedPrice.CLOSE, 25, 0);
BUT I need to add a filter "Filter.ALL_FLATS"
I have read the documentation, for example here
https://www.dukascopy.com/client/javadoc/but is is difficult to understand it without strong background in trading (I do not have the same).
Could somebody help me with it?