[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: Shark_32



PureBytes Links

Trading Reference Links

Is this the formula you were using for Shark_32.

Anthony.

Title: 

1998 October TASC Trader's Tip - "Combining Statistical and Pattern
Analysis", Shark – 32


<!--- Creators of MetaStock Technical Analysis Software
-->








 

































Main Page

Files

Formulas

FAQ's

Contact Support

Make Suggestions 


Feature Question
Symbol Files






  





















MetaStock Family 

Products 


Partners 

Free Stuff 













Customer Support
User Groups
Events
Newsletters
Links
Compatible Data














1998 October TASC Trader's Tip - "Combining Statistical and Pattern
Analysis", Shark – 32



 


 

In MetaStock for Windows you can use the Expert Advisor to recreate the "Shark
– 32" signals on your charts as discussed in Walter T. Down's article
"Combining Statistical and Pattern Analysis".

First, choose Expert Advisor from the Tools menu in MetaStock 6.5. Next,choose New and
enter the following formulas: 


Name: 


Click the Name tab and enter "Shark – 32" in the Name field.


Trends:

Click the Trends tab and enter the following formulas in the Bullish and Bearish
fields.


Bullish: Mov(C,5,S)>Mov(C,20,S);

Bearish: Mov(C,5,S)<Mov(C,20,S);


Highlights: 

Click the Highlights tab, choose New, and enter "3rd Bar" in the Name
field. Now change the color in the Color field to Blue. Finally, enter the
following formula in the Condition field, and then choose OK.


Symmetry:=.28; 

Apex:=(H+L)/2;

WB:=Ref(H,-2)-Ref(L,-2); 

Shark:=If((H<Ref(H,-1) AND L>Ref(L,-1) AND Ref(H,-1)<Ref(H,-2) AND
Ref(L,-1)>Ref(L,-2))=1,If(Apex <= (Ref(H,-2)-(WB*Symmetry)) AND Apex >=
(Ref(L,-2)+(WB*Symmetry)) ,1,0),0);

Shark;

 

Using the same method as above, enter the following 2 highlight formulas.

Name: 2nd Bar


Color: Blue


Condition:

Symmetry:=.28; 

Apex:=(H+L)/2;

WB:=Ref(H,-2)-Ref(L,-2); 

Shark:=If((H<Ref(H,-1) AND L>Ref(L,-1) AND Ref(H,-1)<Ref(H,-2) AND
Ref(L,-1)>Ref(L,-2))=1,If(Apex <= (Ref(H,-2)-(WB*Symmetry)) AND Apex >=
(Ref(L,-2)+(WB*Symmetry)) ,1,0),0);

Ref(Shark,+1)=1;

 


Name: 1st Bar


Color: Blue


Condition:

Symmetry:=.28; 

Apex:=(H+L)/2;

WB:=Ref(H,-2)-Ref(L,-2); 

Shark:=If((H<Ref(H,-1) AND L>Ref(L,-1) AND Ref(H,-1)<Ref(H,-2) AND
Ref(L,-1)>Ref(L,-2))=1,If(Apex <= (Ref(H,-2)-(WB*Symmetry)) AND Apex >=
(Ref(L,-2)+(WB*Symmetry)) ,1,0),0);

Ref(Shark,+2)=1;


 


Symbols:

Click the Symbols tab, choose New and enter "Shark Buy" in theName
field. Now enter the following formula in the Condition field.


Symmetry:=.28; 

Apex:=(H+L)/2;

WB:=Ref(H,-2)-Ref(L,-2); 

Shark:=If((H<Ref(H,-1) AND L>Ref(L,-1) AND Ref(H,-1)<Ref(H,-2) AND
Ref(L,-1)>Ref(L,-2))=1,If(apex <= (Ref(H,-2)-(WB*Symmetry)) AND Apex >=
(Ref(L,-2)+(WB*Symmetry)) ,1,0),0);

Buyok:=Cross(C,ValueWhen(1,Shark=1,Ref(H,-2)));

Chk:=Cum(Buyok)-ValueWhen(1,Shark=1,Cum(Buyok));

ValidChk:=Alert(Shark=1,25); 

{Note* The above ValidChk variable makes the Shark signal valid for 25 periods. If
the price does not cross above the High value of the base within 25 periods, you will not
receive a signal. You can change the number of periods by changing 25 to the number of
periods you desire. *}

Buy:= Buyok=1 AND Ref(Chk,-1)=0 AND ValidChk=1;

Buy;

Click the Graphic tab. Change the symbol in the Graphic field to Buy Arrow. Now
change the color in the Color field to Green. Finally, type "Buy" in the Label
field, and then choose OK.

  

Using the Same method as above, enter the following Symbol formula.

Name: Shark Sell


Condition: 


Symmetry:=.28; 

Apex:=(H+L)/2;

WB:=Ref(H,-2)-Ref(L,-2); 

Shark:=If((H<Ref(H,-1) AND L>Ref(L,-1) AND Ref(H,-1)<Ref(H,-2) AND
Ref(L,-1)>Ref(L,-2))=1,If(apex <= (Ref(H,-2)-(WB*Symmetry)) AND Apex >=
(Ref(L,-2)+(WB*Symmetry)) ,1,0),0);

Sellok:=Cross(ValueWhen(1,Shark=1,Ref(L,-2)),C);

Chk:=Cum(Sellok)-ValueWhen(1,Shark=1,Cum(Sellok));

ValidChk:=Alert(Shark=1,25); 

{Note* The above ValidChk variable makes the Shark signal valid for 25 periods. If
the price does not cross below the Low value of the base within 25 periods,you will not
receive a signal. You can change the number of periods by changing 25 to the number of
periods you desire. *}


Sell:= Sellok=1 AND Ref(Chk,-1)=0 AND ValidChk=1;

Sell;

Symbol: Sell Arrow


Color: Red


Label: Sell


After you have finished creating the Symbol formulas, you can attach theExpert to your
chart by choosing Expert Advisor from the Tools Menu. Select the Expert called "Shark
–32" from your list of Experts, choose Attach, and then Close.






 



Top of Page



 | MetaStock
| Products
| Customer Corner
| Partners
| Free Stuff
| Legalities 
| Site Map 
| Contact 

Copyright 1998 Equis International.