TradingView
kingthies
2021년 1월 8일 오후 7시 12분

Consolidation Ranges [kingthies] 

Bitcoin / U.S. dollarBitstamp

설명

Consolidation Range Analysis
[I] Published by Eric Thies, January 2021

Indicator Summary
  • This tool calculates, analyzes and plots the visualization of a relative range over a given period of time
  • By adding to charts, users are enabled to see the impulsive nature of market cycles, along with their efforts to consolidate thereafter
  • The default period is 30, and should be adjusted to users preference
  • The default input is the current close price, on the chosen timeframe of the chart



Script Source

// //@version=4 //© kingthies || This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ study("Consolidation Ranges [kingthies]", shorttitle="CR [kingthies]", overlay=true) // !<------ User Inputs -----> src = input(close, title='Range Input (Default set to Close'), lengthEMA=input(30,title='Length'),zoneToggle = input(true, title="Toggle Zone Highlights"), iCol = color.new(#FFFFFF, 100), // !<---- Declarations & Calculations ---- > trndUp = float(na),trndDwn = float(na), mid = float(na), e = ema(src, lengthEMA) trndUp := src < nz(trndUp[1]) and src > trndDwn[1] ? nz(trndUp[1]) : high, trndDwn := src < nz(trndUp[1]) and src > trndDwn[1] ? nz(trndDwn[1]) : low, mid := avg(trndUp, trndDwn) // !< ---- Plotting -----> highRange = plot(trndUp == nz(trndUp[1]) ? trndUp : na, color=color.white, linewidth=2, style=plot.style_linebr, title="Top of Period Range") lowRange = plot(trndDwn == nz(trndDwn[1]) ? trndDwn : na, color=color.white, linewidth=2, style=plot.style_linebr, title="Bottom of Period Range") xzone = plot(zoneToggle ? src > e ? trndDwn : trndUp : na, color=iCol, style=plot.style_circles, linewidth=0, editable=false) fill(highRange, xzone, color=color.lime,transp=70), fill(xzone, lowRange, color=color.red,transp=70) //


릴리즈 노트

Upgraded to pine v5
코멘트
wertull93
The default period is 30, and should be adjusted to users preference. What are the days, hours, candles expressed in?
sagamhc
Please specify the operating rules, I am not very good at using it
trinitytew
If I wanted to change the time period to 5 min and 1 min would I just change the script where it says 30 to 5/1 ? also on a lower time frame will script still be accurate.
evafesalbon
It's a fantastic indicator! It prevents me from taking many losing trades! Thanks so much!
Pintito3008
Awesome indicator. Look for price exit.
Price Exit on box bottom direction is down trend continuation.
Likewise, Price exiting box top direction is a uptrend continuation. Use with other indicators to confirm. But has really been a game changer. Thanks for all your hard work.
aswid84
@Pintito3008, Hi, Could you please explain to me how to look for price exit?
pestseliminated
thankyou for your efforts in producing a useful tool to use as p[art of a trading strategy
TwstedChurro
The period doesn’t seem to be working. It doesn’t adjust anything when changed.
CodyMaki
beautiful just what i been looking for thank you
GreenGanesh
its really great indicator.. thank you sir
더보기