Climatic Volume Indicator for ThinkorSwim

Found this one to be quite interesting, so I converted it over to ThinkorSwim. I also added paintbars (turned off by default) to highlight climatic volume bars.



View attachment 6503
View attachment 6504

thinkScript Code

Code:
# Climatic Volume X
# Converted by BenTen at useThinkScript.com
# Original https://www.tradingview.com/script/rNEj0sM2-Climatic-Volume-X/

# Cloud Zone Code adopted from Larthomp's 'Big Bar Breakout' indicator
input limit_cloud_length = yes;
input cloud_length = 10;
input paintbar = no;
input Length = 10;
def AverageVolume = simpleMovingAvg(volume, Length);
def RelativeVolume = volume / AverageVolume;
input HighVolume = 2;

def a = RelativeVolume > HighVolume;

def climatice_vol = if a then 1 else 0;
def vol_high = if climatice_vol then high else vol_high[1];
def vol_low = if climatice_vol then low  else vol_low[1];
def vol_length = if climatice_vol then 1 else vol_length[1] + 1;
plot vol_hh = if limit_cloud_length == no or limit_cloud_length == yes and vol_length <= cloud_length then vol_high
else Double.NaN;
plot vol_ll = if limit_cloud_length == no or limit_cloud_length == yes and vol_length <= cloud_length then vol_low
else Double.NaN;
vol_hh.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
vol_ll.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
vol_hh.SetDefaultColor(Color.GRAY);
vol_ll.SetDefaultColor(Color.GRAY);

assignPriceColor(if paintbar and a then color.blue else color.current);
Can any one add an alert to this indicator please
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
690 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top