Harmonic Trading - page 357

 

Thanks everybody for sharing your knowledge with the new traders , I want to know what version of zup do you recommend ?

 

I'm trying to get to the bottom of some strange results with ZUP... particularly XB points violating the pattern rules in Gartley's.

For example, using this:

extern int CustomPattern = 1

[snip]

bool CustomPat_[1];

string namepatterns[1]={"Bat"};

double minXB_[1]={0.382};

double maxXB_[1]={0.500};

double minAC_[1]={0.618};

double maxAC_[1]={0.786};

double minBD_[1]={1.618};

double maxBD_[1]={2.618};

double minXD_[1]={0.786};

double maxXD_[1]={0.886};

This pattern is incorrectly identified (XB is 0.601, beyond maxXB + ExtDeltaGartley):

However, if I do the following:

extern int CustomPattern = 2;

extern double minXB = 0.382;

extern double maxXB = 0.500;

extern double minAC = 0.618;

extern double maxAC = 0.786;

extern double minBD = 1.618;

extern double maxBD = 2.618;

extern double minXD = 0.786;

extern double maxXD = 0.886;

extern bool filtrEquilibrium = true;

Then there is no pattern found (which is correct).

So my question is: what is done differently between CustomPattern = 1 (Gartleys) and CustomPattern = 2 (no Gartleys) which makes them behave differently with exactly the same parameters?

I'm almost certainly missing something about how these patterns are calculated, so if anybody has any hints it would be very much appreciated

Files:
mystery.png  11 kb
 

###ZUP_v113wsv45.mq4

Indicator searches every fibonacci retracement variations in all possible zigzag depths to find patterns on last leg(current leg) only. Past pattern search is disabled.

Reasons for disabling past pattern search, please read topics

#3479 "Let me explain how zigzag search function works in zups" @ https://www.mql5.com/en/forum/173588/page232

#3537"Effects of past pattern search" @ https://www.mql5.com/en/forum/173588/page236

Default Deviations used for maximum accuracy are,

%5 for Fibonacci Retracements

%5 for AB , CD Leg Lengths

%10 for Time

  • Detects all Classical Patterns including Alternate Bat & Deep Crab;
  • Detects Second Class Patterns (Shark & Cypher) *Cypher patterns has a special XC retracement. This XC retracement check is added to indicator which is still not found in zup135;
  • Detects Navarro 200 Pattern;
  • Detects Leonardo Pattern;
  • Detects 5-0 Pattern;
  • Detects 3 Drives Pattern;
  • Detects Real AB=CD Pattern;

AB=CD patterns detected with this indicator are real AB=CD patterns where AB length = CD length & time AB = time CD

For real AB=CD pattern, please read http://www.harmonictrader.com/price_patternsab=cd.htm

You can enable/disable patterns that you want to search for or not (by default all patterns are enabled)

SearchClassicalPatterns =true;

SearchSharkPattern =true;

SearchCypherPattern =true;

SearchNavarro200Pattern =true;

SearchLeonardoPattern =true;

Search5_0Pattern =true;

Search3DrivesPattern =true;

SearchABCDPattern =true;

Up to this time all zup versions check 4 legs = 5 dots to search patterns. I've extended this search to 5 legs = 6 dots since some patterns like 5-0 & 3 Drives need a 5th leg and dot 0.

For Navarro 200 & AB=CD patterns, real time bar count is used to check date&time.

Time factor to draw D box is completely changed for 5 dot classical patterns & others.

Latest Time Setting Rules

For 6 dot Patterns:

5-0 Pattern

Min D = 0.618 AB = CD

Max D = 1.618 AB = CD

3 Drives Pattern

Min D = 0.618 OX = CD

Max D = 1.618 OX = CD

For 5 dot Patterns:

Classical Patterns & Leonardo Pattern

Min D = 0.618 XB = BD

Max D = 1.618 XB = BD

Navarro 200 Pattern

Min D = 1.000 XB = BD

Max D = 1.000 XB = BD

For 4 dot Patterns:

Real AB=CD Pattern

