|
JFOREX-3466 IRenkoBarFeedListener broken in 2.6.53 |
bruciew
|
Post subject: Renko bars via API |
Post rating: 0
|
Posted: Tue 24 Jan, 2012, 02:37
|
|
User rating: -
|
I am using the latest API 2.6.53 which now supports renko bars. This is great, however it has stopped working. In the onStart callback in my strategy I call the following:
Instrument instrument = Instrument.fromString(data.Session.Settings.CurrencyPair.Name); PriceRange renkoBarPriceRange = PriceRange.valueOf(data.Session.Settings.TrendingRenkoBarSize / 10); context.subscribeToRenkoBarFeed(instrument, OfferSide.BID, renkoBarPriceRange, new RenkoBarFeedListener()); // create feed descriptor to use when getting indicator values data.RenkoFeedDescriptor = new FeedDescriptor(); data.RenkoFeedDescriptor.setDataType(DataType.RENKO); data.RenkoFeedDescriptor.setInstrument(instrument); data.RenkoFeedDescriptor.setOfferSide(OfferSide.BID); data.RenkoFeedDescriptor.setPriceRange(renkoBarPriceRange);
The instrument is AUD/USD. The onBar callback function in my renko bar feed listener function is never called by the framework. After considerable time I get a RuntimeException: There is no ticks for insrtument <AUD/USD>. Am I missing something here? Is there something else I have to do to get the renko bars working.
|
|
|
|
 |
ChristianMEL
|
Post subject: JFOREX-3466 IRenkoBarFeedListener broken in 2.6.53 |
Post rating: 0
|
Posted: Wed 25 Jan, 2012, 00:59
|
|
User rating: 2
Joined: Sun 26 Jun, 2011, 07:05 Posts: 15 Location: Australia, Melbourne
|
|
|
|
 |
brucieE
|
Post subject: Re: Renko bars via API |
Post rating: 0
|
Posted: Wed 25 Jan, 2012, 02:50
|
|
User rating: 1
Joined: Tue 30 Aug, 2011, 08:54 Posts: 19 Location: AustraliaAustralia
|
Note: This working in API version 2.6.50 (which has no chart support).
|
|
|
|
 |
f451
|
Post subject: Indicator stops returning Output Arrays with Renko feed |
Post rating: 0
|
Posted: Mon 30 Jan, 2012, 13:19
|
|
User rating: 8
Joined: Tue 25 Oct, 2011, 23:02 Posts: 74 Location: Australia, Melbourne
|
Hi Support,
The attached custom indicator (testIndicator.java) works with other feeds, but occasionally produces an exception with a Renko feed from somewhere in the API during indicator setup - when this occurs calls are made and completed to getOutputParameterInfo(), but the output arrays are never set and calculate() is not called.
No exception is thrown by IIndicators.calculateIndicator(), but instead of returning multiple output arrays (double[][]) as expected, it returns a single array of Double.NaN (i.e. [Double.NaN, Double.Nan, ... ]), giving my code an unexpected type error.
This is reproducible and occurs at the same point on the same Renko blocks during backtesting, but it is a strange error which I haven't seen on any other indicator with the Renko feed. Please note I have removed the logic from the calculate() method in this testIndicator and the issue still occurs (at the same point in the Renko feed). If I had the source to greed-common-168-jar I'd step through this code and identify the issue but it's not available.
I have attached the RenkoTesterMain2.java, renkoTestStrategy2.java and the test indicator, so you can reproduce this issue, along with the console output to assist with debugging.
It has been tested against JForex.API 2.6.50 because the RenkoFeedListener is broken in 2.6.53.
thanks in advance f451
Attachments: |
testIndicator.java [3.7 KiB]
Downloaded 393 times
|
renkoTestStrategy2.java [3.56 KiB]
Downloaded 378 times
|
RenkoTesterMain2.java [6.76 KiB]
Downloaded 373 times
|
console output.rtf [68.42 KiB]
Downloaded 355 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
API Support
|
Post subject: Re: Indicator stops returning Output Arrays with Renko feed |
Post rating: 0
|
Posted: Mon 30 Jan, 2012, 13:47
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
 |
ChristianMEL
|
Post subject: Re: JFOREX-3466 IRenkoBarFeedListener broken in 2.6.53 |
Post rating: 0
|
Posted: Tue 31 Jan, 2012, 02:29
|
|
User rating: 2
Joined: Sun 26 Jun, 2011, 07:05 Posts: 15 Location: Australia, Melbourne
|
Hi support,
Please note this issue is not fixed.
IRenkoBarFeedListener.onBar() is never called for a subscribed Feed Listener in API 2.6.53 & API 2.6.55 - both versions tested again today.
This means that I can either draw Renko chart (using API 2.6.53 or API 2.6.55) or I can trade with IRenkoBarFeedListener.onBar() (using API 2.6.50) but I can not do both.
Please address this issue as I am putting together a Renko Block strategy and need IRenkoBarFeedListener.onBar() to work.
thanks, C
|
|
|
|
 |
ChristianMEL
|
Post subject: Re: Indicator stops returning Output Arrays with Renko feed |
Post rating: 0
|
Posted: Tue 31 Jan, 2012, 02:34
|
|
User rating: 2
Joined: Sun 26 Jun, 2011, 07:05 Posts: 15 Location: Australia, Melbourne
|
Hi support, It is not possible to check if this error occurs in API 2.6.55 as another error prevents us from getting the IRenkoBlockFeedListener.onBar() events in the first place. It is inside the IRenkoBlockFeedListener.onBar() method that the indicator is called and returns this bug. Please refer to previously lodged, unresolved bug: viewtopic.php?f=88&t=45652regards, C
|
|
|
|
 |
API Support
|
Post subject: Re: JFOREX-3466 IRenkoBarFeedListener broken in 2.6.53 |
Post rating: 0
|
Posted: Tue 31 Jan, 2012, 08:33
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
We checked in Standalone JForex-API 2.6.55 - the renko bars do get received in the listener and also the candlestick bars arrive in IStrategy.onBar. Could you please provide a case which does not work?
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|