Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 3/10/2013 Posts: 41
|
Hi Bruce can you please help me convert this stockcharts.com scan to a PCF that I can then also use as a SCAN in TC2000- thanks! Aubrey
[Daily plus DI(14) > Daily minus DI(14)] and [Daily adx line(14 >=15] and [Slope(10,[Daily minus di(14)]) < 0] and [Close > daily sma(200,close)] and [daily sma(20,daily close) > daily SMA9200,close)]
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
A 9200 period simple moving average isn't going to calculate in TC2000 v12/v17/v18b because there are only 500 bars of data available for the calculations. If we substitute a 500 period SMA and assume the slope is based on net change.
DIPLUS14 > DIMINUS14 AND ADX14.14 >= 15 AND DIMINUS14 < DIMINUS14.10 AND C > AVGC200 AND AVGC20 > AVGC200
If we assume the slope is a linear regression slope.
DIPLUS14 > DIMINUS14 AND ADX14.14 >= 15 AND FAVG(DIMINUS14, 10) < AVG(DIMINUS14, 10) AND C > AVGC200 AND AVGC20 > AVGC200
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 3/10/2013 Posts: 41
|
Thanks - sorry that was my mistake it should have been a bracket not "9"
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Have change the formulas to reflect the SMA200 instead.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 3/10/2013 Posts: 41
|
Hi Bruce,
I am using TC2000 v12.5 - when I put in the PCF I am getting a formula error "syntax error" on PCF 2 and in PCF1 I am getting Argument missing near >= - apprciate your help. Thans
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I cannot write the formulas for TC2000 v12. I can only write the formulas for TC2000 v17/v18b because the DI and ADX syntax was not added to the Personal Criteria Formula Language until v17.
About the best you could do in TC2000 v12 is to add the indicators to the chart. Then click on the indicators and select Create Scan Condition to create the desired conditions. You would then add all of the conditions to the same EasyScan.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |