Harmonic Pattern

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Re: Harmonic Pattern

Postby Apprentice » Wed Nov 16, 2011 5:23 pm

We can write a Signal.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Harmonic Pattern

Postby didierc65 » Fri Nov 25, 2011 2:26 pm

Hi Apprentice,

thank for this code. I like it very much.
I tested it and found an error on "AB=CD" pattern when parameter "show Price target" is set to true, I get error out of range.

I'm a beginer on Lua but for me it's lines 554-455(458-459) for bull/ bear case that are involved.

drawline(D, out[D] + AB*1.272, D + (B-A), out[D] + AB*1.272, Color);



If you can check it.
Thanks!!
Didier
didierc65
 
Posts: 2
Joined: Fri Nov 25, 2011 11:31 am

Re: Harmonic Pattern

Postby bomberone3 » Mon Nov 28, 2011 3:21 pm

Apprentice wrote:
Harmonic Pattern.png

This indicator. It is based on ZigZag indicator.
I also plan to add support for GannSwing.



Hi Apprentice,

if these patterns are based on ZigZag, why don't you try to elaborate this
by Elliott Wave Indicator

viewtopic.php?f=17&t=2380#p5135
bomberone3
 
Posts: 21
Joined: Wed Oct 12, 2011 3:08 am

Re: Harmonic Pattern

Postby Apprentice » Mon Nov 28, 2011 6:25 pm

This is slightly more complicated.
The main problem is to find the necessary time.
I have try this several times, the outcome is always uncertain.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Harmonic Pattern

Postby rod178 » Sat Dec 03, 2011 11:30 pm

I find this Harmonic Pattern Recognition Indicator very useful, although have some questions and enhancement suggestions

I gather that it can be fine tuned using the below values. Could we have a short explantation of how these values are used and derived, especially backstep and deviation?

Pattern Selector
---------> correction -> 25%

ZigZag Calculation
--------> Depth ->12
-------> Deviation -> 5
-------->Backstep -> 3


Show Price Targets - Sometimes causes out of range error
ie "An error occurred during the calculation of the indicator 'HARMONIC PATTERN'. The error details: [string "Harmonic Pattern.lua"]:599: Index is out of range."
Line Selector
-------> Show Price Targets -> Yes


Enhancemnets
A problem with the pattern recognition, is that -
1) Cannot preempt patterns ie takes a min of 3 plus subsequent bars. Can this be changed to less than 3bars?
- Would like the option of a potential pattern being recogniced about 5 bars before formation ie 5 bars before D confirmed, instead of 3 bars after. eg once CD leg hits a selectable range value (eg 1.2 to 2.6 on close, not zigzag ) times the XA leg
2) requires an audio alarm on a potential or a confirmed pattern formation.
3) The option of automatically adding various Fib retracements and extensions on the different legs. eg on a bull butterfly fib XA and display 1.272 and 1.619 fib extensions, to enable an estimate D entry point ie PRZ.

regards
Rod
rod178
 
Posts: 2
Joined: Sat Dec 03, 2011 10:26 pm

Re: Harmonic Pattern

Postby Apprentice » Sun Dec 04, 2011 5:09 am

Your request is added to the developmental cue.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Harmonic Pattern

Postby Average Joe » Sun Dec 04, 2011 7:47 am

As per Rod178 request, I also find them useful especially some sort of filling the first part of the pattern and alerting in advance the "D" formation. Some kind of automatic alert when pattern is formed.

Cheers
Average Joe
 
Posts: 4
Joined: Sun Dec 04, 2011 6:50 am

Re: Harmonic Pattern

Postby Average Joe » Sun Dec 04, 2011 7:52 am

Like Rod178, I would find all his request very useful to my trading.

Cheers
Average Joe
 
Posts: 4
Joined: Sun Dec 04, 2011 6:50 am

Re: Harmonic Pattern

Postby didierc65 » Thu Dec 15, 2011 3:15 am

Hi Apprentice,

could you check the AB=CD formula?
D must be calculated from point C and CD equal to AB or 1.27 or 1.618*AB.
Regards
didierc65
 
Posts: 2
Joined: Fri Nov 25, 2011 11:31 am

Re: Harmonic Pattern

Postby Sviet531 » Fri Jan 27, 2012 8:36 am

Hello,

do you continue the programming of this indicator?

The addition of a signal (sound and / or text) would be welcome, I try to do it myself but this is difficult, I am not a programmer.
Thank you.
Sviet531
 
Posts: 7
Joined: Fri Jan 27, 2012 8:28 am

PreviousNext

Return to Custom Indicators

Who is online

Users browsing this forum: Google [Bot] and 52 guests