## New version 18 available now

Subscription & data-feed pricing Class schedule

Margin rates Stock & option commissions

 How to use the formula to write ADX and ADXR？ Rate this Topic:
 Previous Topic · Next Topic Watch this topic · Print this topic ·
yx25606
 Posted : Sunday, August 27, 2017 3:54:37 PM
Registered User
Joined: 10/5/2016
Posts: 68

Bruce_L
 Posted : Monday, August 28, 2017 9:39:16 AM

Worden Trainer

Joined: 10/7/2004
Posts: 62,989

A 14 period ADX can be written as follows in TC2000 v17.

`ADX14.14`

A 10 period ADXR of a 14 period ADX can be written as follows in TC2000 v17.

`(ADX14.14 + ADX14.14.10) / 2`

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
yx25606
 Posted : Wednesday, August 30, 2017 1:36:45 PM
Registered User
Joined: 10/5/2016
Posts: 68

Thank you！

How to use the formula to write +DI and -DI?

Bruce_L
 Posted : Wednesday, August 30, 2017 2:44:19 PM

Worden Trainer

Joined: 10/7/2004
Posts: 62,989

A 14 period +DI can be written as follows.

DIPLUS14

A 14 period -DI can be written as follows.

DIMINUS14

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
yx25606
 Posted : Wednesday, August 30, 2017 5:30:25 PM
Registered User
Joined: 10/5/2016
Posts: 68
Thank you!
Best regards!

yx25606
 Posted : Wednesday, August 30, 2017 8:02:39 PM
Registered User
Joined: 10/5/2016
Posts: 68
Why values and display the different？

ADX numerical values and display line is different。

Bruce_L
 Posted : Thursday, August 31, 2017 10:06:18 AM

Worden Trainer

Joined: 10/7/2004
Posts: 62,989

For the ADX it is because you should be using a period of 27 instead of 6.

100 * XAVG(ABS(DIPLUS14 - DIMINUS14) / (DIPLUS14 + DIMINUS14), 27)

For the ADXR it is both because of the issue with the ADX calculation and the fact that ADXR is not just a moving average of ADX. It adds together the value of the current ADX and the value from the ADXR period bars ago and divides the result by two. There are also some rounding done in the built in indicator which is accounted for in the formula below, but this does not result in significant changes to the result.

(100 * (XAVG(ABS(DIPLUS14 - DIMINUS14) / (DIPLUS14 + DIMINUS14), 27) + XAVG(ABS(DIPLUS14.10 - DIMINUS14.10) / (DIPLUS14.10 + DIMINUS14.10), 27)) / 2) \ 1

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
yx25606
 Posted : Thursday, August 31, 2017 5:33:12 PM
Registered User
Joined: 10/5/2016
Posts: 68

100 * XAVG(ABS(DIPLUS14 - DIMINUS14) / (DIPLUS14 + DIMINUS14), 27)>(100 * (XAVG(ABS(DIPLUS14 - DIMINUS14) / (DIPLUS14 + DIMINUS14), 27) + XAVG(ABS(DIPLUS14.10 - DIMINUS14.10) / (DIPLUS14.10 + DIMINUS14.10), 27)) / 2) \ 1
and
100 * XAVG(ABS(DIPLUS14.1 - DIMINUS14.1) / (DIPLUS14.1 + DIMINUS14.1), 27)<=(100 * (XAVG(ABS(DIPLUS14.1 - DIMINUS14.1) / (DIPLUS14.1 + DIMINUS14.1), 27) + XAVG(ABS(DIPLUS14.11 - DIMINUS14.11) / (DIPLUS14.11+ DIMINUS14.11), 27)) / 2) \ 1

Is that right?

How to send  pictures?

Al_Gorithm
 Posted : Friday, September 01, 2017 6:57:57 AM
Registered User
Joined: 6/30/2017
Posts: 1,037

Take a picture.

Attach using Image icon above.

Bruce_L
 Posted : Friday, September 01, 2017 9:32:29 AM

Worden Trainer

Joined: 10/7/2004
Posts: 62,989

Yes, that should work. But a much shorter way to write the formula would be the following.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
yx25606
 Posted : Friday, September 01, 2017 3:41:22 PM
Registered User
Joined: 10/5/2016
Posts: 68
Thank UnclePennybags，Thank Bruce，Things get easier。

