Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

PCF HL indicator Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
sejong
Posted : Wednesday, February 25, 2015 10:44:09 PM
Registered User
Joined: 12/11/2008
Posts: 39

Hi Bruce

Can you convert High/Low metastock formulal to PCF?

HLB:=If(Cum(1)=4, If(H>Ref(H,-1),H,L),
If(PREV>=Ref(H,-1) AND ROC(H,1,$)>0, Max(H,PREV),
If(PREV<=Ref(L,-1) AND ROC(L,1,$)<0, Min(L,PREV),
If(PREV>=Ref(H,-1) AND H<=HHV(L,5),L,
If(PREV<=Ref(L,-1) AND L>=LLV(H,4),H,PREV)))));
HLB
Bruce_L
Posted : Thursday, February 26, 2015 10:44:34 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

I actually don't understand the syntax. For example, what does Cum(1)=4 mean or do?

Is PREV the previous value of HLB or something else?



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
sejong
Posted : Sunday, March 1, 2015 10:43:49 AM
Registered User
Joined: 12/11/2008
Posts: 39
HLB - High/Low Breakout - is just a variable name and could be any user defined variable name
 
PREV command - This is function that allows the user to create a self-referencing formula
indicator + PREV - allows recursive addition of indicator and its previous value.  Example usage id this would be needed to create an EMA
 
Cum(1) formula - Calculates an indicator that rises one point for each day since the beginning of the chart.
 
ROC is simply Rate of Change - ROC( Data Array, Periods, Diff-Method)
(Diff-Method either Percent or %, Points or $)
 
HHV - Highest High Value - HHV( Data Array, Periods)
sejong
Posted : Friday, March 6, 2015 3:42:29 PM
Registered User
Joined: 12/11/2008
Posts: 39

Hi Bruce

Please help to create H/L breakout indicator using PCF.

Thank you in advance.

Bruce_L
Posted : Friday, March 6, 2015 4:59:43 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

I have played with this quite a bit and have been able to figure out a way to implement this in the Personal Criteria Formula Language.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.