# Traders' Tips from TASC Magazine

### Trend Continuation Factor

In the article Trend Continuation Factor, M.H. Pee introduces several new indicators. These indicators can be easily created in MetaStock 6.52 or higher.

To create an indicator in MetaStock select Indicator Builder from the Tools menu, click New, enter the code for the indicator and then click OK. Repeat for the remaining indicators.

Name: +TCF
Formula:
pc:=If(ROC(C,1,\$)>0,ROC(C,1,\$),0);
nc:=If(ROC(C,1,\$)<0,Neg(ROC(C,1,\$)),0);
ncf:=If(nc=0,0,PREV+nc);
Sum(pc,35)-Sum(ncf,35)

Name: -TCF
Formula:
pc:=If(ROC(C,1,\$)>0,ROC(C,1,\$),0);
nc:=If(ROC(C,1,\$)<0,Neg(ROC(C,1,\$)),0);
pcf:=If(pc=0,0,PREV+pc);
Sum(nc,35)-Sum(pcf,35)

Name: Position
Formula:
pc:=If(ROC(C,1,\$)>0,ROC(C,1,\$),0);
nc:=If(ROC(C,1,\$)<0,Neg(ROC(C,1,\$)),0);
pcf:=If(pc=0,0,PREV+pc);
ncf:=If(nc=0,0,PREV+nc);
ptcf:=Sum(pc,35)-Sum(ncf,35);
ntcf:=Sum(nc,35)-Sum(pcf,35);
If(ptcf>0,1, If(ntcf>0,-1, PREV));

To plot the indicator locate it in MetaStock's Indicator Quicklist, then click and drag it into the desired chart.