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.

Problem with zigzag indicator on TICK period.
 Post subject: Problem with zigzag indicator on TICK period. Post rating: 0   New post Posted: Mon 17 Feb, 2014, 14:21 

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

I have problem with calculate ZigZag indicator on TICK period.

I use strategy which every tick write last 6 value of zigzag. And it looks very strange:

Image

I mean, that e.g. we take into account last two lines. First at 13:03:53 we have new value of zigzag 1.37014, and at a next tick (13:03:56) we have that last zigzag value (the same as on the last tick) is on the three tick before (in my opinion it should be on one tick before). Such situation or similar happened very often.
Please check strategy in attachment to reproduce it.

Generally I want to catch situation on TICK period that Zigzag change direction and in this situation it is impossible (or how I can do this?)


Second thing. I see on tick chart that ZigZag indicator work very strange. I mean that indicator sometimes change direction not during new tick came, but between two tick. You can see it on this screenshot:

Image

Thanks and regards


Attachments:
ZigZagTest.java [1.34 KiB]
Downloaded 121 times
zigzagBug2.png [25.15 KiB]
Downloaded 287 times
zigzagBug1.png [19.08 KiB]
Downloaded 315 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: Problem with zigzag indicator on TICK period. Post rating: 0   New post Posted: Tue 18 Feb, 2014, 10:28 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Mind that on tick charts the indicators are not calculated on ticks, but rather the one-second candle-sticks. Please review your problem in the light of that.


 
 Post subject: Re: Problem with zigzag indicator on TICK period. Post rating: 0   New post Posted: Tue 18 Feb, 2014, 18:01 

User rating: 3
Joined: Thu 28 Jul, 2011, 19:40
Posts: 72
Location: PolandPoland
Thanks for this information.

So it means that if I want calculate indicators on TICK period (as it looks like on tick chart on the platform), I have to calculate this indicator on 1-sec Bars. Am I right?


 
 Post subject: Re: Problem with zigzag indicator on TICK period. Post rating: 0   New post Posted: Wed 19 Feb, 2014, 08:17 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
you can use both ticks and 1-sec bars - the results should be the same.


 

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