Registered User Joined: 10/5/2016 Posts: 71
|
How to use the formula to write ADX and ADXR?
|
|
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
|
|
Registered User Joined: 10/5/2016 Posts: 71
|
Thank you!
How to use the formula to write +DI and -DI?
|
|
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
|
|
Registered User Joined: 10/5/2016 Posts: 71
|
Thank you!
Best regards!
|
|
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。
|
|
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
|
|
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?
|
|
Registered User Joined: 6/30/2017 Posts: 1,227
|
Take a picture.
Attach using Image icon above.
|
|
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
|
|
Registered User Joined: 10/5/2016 Posts: 71
|
Thank UnclePennybags,Thank Bruce,Things get easier。
|
|
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. :)
|
|
Registered User Joined: 10/5/2016 Posts: 71
|
Thank you for your help!!
|
|
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
|
|
Registered User Joined: 6/30/2017 Posts: 1,227
|
Bruce, is that you today?
|
|
Registered User Joined: 6/30/2017 Posts: 1,227
|
Alright, what happend to that photo?!?
|
|
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
|
|
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.
|
|
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
|
|
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. :)
|
|
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 :)
|
|
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.
|
|
Guest-1 |