Registered User Joined: 10/10/2004 Posts: 62
|
Bruce ,
I have a tend formula in my Metastock that I need PCF help with:
Factor:=Input("Factor",1.00,10.00,3.00);
Pd:=Input("ATR Periods",1,100,10);
Up:=MP()+(Factor*ATR(Pd));
Dn:=MP()-(Factor*ATR(Pd));
Td:=If(Cross(C,LLV(Up,13)),1,If(Cross(HHV(Dn,13),C ),-1,PREV));
Dnx:=If(Dn=HighestSince(1,Cross(Td,0),Dn),Dn,PREV) ;
Upx:=If(Up=LowestSince(1,Cross(0,Td),Up),Up,PREV);
ST:=If(Td=1,Dnx,If(Td=-1,Upx,PREV));
ST
Also, PCF for Stochastic of CCI if possible :
(Sum(CCI(14)-LLV(CCI(14),5),3) / Sum(HHV(CCI(14),5)-LLV(CCI(14),5),3))*100
Thank you,
mfg
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I cannot think of a practical method of creating either indicator in TC2000 version 7. It would be possible to create stochastics of CCI as an indicator in TC2000 version 12.4, but not by using an Indicator Formula.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 10/10/2004 Posts: 62
|
Thak you.
|