TradingView
TheLark
2014年4月24日午前5時11分

FREE INDICATOR: CHOPPINESS INDEX "TREND DETECTION FROM CHAOS" 

SPDR S&P 500 ETF TRUSTArca

詳細

About:
The Choppiness Index was created by E.W. Dreiss out of chaos theory, and attempts to gauge the current market's trendiness.
I've seen a few versions of this floating around, but this was built off the true version as described in the original 1993 release, you can read more about it here: edwards-magee.com/ggu/dreisscaos.pdf

Usage:
Values above 61.8 are considered very choppy, values below 38.2 are considered very trendy, but values along the entire scale can help you determine position sizing, or even weather you should be getting into this trade or not.
If you are looking for a new way to know weather the market is trending, about to trend, or just going sideways, this very handy indicator for algorithmic trading may be your answer.

Grab the source code here: pastebin.com/GEtpw6Pd
Installation video by @ChrisMoody here : blog.tradingview.com/?p=265

                 ░░░░░░░░░░░░░░░ Feel free to follow me to keep up with my latest scripts! ░░░░░░░░░░░░░░░
                 ░░░░░░░░░░░░ PLEASE THUMB UP OR STAR IF YOU LIKE THIS INDICATOR! ░░░░░░░░░░░░
                                                              I'd like as many people as possible to get it :)
コメント
kirklea
Hey thanks for making this available.

I am wondering whether it is possible to somehow invert the code though, so that chop is identified by values closer to the lower 38.2 zone and below, and trending values are above 61.8 etc. I just see this as making more sense to me, visually.

Another idea that struck me is a way to show chop values so that they fall in a certain zone above and below a zero midline (say +38.2 / -38.2), with up-trending shown by line values above +61.8 and down-trending shown by line values below -61.8 on a scale from +100 to -100. This would represent a very simple visual representation of price direction in addition to "trend vs chop".

In any case, if it isn't doable I am grateful for your post and will get to know how to use it as it is. Kind regards...Kirk.
CryptoGraffer
@kirklea, That is an interesting idea,I will check to see if I can figure out how to program it into the indicator and let you know.
TheLark
Thanks @CryptoGraffer for replying to @kirklea! I totally missed his message. Funny thing is, I've had an inverted version of this script just sitting around for ages now. I believe another members PM'd me for it a while back.

Anyways, here's the inverted version: tradethelark.com/codeshare/inverted-choppiness-index-TradingView.php

Have a great day, and as always, let me know if you have any questions.
CryptoGraffer
@TheLark, You're welcome, and thanks for sharing that! Can you explain briefly what the grey and blue lines represent, and how to read them? I understand if they are above a certain point it represents trend/chop but what do they represent relative to each other?
TheLark
@CryptoGraffer, Sure! No problem.

Grey and blue lines: Blue is the raw signal. This is the choppiness index line as described in Dreiss's paper.
The grey line is an average of the blue line. Basically all it does is smooth out the action of the blue line. The idea behind the smoothed average line is to minimize false signals due to sudden changes in the blue line. But be aware that smoothing always introduces lag. Sometimes the lag is beneficial, sometimes it results in late "true" signals.

If used, it should be used more as a reference to help validate what the blue line is telling you.
TheLark
@TheLark, The above link is dead. Ran out of time to carry the project through. Here's the inverted Choppiness Index for all those who are interested: pastebin.com/raw/dAcbjtTr
Ojin929010
This is great @TheLark thank you very much.
Snatchshis
That colour scheme was both unic (?),still nice and soft to look at...I didn't thought I should feel that far a "shades of brown" chart. Well done.
詳細