Min D = 1.000 AB = CD

Max D = 1.000 AB = CD

For Exact D Box calculation, three parameters are needed.

Friday Last M1 Bar Open Time;

Sunday First M1 Bar Open Time;

Sunday First H4 Bar Open Time;

Please put these data in here

FridayLastM1BarOpenTime = "N/A";

SundayFirstM1BarOpenTime= "N/A";

SundayFirstH4BarOpenTime= "N/A";

Format is two digit hour, two digit minutes like "22:00".

If your broker's gmt server time setting is gmt+2 or more, there shouldn't be a sunday open. In this case, leave Sunday M1 & H4 as "N/A"

When a pattern is detected, indicator will automatically draw an A-B-C three point fibonacci expansion(don't confuse fibonacci expansions with fibonacci extensions) to check the strength of the pattern. It would be the best, if a fib expansion is inside the D Box area or very close to it. You can put your limit entries near expansion lines.

Zigzag ray lines are used to draw objects.

Lots of run time code improvements have been done. Now very high values (500 or more) can be used for maxDepth.

Please read the topic #3509 "How to Use zup in Multi Time Frame" @ https://www.mql5.com/en/forum/173588/page234

Alert function has been redesigned

Old one:

When price exceeds D Box or a new leg has been formed, indicator sends a

"Pattern found on EurUSd H1 time frame has been invalidated" alert.

New one:

When price exceeds D Box, indicator sends a "Pattern found on EurUSd H1 time frame has been invalidated" alert.

If a new leg has been formed, indicator sends a ""A new leg has been just formed on EurUSd H1 time frame. All drawn objects will be deleted" alert.

Files:
screenshot2.png  80 kb
003_1.jpg  15 kb
3_dr_2_1.png  67 kb
 

didn't work

grandaevus:

###ZUP_v113wsv45.mq4

Indicator searches every fibonacci retracement variations in all possible zigzag depths to find patterns on last leg(current leg) only. Past pattern search is disabled.

Reasons for disabling past pattern search, please read topics

#3479 "Let me explain how zigzag search function works in zups" @ https://www.mql5.com/en/forum/173588/page232

#3537"Effects of past pattern search" @ https://www.mql5.com/en/forum/173588/page236

Default Deviations used for maximum accuracy are,

%5 for Fibonacci Retracements

%5 for AB , CD Leg Lengths

%10 for Time

  • Detects all Classical Patterns including Alternate Bat & Deep Crab;
  • Detects Second Class Patterns (Shark & Cypher) *Cypher patterns has a special XC retracement. This XC retracement check is added to indicator which is still not found in zup135;
  • Detects Navarro 200 Pattern;
  • Detects Leonardo Pattern;
  • Detects 5-0 Pattern;
  • Detects 3 Drives Pattern;
  • Detects Real AB=CD Pattern;

AB=CD patterns detected with this indicator are real AB=CD patterns where AB length = CD length & time AB = time CD

For real AB=CD pattern, please read Harmonic Trader - Harmonic Pattern:AB=CD

You can enable/disable patterns that you want to search for or not (by default all patterns are enabled)

SearchClassicalPatterns =true;

SearchSharkPattern =true;

SearchCypherPattern =true;

SearchNavarro200Pattern =true;

SearchLeonardoPattern =true;

Search5_0Pattern =true;

Search3DrivesPattern =true;

SearchABCDPattern =true;

Up to this time all zup versions check 4 legs = 5 dots to search patterns. I've extended this search to 5 legs = 6 dots since some patterns like 5-0 & 3 Drives need a 5th leg and dot 0.

For Navarro 200 & AB=CD patterns, real time bar count is used to check date&time.

Time factor to draw D box is completely changed for 5 dot classical patterns & others.

Latest Time Setting Rules

For 6 dot Patterns:

5-0 Pattern

Min D = 0.618 AB = CD

Max D = 1.618 AB = CD

3 Drives Pattern

Min D = 0.618 OX = CD

Max D = 1.618 OX = CD

For 5 dot Patterns:

Classical Patterns & Leonardo Pattern

Min D = 0.618 XB = BD

Max D = 1.618 XB = BD

Navarro 200 Pattern

Min D = 1.000 XB = BD

Max D = 1.000 XB = BD

For 4 dot Patterns:

Real AB=CD Pattern

Min D = 1.000 AB = CD

Max D = 1.000 AB = CD

For Exact D Box calculation, three parameters are needed.

Friday Last M1 Bar Open Time;

Sunday First M1 Bar Open Time;

Sunday First H4 Bar Open Time;

Please put these data in here

FridayLastM1BarOpenTime = "N/A";

SundayFirstM1BarOpenTime= "N/A";

SundayFirstH4BarOpenTime= "N/A";

Format is two digit hour, two digit minutes like "22:00".

If your broker's gmt server time setting is gmt+2 or more, there shouldn't be a sunday open. In this case, leave Sunday M1 & H4 as "N/A"

When a pattern is detected, indicator will automatically draw an A-B-C three point fibonacci expansion(don't confuse fibonacci expansions with fibonacci extensions) to check the strength of the pattern. It would be the best, if a fib expansion is inside the D Box area or very close to it. You can put your limit entries near expansion lines.

Zigzag ray lines are used to draw objects.

Lots of run time code improvements have been done. Now very high values (500 or more) can be used for maxDepth.

Please read the topic #3509 "How to Use zup in Multi Time Frame" @ https://www.mql5.com/en/forum/173588/page234

Alert function has been redesigned

Old one:

When price exceeds D Box or a new leg has been formed, indicator sends a

"Pattern found on EurUSd H1 time frame has been invalidated" alert.

New one:

When price exceeds D Box, indicator sends a "Pattern found on EurUSd H1 time frame has been invalidated" alert.

If a new leg has been formed, indicator sends a ""A new leg has been just formed on EurUSd H1 time frame. All drawn objects will be deleted" alert.

it does not show any patterns , what is wrong??

 

Mine Can, though its not a perfect entry for no fib expansion inside the D box areafib expansion inside the D box area.

Files:
2016.jpg  63 kb
 
Mike_Mike:
it does not show any patterns , what is wrong??

zup uses custom dll.

Could you please check your mt4 ---> tools ---> options ---> Expert Advisors settings

The correct settings are

Files:
ea2.jpg  127 kb
 
Alert function has been redesigned

Old one:

When price exceeds D Box or a new leg has been formed, indicator sends a

"Pattern found on EurUSd H1 time frame has been invalidated" alert.

New one:

When price exceeds D Box, indicator sends a "Pattern found on EurUSd H1 time frame has been invalidated" alert.

If a new leg has been formed, indicator sends a ""A new leg has been just formed on EurUSd H1 time frame. All drawn objects will be deleted" alert.

I've just realized that SendAlert function doesn't work as it should be.

Please used this revised version. Sorry for this inconvenience.

Files:
 

I think he does not understand only current leg patterns show, READ THE THREAD LIKE EVERYBODY ELSE, STOP EMBARRASSING YOURSELF ASKING STUPID QUESTIONS

 

I had an idea, I'm not sure if it makes sense to myself, but what about allowing patterns on a different specified ZigZag. is it possible?

As I am thinking patterns should only be found on the fractal of timeframe, ie on the points that can be defined by (bill Williams) fractal of the timeframe, essentially only the highs and lows not half way up such a leg on a leg of a smaller zigzag. What do you think Grandaevus, Poruchik and all?

 
zigflip:
I had an idea, I'm not sure if it makes sense to myself, but what about allowing patterns on a different specified ZigZag. is it possible? As I am thinking patterns should only be found on the fractal of timeframe, ie on the points that can be defined by (bill Williams) fractal of the timeframe, essentially only the highs and lows not half way up such a leg on a leg of a smaller zigzag. What do you think Grandaevus, Poruchik and all?

I think a version based on open and closed prices for each TF would be good, the Zig Zag using High and Low prices picks up noise from fundamental news releases that spike the market forming incorrect patterns.

Reason: