OPEN-SOURCE SCRIPT

(JS)DMI Bars

업데이트됨
Alright - so this is my own version of John Carter's "10x Bars"... I have done multiple things that are different from his version so they are slightly different..

So first of all the main indicator is based off of the ADX and the DMI;
For those who aren't familiar with it, Directional Movement is what you'd pull up under "built-in's" from the indicators tab (if you want to check it out).
The standard interpretation of this however, is when the ADX is above 20 that suggests the trend is strong, whereas under 20 suggests it is weak.
Also, when the D+ is above the D- that suggests a bullish trend, and D- above D+ suggests a bearish trend.

These bars take away the need to have it at the bottom of your screen, and places the data on the bars on your chart instead.

=========================================================================================================================================
So here's what the colors stand for -
Yellow - The ADX is under 20, no strength in trend

Shades of green occur when the ADX is above 20 and there's a bullish trend (D+ higher than D-)
Bright Green (Lime) - Bullish trend, D+ above 30
Green - Bullish Trend
Yellow Green - Bullish trend, D+ below 15

Shades of red occur when the ADX is above 20 and there's a bearish trend (D- higher than D+)
Bright Red - Bearish trend, D- above 30
Red - Bearish Trend
Orange - Bearish trend, D- below 15
=========================================================================================================================================

I have also added multiple time frame labels (label script used is the one created by Ricardo Santos)
These labels are color coded the same as the bars/candles, and they appear off to the right of your screen using every built in time increment from TradingView.
The purpose is to show you in real time, and on any chart resolution, what the current trend is on every individual time frame.

So using just one single chart you'll see your current resolutions candles, but also on the labels you'll see:

1 Minute
3 Minute
5 Minute
15 Minute
30 Minute
45 Minute
1 Hour
2 Hour
3 Hour
4 Hour
Daily
Weekly
Monthly

There is an input I added that allows you to adjust where your labels appear on the side of your screen as well!

=========================================================================================================================================

Now onto the volume spike portion of the indicator. This will plot a blue dot under each bar that has a spike in volume which meets your specified criteria.

I have 500% as the default setting.

What that means is that this indicator looks back and gets the 50 bar volume average and then applies dots where volume is 500% above average.

=========================================================================================================================================

Now finally, the reversal arrows. This is another simple to understand concept that I first read in John Carter's book "Mastering the Trade" that he calls "HOLP/LOHP".
I have added the ability to change the look back period you'd like the indicator to watch for highs and lows on.

What that stands for is 'High of Low Period' and 'Low of High Period', and it is used like this-
Whenever a bar makes a new high the indicator watches the low on that highest bar. Then when a bar afterwards makes a lower low then the one on the high bar,
a reversal arrow is given. Apply this same concept in the other direction in for the highs on the lowest bars.

=========================================================================================================================================

Now, I didn't want to make a "set" or have a bunch of different indicators out there that are all intended for the same package, so I took the time to put them together,
and if there's a part of it you don't care for they can easily be turned off in the settings.

Enjoy!
릴리즈 노트
I changed some of the code regarding the multi-time analysis labels... I initially didn't have them coded for all the colors, changed that...
릴리즈 노트
Added "lookahead" to fix the time increment issue on the multi-time frame labels
릴리즈 노트
I really didn't change much of anything in the code, but wanted to clarify in an update how the DMI labels for smaller time frames than whatever your chart resolution is, should be interpreted. This is directly from TradingView:

"When you request a value from a smaller timeframe ...... there is no way to represent the full data on the chart. In that case, the code takes the value for the last fitting bar."

So let's say you are on a 15 minute chart - the 1 min, 3 min, and 5 min update when a new candle opens to reflect the first bar that occurred in the new time frame... so in order to truly see everything (from the labels) in real time you'd have to watch a 1 minute chart...

Hope that clarifies everything a bit! Thanks again!
ADXAverage Directional Index (ADX)Directional Movement Index (DMI)DMIDM Indicatordminusdplusreversalpointvolumeindicator

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?

면책사항