Harmonic Trading - page 316

 

In void _Gartley function

add these 9 highlighted lines to here

aXABCD[X] = aNumBarPeak[k + 4];

aXABCD[A] = aNumBarPeak[k + 3];

aXABCD = aNumBarPeak[k + 2];

aXABCD[C] = aNumBarPeak[k + 1];

aXABCD[D] = aNumBarPeak[k];

dotX=zz[aXABCD[X]];

dotA=zz[aXABCD[A]];

dotB=zz[aXABCD];

dotC=zz[aXABCD[C]];

dotD=zz[aXABCD[D]];

retXB=(dotA - dotB) / (dotA - dotX + vDelta0);

retAC=(dotC - dotB) / (dotA - dotB + vDelta0);

retBD=(dotC - dotD) / (dotC - dotB + vDelta0);

retXD=(dotA - dotD) / (dotA - dotX + vDelta0);

 

In void _Gartley function to place where highlighted as THIS PLACE

for (ibreak=k;ibreak>=0;ibreak--)

{

if (iHigh(NULL,0,aNumBarPeak)>LevelForDmax)

{

vNamePattern = "";

break;

}

}

}

}

}

}

}

}

//----------------------------------------------------------

THIS PLACE

//-------------------------------------------------------------

if ((levelD && varStrongPatterns==1 && StringLen(vNameStrongPattern)>0) || (iu>=0 && PotencialsLevels_retXD_)) // âûâîä óðîâíÿ òî÷êè D ïî çíà÷åíèþ retXD

{

if (iu>=0 && PotencialsLevels_retXD_)

{

nameObj="_"+ExtComplekt+"StrongPattern_" + k + "";

ObjectDelete(nameObj);

nameObj1="_"+ExtComplekt+"StrongPatternVL_" + k + "";

ObjectDelete(nameObj1);

ObjectCreate(nameObj1,OBJ_VLINE,0,Time[aXABCD[D]],zz[aXABCD[C]]);

ObjectSet(nameObj1,OBJPROP_WIDTH,0);

ObjectSet(nameObj1,OBJPROP_STYLE,STYLE_DOT);

ObjectSet(nameObj1,OBJPROP_COLOR,colorLevelD);

 

Put these code lines

This code lines is an example of Shark Pattern Definition.

This is our main code definition to create our custom patterns.

For your each custom pattern you should use this example

You should change the criteria as per your custom harmonic pattern definition.

//SEARCH FOR SHARK PATTERNS

if( NameofCustomPattern==true && vNamePattern=="")

{

if(dotA > dotX && dotB > dotX && dotB dotB && dotC > dotA && dotD < dotB)

{

vBullBear="Bullish";

}

if(dotA < dotX && dotB dotA && dotC < dotB && dotC dotB)

{

vBullBear="Bearish";

}

// Shark Search Start

if (retAC >= 1.13*min_DeltaGartley && retAC = 0.886*min_DeltaGartley && retXD = 1.618*min_DeltaGartley && retBD 0.000 && retXB < 1.000)

{

vNamePattern="Shark";

PriceD_XD=dotA-1.130*(dotA-dotX);

PriceD_BD=dotC-2.240*(dotC-dotB);

if (vBullBear=="Bullish")

{

if(MathMax(PriceD_XD,PriceD_BD)==PriceD_XD)

{

LevelForDmin = dotA-1.130*min_DeltaGartley*(dotA-dotX);

LevelForDmax = dotA-1.130*max_DeltaGartley*(dotA-dotX);

}

else if(MathMax(PriceD_XD,PriceD_BD)==PriceD_BD)

{

LevelForDmin = dotC-2.240*min_DeltaGartley*(dotC-dotB);

LevelForDmax = dotC-2.240*max_DeltaGartley*(dotC-dotB);

}

}

if (vBullBear=="Bearish")

{

if(MathMin(PriceD_XD,PriceD_BD)==PriceD_XD)

{

LevelForDmin = dotA-1.130*min_DeltaGartley*(dotA-dotX);

LevelForDmax = dotA-1.130*max_DeltaGartley*(dotA-dotX);

}

else if(MathMin(PriceD_XD,PriceD_BD)==PriceD_BD)

{

LevelForDmin = dotC-2.240*min_DeltaGartley*(dotC-dotB);

LevelForDmax = dotC-2.240*max_DeltaGartley*(dotC-dotB);

}

}

}

}//Shark Patterns Search End Line

 

That is all.

 

If you want an other custom pattern just add

extern bool NameofCustomPattern2=true;

and add your second, third or more custom patterns definition code in to

//----------------------------------------------------------

THIS PLACE

//-------------------------------------------------------------

 

poruchik, search criteria for cypher patterns is wrong in zups

Indicator checks 1.130-1.414 fib retracement for AC but in fact it should check XC since the Cypher also looks for point C to be 1.13 to 1.414 projection of the XA leg, rather than the AB leg.

Could you please forward to "nen" so he can fix it.

Files:
 

deep crab

grandaevus:
poruchik, search criteria for cypher patterns is wrong in zups

Indicator checks 1.130-1.414 fib retracement for AC but in fact it should check XC since the Cypher also looks for point C to be 1.13 to 1.414 projection of the XA leg, rather than the AB leg.

Could you please forward to "nen" so he can fix it.

hi friends

i have question i have a version of zup(zup v_110 tu160) that i put under the post that i give percent of deep crab for custom pattern but my indicator can not find it but another version (zup121) can find it ???

please help me and correct my indicator

Files:
 

if it is big change then new number or name, for small bug or error fix, just new version number...???

i.e. v130 swan smething new; or v130.001 for bug fix

 

please we need 2 type ZUP: REAL, all legs accurate correct; and,

ROUGH, include broad values as usual, like look at the honeycomb of bee-hive, sometimes is not perfect form but still part of structure

what do you think? thanks and appreciation sincere

 

.....................................No PRZ?

grandaevus:
A nice long setup on GbpUsd Weekly. buylimit @ 1.4775
Reason: