murfinp wrote:
Sorry I an not quite clear so the onFeeddata get called on every Tick or only on when a new renko is formed ?
The latter, see:
https://www.dukascopy.com/client/javadoc/com/dukascopy/api/feed/IFeedListener.htmlSee the following examples, launch them both with live and historical data to see how they work:
https://www.dukascopy.com/wiki/#Chart_feeds/Subscribe_to_a_feedmurfinp wrote:
so in effect the renko listener mimicks an onBar ???
Partially - renko listener is more precise, in the sense that
IStrategy.onBar fires on a new bar for all subscribed instruments on all periods that have just been completed (e.g. at 12:00 completes not only 1H, but also 4H, 1M, 5M, 10M, 15M, 30M bars), but
IFeedListener.onFeedData only fires on the completion of the particular
ITimedData element of the designated
IFeedDescriptor.