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 |

ADX slope Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
lc29470
Posted : Monday, March 21, 2016 1:53:03 PM
Registered User
Joined: 12/29/2013
Posts: 71

Bruce can a PCF be written to display a column when the ADX(14) slope,  is either negative or positve? 

Bruce_L
Posted : Monday, March 21, 2016 1:59:08 PM


Worden Trainer

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

There really isn't a good way to write a PCF for this. Your best option is going to be to click on the ADX indicator and select Create Scan Condition.

Create Conditions from Your Chart (5:25)
PCF for Wilder's Directional Movement DMI-crossovers
PCF for Wilder's DX, and/or a CI for Wilder's ADX



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
lc29470
Posted : Monday, March 21, 2016 2:26:51 PM
Registered User
Joined: 12/29/2013
Posts: 71

Ok Thanks Bruce.

bert953
Posted : Thursday, March 31, 2016 2:05:57 PM
Registered User
Joined: 5/3/2007
Posts: 10

Is there a way to scan for the slope of a moving average ie 50 dMA =45 degrees.

Bruce_L
Posted : Thursday, March 31, 2016 2:31:49 PM


Worden Trainer

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

It is not possible to calculate the slope as an angle. This is because the angle can change based on things like scroll, zoom, other indicators being plotted and even the aspect ratio of the pane in which it is plotted.

A net slope from the previous bar to the current bar could be written as follows.

AVGC50 - AVGC50.1

While the percent slope from one bar to the next can be written as follows.

100 * (AVGC50 / AVGC50.1 - 1)

You could adjust this to say 10 bars by adjusting the bars ago parameter. So the net slope would be:

AVGC50 - AVGC50.10

And the percent slope would be:

100 * (AVGC50 / AVGC50.1 - 1)

Once you go to looking at multiple bar slopes, you could calculate a linear regression slope as well.

(4.5 * AVGC50 + 3.5 * AVGC50.1 + 2.5 * AVGC50.2 + 1.5 * AVGC50.3 + .5 * AVGC50.4 - .5 * AVGC50.5 - 1.5 * AVGC50.6 - 2.5 * AVGC50.7 - 3.5 * AVGC50.8 - 4.5 * AVGC50.9) / 82.5

And express this a percentage of the moving average (or some other basis)

100 * (4.5 * AVGC50 + 3.5 * AVGC50.1 + 2.5 * AVGC50.2 + 1.5 * AVGC50.3 + .5 * AVGC50.4 - .5 * AVGC50.5 - 1.5 * AVGC50.6 - 2.5 * AVGC50.7 - 3.5 * AVGC50.8 - 4.5 * AVGC50.9) / 82.5 / AVGC50

Using Linear Regression vs Classical Peaks/Valleys for Divergence Analysis



-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.