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 |

TREND SCAN Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
timo4sho
Posted : Friday, July 14, 2006 2:51:01 PM
Registered User
Joined: 10/10/2004
Posts: 36
How would I write the following scan?

If ADX>20 & +DMI>-DMI --> uptrend
If ADX>20 & +DMI<-DMI --> downtrend

I would have to name one scan: ADX uptrend & the other: ADX downtrend.

Could you please help me with that?


Thanks a lot!

Best Regards,

Timo
Craig_S
Posted : Friday, July 14, 2006 2:54:35 PM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
We cannot scan for the ADX>20.

Check out the PCFs for DMI here:
PCF for Wilder's DX, and/or a CI for Wilder's ADX
and
PCF for Wilder's Directional Movement DMI-crossovers

Once you scan for your DMIs you can then SORT the list by the ACTUAL ADX value to find those above or below 20.

Sorting price and indicators by their Actual Value


- Craig
Here to Help!
timo4sho
Posted : Saturday, July 15, 2006 5:52:51 AM
Registered User
Joined: 10/10/2004
Posts: 36
Hi Craig,

sorry, but I do not know what to do. Could you please clarify? I mean step by step with the formula for showing a +DMI > -DMI & the formula for +DMI < - DMI

Thanks
Craig_S
Posted : Saturday, July 15, 2006 6:24:22 AM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
What are your ADX settings?

- Craig
Here to Help!
timo4sho
Posted : Saturday, July 15, 2006 7:59:13 AM
Registered User
Joined: 10/10/2004
Posts: 36
ADX (14)
Craig_S
Posted : Saturday, July 15, 2006 9:21:27 AM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
Try this for todays +DI>-DI

78.78*(H1-H0)*(H1-H0<L0-L1 and H0>H1)
+73.16*(H2-H1)*(H2-H1<L1-L2 and H1>H2)
+67.93*(H3-H2)*(H3-H2<L2-L3 and H2>H3)
+63.08*(H4-H3)*(H4-H3<L3-L4 and H3>H4)
+58.57*(H5-H4)*(H5-H4<L4-L5 and H4>H5)
+54.39*(H6-H5)*(H6-H5<L5-L6 and H5>H6)
+50.5*(H7-H6)*(H7-H6<L6-L7 and H6>H7)
+46.9*(H8-H7)*(H8-H7<L7-L8 and H7>H8)
+43.55*(H9-H8)*(H9-H8<L8-L9 and H8>H9)
+40.44*(H10-H9)*(H10-H9<L9-L10 and H9>H10)
+37.55*(H11-H10)*(H11-H10<L10-L11 and H10>H11)
+34.87*(H12-H11)*(H12-H11<L11-L12 and H11>H12)
+32.38*(H13-H12)*(H13-H12<L12-L13 and H12>H13)
+30.06*(H14-H13)*(H14-H13<L13-L14 and H13>H14)
+27.92*(H15-H14)*(H15-H14<L14-L15 and H14>H15)
+25.92*(H16-H15)*(H16-H15<L15-L16 and H15>H16)
+24.07*(H17-H16)*(H17-H16<L16-L17 and H16>H17)
+22.35*(H18-H17)*(H18-H17<L17-L18 and H17>H18)
+20.75*(H19-H18)*(H19-H18<L18-L19 and H18>H19)
+19.27*(H20-H19)*(H20-H19<L19-L20 and H19>H20)
+17.9*(H21-H20)*(H21-H20<L20-L21 and H20>H21)
+16.62*(H22-H21)*(H22-H21<L21-L22 and H21>H22)
+15.43*(H23-H22)*(H23-H22<L22-L23 and H22>H23)
+14.33*(H24-H23)*(H24-H23<L23-L24 and H23>H24)
+13.3*(H25-H24)*(H25-H24<L24-L25 and H24>H25)
+12.35*(H26-H25)*(H26-H25<L25-L26 and H25>H26)
+11.47*(H27-H26)*(H27-H26<L26-L27 and H26>H27)
+10.65*(H28-H27)*(H28-H27<L27-L28 and H27>H28)
+9.89*(H29-H28)*(H29-H28<L28-L29 and H28>H29)
+9.18*(H30-H29)*(H30-H29<L29-L30 and H29>H30)
+8.53*(H31-H30)*(H31-H30<L30-L31 and H30>H31)
+7.92*(H32-H31)*(H32-H31<L31-L32 and H31>H32)
>
78.78*(L0-L1)*(H1-H0>L0-L1 and L0<L1)
+73.16*(L1-L2)*(H2-H1>L1-L2 and L1<L2)
+67.93*(L2-L3)*(H3-H2>L2-L3 and L2<L3)
+63.08*(L3-L4)*(H4-H3>L3-L4 and L3<L4)
+58.57*(L4-L5)*(H5-H4>L4-L5 and L4<L5)
+54.39*(L5-L6)*(H6-H5>L5-L6 and L5<L6)
+50.5*(L6-L7)*(H7-H6>L6-L7 and L6<L7)
+46.9*(L7-L8)*(H8-H7>L7-L8 and L7<L8)
+43.55*(L8-L9)*(H9-H8>L8-L9 and L8<L9)
+40.44*(L9-L10)*(H10-H9>L9-L10 and L9<L10)
+37.55*(L10-L11)*(H11-H10>L10-L11 and L10<L11)
+34.87*(L11-L12)*(H12-H11>L11-L12 and L11<L12)
+32.38*(L12-L13)*(H13-H12>L12-L13 and L12<L13)
+30.06*(L13-L14)*(H14-H13>L13-L14 and L13<L14)
+27.92*(L14-L15)*(H15-H14>L14-L15 and L14<L15)
+25.92*(L15-L16)*(H16-H15>L15-L16 and L15<L16)
+24.07*(L16-L17)*(H17-H16>L16-L17 and L16<L17)
+22.35*(L17-L18)*(H18-H17>L17-L18 and L17<L18)
+20.75*(L18-L19)*(H19-H18>L18-L19 and L18<L19)
+19.27*(L19-L20)*(H20-H19>L19-L20 and L19<L20)
+17.9*(L20-L21)*(H21-H20>L20-L21 and L20<L21)
+16.62*(L21-L22)*(H22-H21>L21-L22 and L21<L22)
+15.43*(L22-L23)*(H23-H22>L22-L23 and L22<L23)
+14.33*(L23-L24)*(H24-H23>L23-L24 and L23<L24)
+13.3*(L24-L25)*(H25-H24>L24-L25 and L24<L25)
+12.35*(L25-L26)*(H26-H25>L25-L26 and L25<L26)
+11.47*(L26-L27)*(H27-H26>L26-L27 and L26<L27)
+10.65*(L27-L28)*(H28-H27>L27-L28 and L27<L28)
+9.89*(L28-L29)*(H29-H28>L28-L29 and L28<L29)
+9.18*(L29-L30)*(H30-H29>L29-L30 and L29<L30)
+8.53*(L30-L31)*(H31-H30>L30-L31 and L30<L31)
+7.92*(L31-L32)*(H32-H31>L31-L32 and L31<L32)