Al_Gorithm
 Posted : Friday, September 01, 2017 3:46:59 PM
Registered User
Joined: 6/30/2017
Posts: 1,037

Happy to help. Was in a hurry this morning so I was verrrrrry brief.

Lots of ways to do it, but once you have a picture you need to upload it to the internet. Several alternatives - I use TInyPic.com.

Then you use the Image icon here in the forum and paste the URL address of your internet picture into the dialog box.

Easy peasy. :)

yx25606
 Posted : Wednesday, September 06, 2017 4:46:34 PM
Registered User
Joined: 10/5/2016
Posts: 68

bcochrane
 Posted : Wednesday, September 06, 2017 5:01:16 PM
Registered User
Joined: 9/17/2010
Posts: 386

QUOTE (UnclePennybags)

Happy to help. Was in a hurry this morning so I was verrrrrry brief.

Lots of ways to do it, but once you have a picture you need to upload it to the internet. Several alternatives - I use TInyPic.com.

Then you use the Image icon here in the forum and paste the URL address of your internet picture into the dialog box.

Easy peasy. :)

I've been able to Paste pictures directly into the box

Al_Gorithm
 Posted : Thursday, September 07, 2017 3:59:30 PM
Registered User
Joined: 6/30/2017
Posts: 1,037

Bruce, is that you today?

Al_Gorithm
 Posted : Thursday, September 07, 2017 4:00:02 PM
Registered User
Joined: 6/30/2017
Posts: 1,037

Alright, what happend to that photo?!?

Bruce_L
 Posted : Thursday, September 07, 2017 4:03:39 PM

Worden Trainer

Joined: 10/7/2004
Posts: 62,989

Sorry, yes, that was a picture of me with a beard. It was just a test of using a Base64 image encoder and then pasting that directly into the URL window when adding an image instead of hosting the image remotely. It seems to have worked.

I thought I had deleted it pretty quickly, but apparently not.

Not quite sure if that is what bcochrane did or not. I really don't seem to be able to just paste an image into the forums but I could be missing a step.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Al_Gorithm
 Posted : Thursday, September 07, 2017 4:03:41 PM
Registered User
Joined: 6/30/2017
Posts: 1,037

Would you look at that!

Bruce, has that always worked? Have I been doing it the hard way all this time? LOL.

Bruce_L
 Posted : Thursday, September 07, 2017 4:06:56 PM

Worden Trainer

Joined: 10/7/2004
Posts: 62,989

I am not actually sure what you did, so I don't know. And I don't have a testing forum in which to run a bunch of experiments (we used to have an internal forum that wasn't public).

They also did some server maintenance over the weekend, so it could be new.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Al_Gorithm
 Posted : Thursday, September 07, 2017 4:11:38 PM
Registered User
Joined: 6/30/2017
Posts: 1,037

You forget, I'm HIGHLY caffeinated. Quick fingers. . Nice beard :)

This photo and the previous one I simply copied and pasted. Right-clicked on the source image and choose "Copy Image" (guess it copies to the clipboard?) ... then placed my cursor in the Message window and pasted with CTRL-V ...

Easy peasy. No more hosted image hassles. :)

Al_Gorithm
 Posted : Thursday, September 07, 2017 4:16:10 PM
Registered User
Joined: 6/30/2017
Posts: 1,037

Bruce, my wifi was hinky slow a few minutes ago, apologies for the double post. Feel free to delete one.

But just one... you gotta admit the snap of the kid is cute :)

Al_Gorithm
 Posted : Thursday, September 07, 2017 4:18:57 PM
Registered User
Joined: 6/30/2017
Posts: 1,037

I was thinking about that maintenance. You're right - it might be new.

Maybe the Watch This Topic bug is fixed. Going to try it. FIngers crossed.

Users browsing this topic
Guest-1

 Forum Jump Customer Training & Support - Ask a Trainer - TC2000 version 12/18 - Ask a Trainer - TC2000 version 7 - Ask a Trainer - StockFinder 5.0 - PCFs, EasyScan and Custom Indicators General Discussions - Stock and Market Talk - TC2000 version 12 or 18 - TC2000 version 7 - StockFinder 5.0 - RealCode for StockFinder 5.0 Tutorial Videos - TC2000 version 12 tutorial videos - TC2000 version 7 tutorial videos 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.