# Mobius Thrust Bars For ThinkOrSwim

#### MerryDay

Staff member
Staff
VIP
Mobius Thrust Bars Plots Volume and True Range in the same scale.
Per Mobius:
When price is expanding and is accompanied by higher volume, a trend is typically ending or beginning.
Adjust the Thrust Limit to fit your strategy best. The Default Thrust Limit excludes 99% of bars. It is plotting only the most recent of the top 1%.

Ruby:
``````# Thrust Bars
# Mobius
# Plots Volume and True Range in the same scale. When price expands accompanied by higher volume a trend is typically ending or beginning. Defult ThrustLimit excludes 99% of bars. Plotting only the most recent of the top 1%.

input n = 20;
input ThrustLimit = .99; #hint ThrustLimit: Percentile of bar to exclude.

def h = high;
def l = low;
def c = close;
def v = volume;
def x = barNumber();
def TR = TrueRange(h, c, l);
def TRh = highest(TR, n);
def TRl = lowest(TR, n);
def TRm = (TR - TRl) / (TRh - TRl);
def Vh = highest(v, n);
def Vl = lowest(v, n);
def Vm = (v - Vl) / (Vh - Vl);
def T_Bar = if TRm >= ThrustLimit and
Vm >= ThrustLimit
then x
else double.nan;
def T_h = if !isNaN(T_Bar)
then h
else T_h[1];
def T_l = if !isNaN(T_Bar)
then l
else t_l[1];
plot ThrustBar_h = if x >= HighestAll(T_Bar)
then HighestAll(if isNaN(c[-1])
then T_h
else double.nan)
else double.nan;
ThrustBar_h.SetDefaultColor(Color.dark_gray);
plot ThrustBar_l = if x >= HighestAll(T_Bar)
then HighestAll(if isNaN(c[-1])
then T_l
else double.nan)
else double.nan;
ThrustBar_l.SetDefaultColor(Color.dark_gray);
# End Code``````

87k+ Posts
275 Online

## The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
• Exclusive indicators
• Proven strategies & setups
• Private Discord community
• Exclusive members-only content
• 1 full year of unlimited support

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?