Keltner Channels Linda Raschk LBR For ThinkOrSwim

jhorton56

Member
VIP
This channel is a second version designed by the famous American analyst Linda Raschke; it allows you to find the main trend and to implement a trend-following strategy. You can open a new long/short position when the price cross up the basis and the upper/lower band (jointly with other indicators).

Can someone please give this conversion a shot?
https://www.tradingview.com/script/JtDuXJox/
 
Last edited by a moderator:

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

View attachment 22246

Can someone please give this conversion a shot?

This channel is a second version designed by the famous American analyst Linda Raschke; it allows you to find the main trend and to implement a trend-following strategy. You can open a new long/short position when the price cross up the basis and the upper/lower band (jointly with other indicators).

https://www.tradingview.com/script/JtDuXJox/

//@version=3
study(title="Keltner Channels Linda Raschke", shorttitle="KCLR", overlay=true)
useTrueRange = input(true)
length = input(20, minval=1)
mult = input(1.5)
src = input(close, title="Source")
length2 = input(10, minval=1)
ma = ema(src, length)
range = useTrueRange ? tr : high - low
rangema = ema(range, length2)
upper = ma + rangema * mult
lower = ma - rangema * mult
c = fuchsia
cb = purple
u = plot(upper, color=c, title="Upper")
plot(ma, color=cb, title="Basis")
l = plot(lower, color=c, title="Lower")
fill(u, l, color=c)

check the below.

CSS:
#
# Request from useThinkScript.com member
# Sam4Cok@Samer800    - 06/2024

declare weak_volume_dependency;

input displace = 0;
input useTrueRange = yes;
input price = close;
input baseLineLength = 20;
input bandLength = 10;
input factor = 1.5;
input averageType = AverageType.EXPONENTIAL;
input trueRangeAverageType = AverageType.EXPONENTIAL;


def tr = TrueRange(high, close, low);
def range = if useTrueRange then tr else high - low;
def rangema = factor * MovingAverage(trueRangeAverageType, range, bandLength);

def ma  = MovingAverage(averageType, price, baseLineLength);

plot Avg = ma [-displace];
Avg.SetDefaultColor(Color.MAGENTA);

plot Upper_Band = ma [-displace] + rangema[-displace];
Upper_Band.SetDefaultColor(Color.PLUM);

plot Lower_Band = ma [-displace] - rangema[-displace];
Lower_Band.SetDefaultColor(Color.PLUM);

AddCloud(Upper_Band, Lower_Band, Color.PLUM);

#- End of CODE
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
307 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