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 |

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: 71

How to use the formula to write ADX and ADXR?

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


Worden Trainer

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

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

Directional Movement +DI -DI ADX



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

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: 65,138

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: 71
Thank you!
Best regards!
 
yx25606
Posted : Wednesday, August 30, 2017 8:02:39 PM
Registered User
Joined: 10/5/2016
Posts: 71
Why values and display the different?
ADXR=XAVG(XAVG(100*ABS((DIPLUS14)-(DIMINUS14))/((DIPLUS14)+(DIMINUS14)),6),6)
ADX=XAVG(100*ABS((DIPLUS14)-(DIMINUS14))/((DIPLUS14)+(DIMINUS14)),6)
 
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: 65,138

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: 71
Thank you for your reply!
 
ADR cross ADRX
 
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 1, 2017 6:57:57 AM

Registered User
Joined: 6/30/2017
Posts: 1,227

Take a picture.

Attach using Image icon above.

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


Worden Trainer

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

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

XUP(ADX14.14, (ADX14.14 + ADX14.14.10) / 2)



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

Registered User
Joined: 6/30/2017
Posts: 1,227

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 6, 2017 4:46:34 PM
Registered User
Joined: 10/5/2016
Posts: 71
Thank you for your help!!
 
bcochrane
Posted : Wednesday, September 6, 2017 5:01:16 PM
Registered User
Joined: 9/17/2010
Posts: 484

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 7, 2017 3:59:30 PM

Registered User
Joined: 6/30/2017
Posts: 1,227

Bruce, is that you today?

 

Al_Gorithm
Posted : Thursday, September 7, 2017 4:00:02 PM

Registered User
Joined: 6/30/2017
Posts: 1,227

Alright, what happend to that photo?!?

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


Worden Trainer

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

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 7, 2017 4:03:41 PM

Registered User
Joined: 6/30/2017
Posts: 1,227

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 7, 2017 4:06:56 PM


Worden Trainer

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

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 7, 2017 4:11:38 PM

Registered User
Joined: 6/30/2017
Posts: 1,227

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 7, 2017 4:16:10 PM

Registered User
Joined: 6/30/2017
Posts: 1,227

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 7, 2017 4:18:57 PM

Registered User
Joined: 6/30/2017
Posts: 1,227

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