@yamiyugi Welcome to useThinkScript! If you look closely at the chart I posted at the start, it is a bar chart. Try to change the chart type under the settings. Let me know how that works.
Markos what is the difference between your code of the Slim Ribbon and the original and the Arvie versionMr. Slim Miller was one of the original OEX pit traders at the CBOE. His website is askSLIM dot com.
This indicator is very customizable. Alerts are built in, you can use regular candles if you wish, you can turn all of the EMA's off and the color of the ribbon will still be there.
If you cannot find what you are looking for when you click the cog, open the code itself and take a look at what is there. This indicator also overrides the color of your volume bars. Lastly, this indicator is good for any timeframe without adjusting the EMA's.
Try it with a TMO or the RSI Laguerre on the bottom. Good trading, Markos.
thinkScript Code
Rich (BB code):#Mr Slim Miller at askSLIM dot com #SlimRibbonCustom_markos9-7-18 input price = close; input superfast_length = 8; input fast_length = 13; input slow_length = 21; input displace = 0; def mov_avg8 = ExpAverage(price[-displace], superfast_length); def mov_avg13 = ExpAverage(price[-displace], fast_length); def mov_avg21 = ExpAverage(price[-displace], slow_length); #moving averages Plot Superfast = mov_avg8; plot Fast = mov_avg13; plot Slow = mov_avg21; def buy = mov_avg8 > mov_avg13 and mov_avg13 > mov_avg21 and low > mov_avg8; def stopbuy = mov_avg8 <= mov_avg13; def buynow = !buy[1] and buy; def buysignal = CompoundValue(1, if buynow and !stopbuy then 1 else if buysignal[1]==1 and stopbuy then 0 else buysignal[1], 0); plot Buy_Signal = buysignal[1] == 0 and buysignal==1; Buy_signal.setpaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP); Buy_signal.setdefaultColor(color.dark_GREEN); Buy_signal.hidetitle(); Alert(condition = buysignal[1] == 0 and buysignal == 1, text = "Buy Signal", sound = Sound.Bell, "alert type" = Alert.BAR); plot Momentum_Down = buysignal[1] ==1 and buysignal==0; Momentum_down.setpaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN); Momentum_Down.setdefaultColor(color.yellow); Momentum_down.hidetitle(); Alert(condition = buysignal[1] == 1 and buysignal == 0, text = "Momentum_Down", sound = Sound.Bell, "alert type" = Alert.BAR); def sell = mov_avg8 < mov_avg13 and mov_avg13 < mov_avg21 and high < mov_avg8; def stopsell = mov_avg8 >= mov_avg13; def sellnow = !sell[1] and sell; def sellsignal = CompoundValue(1, if sellnow and !stopsell then 1 else if sellsignal[1]==1 and stopsell then 0 else sellsignal[1], 0); Plot Sell_Signal = sellsignal[1] ==0 and sellsignal; Sell_signal.setpaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_down); sell_signal.setDefaultColor(color.red); Sell_signal.hidetitle(); Alert(condition = sellsignal[1] == 0 and sellsignal == 1, text = "Sell Signal", sound = Sound.Bell, "alert type" = Alert.BAR); Plot Momentum_Up = sellsignal[1]==1 and sellSignal==0; Momentum_up.setpaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_up); Momentum_up.setDefaultColor(color.yellow); Momentum_up.hidetitle(); Alert(condition = sellsignal[1] == 1 and sellSignal == 0, text = "Momentum_Up", sound = Sound.Bell, "alert type" = Alert.BAR); plot Colorbars = if buysignal ==1 then 1 else if sellsignal ==1 then 2 else if buysignal ==0 or sellsignal==0 then 3 else 0; colorbars.hide(); Colorbars.definecolor("Buy_Signal_Bars", color.dark_green); Colorbars.definecolor("Sell_Signal_Bars", color.red); Colorbars.definecolor("Neutral", color.yellow); AssignPriceColor(if Colorbars ==1 then colorbars.color("buy_signal_bars") else if colorbars ==2 then colorbars.color("Sell_Signal_bars") else colorbars.color("neutral")); #end
Shareable Link
https://tos.mx/zbybTc
@Hguru , Arvi is the name of Slim Millers rt. hand man and top student. The only differences between that one and the one I posted is the color and my change from HA Candle to Bars. Arvi's version works better on a light background. Both have the alerts baked in for crossovers, etc. I got mine directly from Steve Miller when he stopped in at Theotrade.Markos what is the difference between your code of the Slim Ribbon and the original and the Arvie version
Cool, thanks BenTen!@eddielee394 Not at all
input price = close;
input superfast_length = 4;
input fast_length = 8;
input slow_length = 13;
input superslow_length = 50;
input displace = 0;
input addcould = yes;
def mov_avg4 = MovAvgExponential(price[-displace], superfast_length);
def mov_avg8 = MovAvgExponential(price[-displace], fast_length);
def mov_avg13 = MovAvgExponential(price[-displace], slow_length);
def mov_avg50 = MovAvgExponential(price[-displace], superslow_length);
#moving averages
plot Superfast = mov_avg4;
SuperFast.SetDefaultColor(Color.yellow);
plot Fast = mov_avg8;
Fast.SetDefaultColor(Color.red);
plot Slow = mov_avg13;
Slow.SetDefaultColor(Color.white);
plot SuperSlow = mov_avg50;
SuperSlow.SetDefaultColor(Color.green);
def buy = price crosses above mov_avg13;
def stopbuy = mov_avg4 <= mov_avg13;
def buynow = !buy[1] and buy;
def buysignal = CompoundValue(1, if buynow and !stopbuy then 1 else if buysignal[1] == 1 and stopbuy then 0 else buysignal[1], 0);
plot Buy_Signal = buy;
Buy_Signal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
Buy_Signal.SetDefaultColor(Color.DARK_GREEN);
Buy_Signal.HideTitle();
plot Momentum_Down = buysignal[1] == 1 and buysignal == 0;
Momentum_Down.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
Momentum_Down.SetDefaultColor(Color.YELLOW);
Momentum_Down.HideTitle();
def sell = price crosses below mov_avg13;
def stopsell = mov_avg4 >= mov_avg8;
def sellnow = !sell[1] and sell;
def sellsignal = CompoundValue(1, if sellnow and !stopsell then 1 else if sellsignal[1] == 1 and stopsell then 0 else sellsignal[1], 0);
plot Sell_Signal = sell;
Sell_Signal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
Sell_Signal.SetDefaultColor(Color.RED);
Sell_Signal.HideTitle();
plot Momentum_Up = sellsignal[1] == 1 and sellsignal == 0;
Momentum_Up.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
Momentum_Up.SetDefaultColor(Color.YELLOW);
Momentum_Up.HideTitle();
AddCloud(SuperFast, Slow, Color.GREEN, Color.RED);
#AddChartBubble(buy, price, price, Color.cyan);
#AddChartBubble(sell, price, price, Color.yellow);
#LONG STRAT ORDERS
AddOrder(OrderType.BUY_TO_OPEN, price crosses above mov_avg13);
AddOrder(OrderType.Sell_TO_CLOSE, price crosses below mov_avg8);
#SHORT STRAT ORDERS
#AddOrder(OrderType.SELL_TO_OPEN, price crosses below mov_avg13);
#AddOrder(OrderType.BUY_TO_CLOSE, price crosses above mov_avg8);
Ive done the same until FINALLY I realized the importance of the vwap. Now days I trade the 2-5min above oe below vwap so I put up a 20ma that works as a guide for me.to add to the above comments . I just watched the Slime Ribbon video and amazing I have been using the 8,21 originally for years then added the 13 EMA for the 8,13,21 EMA and still use this set up on everything I trade when using Moving Averages and still use them along with the above Hughman_StackedCloud and had also used a Gupppy Moving Average ribbon as well which included the 3,5,8,10,12,15 then 30 35(changed this one to the 34),40,45,50,60 even though those bands bend but do not break I expect the price to bounce back like a rubber band. I find the 34 EMA and 50 EMA to be very good support points to hold and bounce. I settled on the 8,13,21 EMA eventually. One of the things I noticed is that when price gets to far away from the 21 it must come back to it so one of the ways I used these moving averages was even though the 8,13,21 might be cross and price goes into the higher EMA's I also watch the 8 to see if it crosses the 13 if it does not even though price might cross or pierce the 21 there is a very good chance that price will then go back where is came from crossing the 8 and going past it in the direction it came from. if the 8 does cross the 13 then a very high probability of price going past the 21 and the 8 crossing the13 and the 21 and it keeps on going, something to watch for,
LB_GuppyMovingAverageClouds https://tos.mx/DFfcC7q
Join useThinkScript to post your question to a community of 21,000+ developers and traders.
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
Slim Miller's Long-Term Trend Trading Chart | Indicators | 9 | ||
Donchian Trend Ribbon For ThinkOrSwim | Indicators | 18 | ||
Slimmer Ribbon Indicator for ThinkorSwim | Indicators | 20 | ||
Repaints Cup and Handle Indicator for ThinkorSwim | Indicators | 23 | ||
The Ultimate Buy and Sell Indicator for ThinkOrSwim | Indicators | 5 |
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.