Join useThinkScript to post your question to a community of 21,000+ developers and traders.
I do use different Aroon settings for different time frames 7 minute is 25 15 and 30min are 8@BillW The TOS platform makes me crazy sometimes. But I keep coming back because of this forum and posters like you. Using the Aroon eliminated 75% of my false signals. You are the best!
@MerryDay
What is the difference between Leavitt Slope & TTM Squeeze (SqueezePro) ?
They look quite similar.
Leavitt Slope seems better than TTM Squeeze in presenting the overall trend.
TTM Squeeze is more sensitive to price changes.
Thank you very much for your ongoing contributions, Henry.Leavitt Convolution Slope w Bollinger Bands
Code:# # TD Ameritrade IP Company, Inc. (c) 2020-2021 # declare lower; input price = close; input length = 49; def lProjection = reference TimeSeriesForecast(price = price, length = length, "bar plus" = 1); def convolutionLength = Floor(Sqrt(length)); plot LeavittConvolutionSlope = reference LinearRegressionSlope(price = lProjection, length = convolutionLength); plot ZeroLine = 0; LeavittConvolutionSlope.SetPaintingStrategy(PaintingStrategy.HISTOGRAM); LeavittConvolutionSlope.DefineColor("Summer", Color.GREEN); LeavittConvolutionSlope.DefineColor("Fall", Color.RED); LeavittConvolutionSlope.DefineColor("Spring", Color.LIGHT_GREEN); LeavittConvolutionSlope.DefineColor("Winter", Color.DARK_RED); LeavittConvolutionSlope.AssignValueColor(if LeavittConvolutionSlope >= LeavittConvolutionSlope[1] and LeavittConvolutionSlope > 0 then LeavittConvolutionSlope.Color("Summer") else if LeavittConvolutionSlope < LeavittConvolutionSlope[1] and LeavittConvolutionSlope > 0 then LeavittConvolutionSlope.Color("Fall") else if LeavittConvolutionSlope < LeavittConvolutionSlope[1] and LeavittConvolutionSlope < 0 then LeavittConvolutionSlope.Color("Winter") else LeavittConvolutionSlope.Color("Spring")); ZeroLine.SetDefaultColor(GetColor(7)); def LCS = LeavittConvolutionSlope; input Num_Dev_Dn = -2.0; input Num_Dev_up = 2.0; input averageType = AverageType.Simple; def sDev = stdev(data = LCS, 20); plot MidLine = MovingAverage(averageType, LCS, 20); plot Ldev2 = MidLine + -2 * sDev; plot Udev2 = MidLine + 2* sDev; plot Ldev1 = MidLine + -1 * sDev; plot Udev1 = MidLine + 1* sDev; #vw.setdefaultColor(color.yellow); Udev1.SetDefaultColor(Color.violet); Udev2.SetDefaultColor(Color.Plum); Udev1.SetPaintingStrategy(PaintingStrategy.DASHES); Udev2.SetPaintingStrategy(PaintingStrategy.DASHES); Udev1.SetLineWeight(1); Udev2.SetLineWeight(1); Ldev1.SetDefaultColor(Color.Violet); Ldev2.SetDefaultColor(Color.Plum); Ldev1.SetPaintingStrategy(PaintingStrategy.DASHES); Ldev2.SetPaintingStrategy(PaintingStrategy.DASHES); Ldev1.SetLineWeight(1); Ldev2.SetLineWeight(1);
For some reason this is not getting refreshed and still shows "Bull Begin" when its actually ended. Does anyone have the same issue?@Novaskimo here you go. I trust you know how to create a watch list column. All I did was remove the Vertical Lines for WL.
Full credit goes to @MerryDay
EDIT: Just realized CreateColor will not work for Watch list. So modified with static Color codes, Please feel free to change them to match the actual study colors. @Novaskimo
-Surya
Code:# TOS Leavitt Convolution Slope TOS Leavitt Convolution Acceleration # labels by @MerryDay January 2021 # https://www2.wealth-lab.com/wl5wiki/TASCJan2020.ashx # TOS Leavitt Convolution Slope + # TOS Leavitt Convolution Acceleration def LCSlope = reference LeavittConvolutionSlope("price" = close, "length" = 49)."LeavittConvolutionSlope" ; # TOS Leavitt Convolution Acceleration def LCAcceleration = reference LeavittConvolutionAcceleration("price" = close, "length" = 49)."LeavittConvolutionAcceleration" ; def TrendBegin = LCSlope[1] < LCSlope[2] and LCSlope > LCSlope[1] and LCAcceleration > LCAcceleration[1]; def Trending = LCSlope > LCSlope[1] and LCAcceleration > LCAcceleration[1] ; def Sloping = LCSlope > LCSlope[1]; AddLabel(LCSlope>=-.15, if LCSlope[1] > LCSlope[2] and LCSlope < LCSlope[1] and LCAcceleration < LCAcceleration[1] then "Bull End" else if LCSlope > LCSlope[1] and LCSlope crosses above -.15 and LCAcceleration > LCAcceleration[1] then "Bull Begin" else if LCSlope[1] < LCSlope[2] and LCSlope > LCSlope[1] and LCAcceleration > LCAcceleration[1] then "Bull Begin" else if LCSlope > LCSlope[1] and LCAcceleration > LCAcceleration[1] then "Slope & acceleration rising" else if LCSlope > LCSlope[1] then "Slope rising-acceleration not" else if LCSlope <= LCSlope[1] and LCAcceleration <= LCAcceleration[1] then "Slope & acceleration falling" else if LCSlope < LCSlope[1] then "Slope falling" else "Slope neutral" , if LCSlope[1] > LCSlope[2] and LCSlope < LCSlope[1] and LCAcceleration < LCAcceleration[1] then Color.Yellow else if LCSlope > LCSlope[1] and LCSlope crosses above -.15 and LCAcceleration > LCAcceleration[1] then Color.Green else if LCSlope[1] < LCSlope[2] and LCSlope > LCSlope[1] and LCAcceleration > LCAcceleration[1] then Color.Green else if LCSlope > LCSlope[1] and LCAcceleration > LCAcceleration[1] then Color.Green else if LCSlope > LCSlope[1] then Color.Plum else if LCSlope <= LCSlope[1] and LCAcceleration <= LCAcceleration[1] then Color.Red else if LCSlope < LCSlope[1] then Color.Red else Color.Plum);
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
Leavitt Projection Indicator for ThinkorSwim | Indicators | 12 | ||
C | MA Slope Scan For ThinkOrSwim | Indicators | 38 | |
D | Repaints MTF Moving Average Slope Histogram For ThinkOrSwim | Indicators | 20 |
Start a new thread and receive assistance from our community.
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.
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.