Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

calclulate indicators on Tick Bar Feed problem
 Post subject: calclulate indicators on Tick Bar Feed problem Post rating: 1   New post Posted: Mon 05 Oct, 2015, 11:16 

User rating: 3
Joined: Thu 28 Jul, 2011, 19:40
Posts: 72
Location: PolandPoland
Hello support,

I try to calculate zigzag indicator values on Tick Bars. (using TickBarFeedDescriptor).
I try also calculate custom indicator on this feed. But every time I receive empty table with data.

In attachment is strategy which calculate zigzag indicator in two ways and both times return empty table with data.

I use code:
IFeedDescriptor fdZZEntry = new TickBarFeedDescriptor(Instrument.EURUSD, TickBarSize.TWO, OfferSide.ASK);

Object[] ZZwithBreakPeaks = indicators.calculateIndicator(fdZZEntry, new OfferSide[] { OfferSide.ASK }, "ZigZag",
            new IIndicators.AppliedPrice[] { IIndicators.AppliedPrice.CLOSE }, new Object[] { 12, 5, 3 }, 100, history.getFeedData(fdZZEntry, 1).getTime(), 0);
        double[] ZZwithBreak0 = (double[]) ZZwithBreakPeaks[0];
        int len = ZZwithBreak0.length;
        console.getOut().println("length of result table1: "+len);
       
        IIndicatorCalculator<Double,double[]> zzc = indicators.zigzag(fdZZEntry, OfferSide.ASK, 12, 5, 3);
        double[] zzval = zzc.calculate(100, history.getFeedData(fdZZEntry, 1).getTime(), 0);
        int len1 = zzval.length;
        console.getOut().println("length of result table2: "+len1);


Please let me know if it is a bug (if yes, when it will be fixed) or if I do something wrong.


Attachments:
CalculateIndicatoriOnTickBars.java [2.04 KiB]
Downloaded 76 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.
 
 Post subject: Re: calclulate indicators on Tick Bar Feed problem Post rating: 0   New post Posted: Sun 11 Oct, 2015, 22:33 
User avatar

User rating: 0
Joined: Mon 21 Apr, 2014, 01:30
Posts: 4
Location: Brazil, West Los Angeles
I also have a lot of urgency.


Thank you.


 
 Post subject: Re: calclulate indicators on Tick Bar Feed problem Post rating: 1   New post Posted: Wed 21 Oct, 2015, 15:16 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
This is fixed and will be available in the next API version.


 
 Post subject: Re: calclulate indicators on Tick Bar Feed problem Post rating: 0   New post Posted: Wed 21 Oct, 2015, 17:22 
User avatar

User rating: 0
Joined: Mon 21 Apr, 2014, 01:30
Posts: 4
Location: Brazil, West Los Angeles
which forecast?
for the new version is available?


 
 Post subject: Re: calclulate indicators on Tick Bar Feed problem Post rating: 0   New post Posted: Fri 23 Oct, 2015, 12:35 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
New JForex DEMO version usually comes out every week or two.
Version number can be viewed on login window in the right bottom corner.
New SDK versions are less frequent and are announced here:
https://www.dukascopy.com/swiss/english ... .php?f=113


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com