The endorsed approach is to use
IFeedListerer.onFeedData, since it allows you to define the
IFeedDescriptor only once and thereafter use it to fetch historical data (
IHistory.getFeedData) and indicators (
IIndicators.calculateIndicator) without having to repeat the feed parameters. This also means that you can, for example, switch between 5-pip renkos and 1-min bars simply by changing the
IFeedDescriptor initialization. If you would use
IRenkoBarFeedListener you would need to not only redefine the
IFeedDescriptor, but also change the listener and history call methods. See more here:
https://www.dukascopy.com/wiki/#Chart_feeds