And this for the opposite

78.78*(H1-H0)*(H1-H0<L0-L1 and H0>H1)
+73.16*(H2-H1)*(H2-H1<L1-L2 and H1>H2)
+67.93*(H3-H2)*(H3-H2<L2-L3 and H2>H3)
+63.08*(H4-H3)*(H4-H3<L3-L4 and H3>H4)
+58.57*(H5-H4)*(H5-H4<L4-L5 and H4>H5)
+54.39*(H6-H5)*(H6-H5<L5-L6 and H5>H6)
+50.5*(H7-H6)*(H7-H6<L6-L7 and H6>H7)
+46.9*(H8-H7)*(H8-H7<L7-L8 and H7>H8)
+43.55*(H9-H8)*(H9-H8<L8-L9 and H8>H9)
+40.44*(H10-H9)*(H10-H9<L9-L10 and H9>H10)
+37.55*(H11-H10)*(H11-H10<L10-L11 and H10>H11)
+34.87*(H12-H11)*(H12-H11<L11-L12 and H11>H12)
+32.38*(H13-H12)*(H13-H12<L12-L13 and H12>H13)
+30.06*(H14-H13)*(H14-H13<L13-L14 and H13>H14)
+27.92*(H15-H14)*(H15-H14<L14-L15 and H14>H15)
+25.92*(H16-H15)*(H16-H15<L15-L16 and H15>H16)
+24.07*(H17-H16)*(H17-H16<L16-L17 and H16>H17)
+22.35*(H18-H17)*(H18-H17<L17-L18 and H17>H18)
+20.75*(H19-H18)*(H19-H18<L18-L19 and H18>H19)
+19.27*(H20-H19)*(H20-H19<L19-L20 and H19>H20)
+17.9*(H21-H20)*(H21-H20<L20-L21 and H20>H21)
+16.62*(H22-H21)*(H22-H21<L21-L22 and H21>H22)
+15.43*(H23-H22)*(H23-H22<L22-L23 and H22>H23)
+14.33*(H24-H23)*(H24-H23<L23-L24 and H23>H24)
+13.3*(H25-H24)*(H25-H24<L24-L25 and H24>H25)
+12.35*(H26-H25)*(H26-H25<L25-L26 and H25>H26)
+11.47*(H27-H26)*(H27-H26<L26-L27 and H26>H27)
+10.65*(H28-H27)*(H28-H27<L27-L28 and H27>H28)
+9.89*(H29-H28)*(H29-H28<L28-L29 and H28>H29)
+9.18*(H30-H29)*(H30-H29<L29-L30 and H29>H30)
+8.53*(H31-H30)*(H31-H30<L30-L31 and H30>H31)
+7.92*(H32-H31)*(H32-H31<L31-L32 and H31>H32)
<
78.78*(L0-L1)*(H1-H0>L0-L1 and L0<L1)
+73.16*(L1-L2)*(H2-H1>L1-L2 and L1<L2)
+67.93*(L2-L3)*(H3-H2>L2-L3 and L2<L3)
+63.08*(L3-L4)*(H4-H3>L3-L4 and L3<L4)
+58.57*(L4-L5)*(H5-H4>L4-L5 and L4<L5)
+54.39*(L5-L6)*(H6-H5>L5-L6 and L5<L6)
+50.5*(L6-L7)*(H7-H6>L6-L7 and L6<L7)
+46.9*(L7-L8)*(H8-H7>L7-L8 and L7<L8)
+43.55*(L8-L9)*(H9-H8>L8-L9 and L8<L9)
+40.44*(L9-L10)*(H10-H9>L9-L10 and L9<L10)
+37.55*(L10-L11)*(H11-H10>L10-L11 and L10<L11)
+34.87*(L11-L12)*(H12-H11>L11-L12 and L11<L12)
+32.38*(L12-L13)*(H13-H12>L12-L13 and L12<L13)
+30.06*(L13-L14)*(H14-H13>L13-L14 and L13<L14)
+27.92*(L14-L15)*(H15-H14>L14-L15 and L14<L15)
+25.92*(L15-L16)*(H16-H15>L15-L16 and L15<L16)
+24.07*(L16-L17)*(H17-H16>L16-L17 and L16<L17)
+22.35*(L17-L18)*(H18-H17>L17-L18 and L17<L18)
+20.75*(L18-L19)*(H19-H18>L18-L19 and L18<L19)
+19.27*(L19-L20)*(H20-H19>L19-L20 and L19<L20)
+17.9*(L20-L21)*(H21-H20>L20-L21 and L20<L21)
+16.62*(L21-L22)*(H22-H21>L21-L22 and L21<L22)
+15.43*(L22-L23)*(H23-H22>L22-L23 and L22<L23)
+14.33*(L23-L24)*(H24-H23>L23-L24 and L23<L24)
+13.3*(L24-L25)*(H25-H24>L24-L25 and L24<L25)
+12.35*(L25-L26)*(H26-H25>L25-L26 and L25<L26)
+11.47*(L26-L27)*(H27-H26>L26-L27 and L26<L27)
+10.65*(L27-L28)*(H28-H27>L27-L28 and L27<L28)
+9.89*(L28-L29)*(H29-H28>L28-L29 and L28<L29)
+9.18*(L29-L30)*(H30-H29>L29-L30 and L29<L30)
+8.53*(L30-L31)*(H31-H30>L30-L31 and L30<L31)
+7.92*(L31-L32)*(H32-H31>L31-L32 and L31<L32)

