Range Bar Boundary Indicator For ThinkOrSwim

kempo

New member
Hello! I've searched for this and I can't find it anywhere... I'd like to put an Indicator on my range charts that indicate the price that a new range bar will start forming. It looks like this on NinjaTrader. Thanks!

https://www.screencast.com/t/PWroOq4o

I am hoping to use this on 50 and 100 tick Range Bars
 
Solution
Hello! I've searched for this and I can't find it anywhere... I'd like to put an Indicator on my range charts that indicate the price that a new range bar will start forming. It looks like this on NinjaTrader. Thanks!

https://www.screencast.com/t/PWroOq4o

I am hoping to use this on 50 and 100 tick Range Bars
so i wouldnt know how to convert it from time to ticks, but here is a start. https://usethinkscript.com/threads/atr-based-support-resistance-for-thinkorswim.1418/#post-13007
Hello! I've searched for this and I can't find it anywhere... I'd like to put an Indicator on my range charts that indicate the price that a new range bar will start forming. It looks like this on NinjaTrader. Thanks!

https://www.screencast.com/t/PWroOq4o

I am hoping to use this on 50 and 100 tick Range Bars
so i wouldnt know how to convert it from time to ticks, but here is a start. https://usethinkscript.com/threads/atr-based-support-resistance-for-thinkorswim.1418/#post-13007
 
Solution
Thanks! I haven't a clue how to accomplish that.:oops: I'll try to work my way through it though. It'll be good to learn a little programming and I appreciate the idea!

kempo

I've been lurking and learning, and would like to at least give something back. I trade almost purely range charts. This is what I put together for my purposes. I believe this is what you're looking for:

Code:
### vm_RangeBarTicksRemaining by vollermist, 2021 - 2022
### this is for range bar charts
###
input showLabels = yes;

def current_bar = !IsNaN(close) and IsNaN(close[-1]);
def nan = Double.NaN;
def agg = GetValue(GetAggregationPeriod(), 0);
def uinit = low + agg * 1.0;
def dinit = high - agg * 1.0;

plot maxtop = if current_bar then uinit else nan;
maxtop.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
maxtop.SetDefaultColor(Color.WHITE);
maxtop.HideBubble();

plot minbottom = if current_bar then dinit else nan;
minbottom.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
minbottom.SetDefaultColor(Color.WHITE);
minbottom.HideBubble();

AddChartBubble(showLabels and IsNaN(close[-1]), text = "  newbar@: " + maxtop, "price location" = maxtop * 1.0015, color = Color.WHITE, yes);
AddChartBubble(showLabels and IsNaN(close[-1]), text = "  newbar@: : " + minbottom, "price location" = minbottom * 0.9985, color = Color.WHITE, no);

###

Hope I posted this properly, and hope it helps somone.
 

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
339 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