Honestcowboy

Percentage Range Consolidation Histogram

Honestcowboy 업데이트됨   
The Percentage Range Consolidation histogram is a measure of volatility, ranking current price range compared to past ranges.

🟩​ USAGE


Here there are 2 heavy contractions of price shown on chart that lead to a big rally. Shows a possible way to approach trading this. Take into account that this is for illustration purposes only and these entry methods have not been tested for long term profitability.


Same price behaviour.


🟩​ CALCULATION

The script will use 3 different ranges all configurable by the user to check for low volatility on different zone lengths. On default zone 1 will be 10 period, 2 will be 30 period and 3 is 50 periods long.

It will then measure the percentage these ranges have from top (highest close) to bottom (lowest close) and plot those numbers as 3 gray histograms.

For each of these histograms separately it will use 'percentage zone PNR Length setting' as a lookback to rank current zone percentage compared to past results.
How it will do that is using the 'percentage zone PNR % setting' it will draw a line using ta.percentile_nearest_rank() formula. At default this is 20% meaning that only 20% of lookback values where below this level.

When the histogram is below this white line (small range compared to past ranges) it will color the histogram. Yellow for zone 1, orange for zone 2 and blue for zone 3.


There is also a 'Percentage zone % filter' which you can use as a maximum % current zone for it to be considered a small range. On default this is set to 15%. You can turn this off by selecting 'median' as 'Consolidation filters' instead of 'all'. Or only use this by selecting 'percentage'

🟩​ BAR COLORING

Now that you understand how to find small ranges (contractions of price) with the indicator there is a bar coloring option in the indicator.

You can select how many of the 3 zones have to be ranging for it to color the bar. On default this is set to 3 so the script will only color when price is in a very small range. As illustrated by the above charts these can lead to the beginnings of big trends.
릴리즈 노트:
As requested by a user added alerts to the script and show them in script.

  • "Consolidation start" - Alerts when a new consolidation area is created.
  • "breaks top of range" - Alerts when closing price closes above top of consolidation range.
  • "breaks bottom of range" - Alerts when closing price closes below bottom of consolidation range.

In case the break alerts are confusing here is a visual on how it works. Script will track highest highs and lowest lows in last consolidation area (as seen by red candles). When price is no longer consolidating and closes beyond one of these lines it removes them and sends an alert.
릴리즈 노트:
Changed background coloring for breaks to be red for short pressure and green for long pressure

✅ Learn how I trade as a FUND MANAGER with my private indicators here.

FREE telegram channel —> t.me/honestalgo
FREE telegram channel —> t.me/honestalgo
FREE telegram channel —> t.me/honestalgo
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

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