- Craig
Here to Help!
timo4sho
Posted : Sunday, July 16, 2006 3:24:05 AM
Registered User
Joined: 10/10/2004
Posts: 36
Sorry, but when I test this formula, the software says "Results: false"
Craig_S
Posted : Sunday, July 16, 2006 5:43:47 AM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
False only means it is not TRUE for the stock you tested it on.

Create the PCF and put it in EasyScan to see the stocks it is TRUE for.

- Craig
Here to Help!
Rockford
Posted : Thursday, November 20, 2014 5:23:34 PM
Registered User
Joined: 10/22/2014
Posts: 22

I created two PCF's from the above formulas, and put them in EasyScans, and the bullish scan seems to work great, but the bearish one doesn't.

Can you correct the formula for the bearish scan to produce a bearish trend?

Bruce_L
Posted : Friday, November 21, 2014 11:25:59 AM


Worden Trainer

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

I cannot reproduce the issue. The +DI is always above the -DI for a 14 period Directional Movement (+DI -DI) indicator when the first formula is true and the -DI is always above the +DI when the second formula is true.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Rockford
Posted : Saturday, November 22, 2014 6:05:15 PM
Registered User
Joined: 10/22/2014
Posts: 22

I looked at it again on a daily timeframe, and you are correct.

Thanks Bruce.

 

Bruce_L
Posted : Monday, November 24, 2014 2:07:03 PM


Worden Trainer

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

You're welcome.



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