Join useThinkScript to post your question to a community of 21,000+ developers and traders.
I'm pretty sure TMO will always be overbought/oversold when the triple exhaustion signal goes off. Not sure it will eliminate many false signals unless you're using TMO on a higher time frame.Try combining this with the True Momentum Oscillator. Wait for the alignment of the two to minimize the fakeouts.
that seems that is how it is playing out...do you have any other suggestions?I'm pretty sure TMO will always be overbought/oversold when the triple exhaustion signal goes off. Not sure it will eliminate many false signals unless you're using TMO on a higher time frame.
Sure, TMO can be oversold for quite some time without giving a buy signal. You are looking for a buy signal on TMO, not just oversold. I'm a swing trader so I am using these indicators on a daily chart. No idea about the lower time frames, have no interest.I'm pretty sure TMO will always be overbought/oversold when the triple exhaustion signal goes off. Not sure it will eliminate many false signals unless you're using TMO on a higher time frame.
Yes, the key is to wait for the buy signal for both. Just using oversold on TMO is nonsenseI think TMO is a great complement to Triple Exhaustion, at least from my initial backtesting. When both line up on the 10min for example, that´s a strong signal.
Exactly, it´s the signal you want to wait for to line up on both indicators and i even blanked out the OB & OS part of the code on my TMO study and then overlaid only the signal lines on the upper chart which makes the signals even more clear to see. I like it a lot on the 10min timeframe but also the 4/5min works well.Yes, the key is to wait for the buy signal for both. Just using oversold on TMO is nonsense
Gotcha. I've only used a version of TMO on Sierra and there are no entry signals. What are the entry signals for your TMO? MA cross or cross out of overbought/oversold? Although even with the entry signals I'd imagine there'd be a lot of overlap between the studies, perhaps too much to be a meaningful filter.Sure, TMO can be oversold for quite some time without giving a buy signal. You are looking for a buy signal on TMO, not just oversold. I'm a swing trader so I am using these indicators on a daily chart. No idea about the lower time frames, have no interest.
Need Shareable Link for TOS pleaseTriple Exhaustion Indicator For ThinkOrSwim
This is a pretty powerful indicator showing buy and sell exhaustion (MACD, Stochastic and DMI all in an extreme condition). When the exhaustion ends, expect a reversal. Thank you @cos251 for the code!
Code:## Triple Exhaustion Indicator ## ## ## CREDITS ## Requested by @Chence27 from criteria listed here https://usethinkscript.com/threads/triple-exhaustion-indicator.9001/ ## ## ## Removing the header Credit credits and description is not permitted, any modification needs to be shared. ## ## V 1.0 : @cos251 - Initial release per request from www.usethinkscript.com forum thread: ## : https://usethinkscript.com/threads/triple-exhaustion-indicator.9001/ ## V 1.1 : @chence27 - modifcations to better approximate original study ## ## ## declare upper; # --- Inputs input over_bought = 80; input over_sold = 20; input KPeriod = 10; input DPeriod = 10; input priceH = high; input priceL = low; input priceC = close; input averageType = AverageType.SIMPLE; input length = 1000; input paintBars = yes; input showLabels = yes; # --- Indicators - StochasticSlow / MACD / MACD StDev / DMI+/- def SlowK = reference StochasticFull(over_bought, over_sold, KPeriod, DPeriod, priceH, priceL, priceC, 3, averageType).FullK; def MACD = reference MACD()."Value"; def priceMean = Average(MACD, length); def MACD_stdev = (MACD - priceMean) / StDev(MACD, length); def dPlus = reference DMI()."DI+"; def dMinus = reference DMI()."DI-"; # --- End Indicators # --- Conditions def sellerRegular = SlowK < 20 and MACD_stdev < -1 and dPlus < 15; def sellerExtreme = SlowK < 20 and MACD_stdev < -2 and dPlus < 15; def buyerRegular = SlowK > 80 and MACD_stdev > 1 and dMinus < 15; def buyerExtreme = SlowK > 80 and MACD_stdev > 2 and dMinus < 15; # --- End Conditions # -- Price Color AssignPriceColor( if paintBars and sellerExtreme then Color.CYAN else if buyerExtreme and paintBars then Color.MAGENTA else if paintBars and sellerRegular then Color.GREEN else if buyerRegular and paintBars then Color.RED else if paintBars then Color.GRAY else Color.Current); # --- Arrows/Triggers plot RegularBuy = if sellerRegular[1] and !sellerRegular then low else Double.NaN; RegularBuy.SetPaintingStrategy(PaintingSTrategy.ARROW_UP); RegularBuy.SetDefaultColor(Color.GREEN); plot RegularSell = if buyerRegular[1] and !buyerRegular then high else Double.NaN; RegularSell.SetPaintingStrategy(PaintingSTrategy.ARROW_Down); RegularSell.SetDefaultColor(Color.RED); # --- Labels AddLabel(showLabels,"SellerRegular",Color.RED); AddLabel(showLabels,"SellerExtreme",Color.MAGENTA); AddLabel(showLabels,"BuyerRegular",Color.GREEN); AddLabel(showLabels,"BuyerExtreme",Color.CYAN);
Very nice @zeek! Thanks for sharing. Would you mind posting a shareable setup link? If not, no worries. Thank you.A few examples from today combining Triple Ext & TMO, nice signals
Need Shareable link for TOS pleaseI've made some small modifications to better approximate the color system of the original study. Also, there are no buy/sell entry signals for the extreme condition, so I got rid of those as well.
Code:## Triple Exhaustion Indicator ## ## ## CREDITS ## Requested by @Chence27 from criteria listed here https://usethinkscript.com/threads/triple-exhaustion-indicator.9001/ ## ## ## Removing the header Credit credits and description is not permitted, any modification needs to be shared. ## ## V 1.0 : @cos251 - Initial release per request from www.usethinkscript.com forum thread: ## : https://usethinkscript.com/threads/triple-exhaustion-indicator.9001/ ## V 1.1 : @chence27 - modifcations to better approximate original study ## ## ## declare upper; # --- Inputs input over_bought = 80; input over_sold = 20; input KPeriod = 10; input DPeriod = 10; input priceH = high; input priceL = low; input priceC = close; input averageType = AverageType.SIMPLE; input length = 1000; input paintBars = yes; input showLabels = yes; # --- Indicators - StochasticSlow / MACD / MACD StDev / DMI+/- def SlowK = reference StochasticFull(over_bought, over_sold, KPeriod, DPeriod, priceH, priceL, priceC, 3, averageType).FullK; def MACD = reference MACD()."Value"; def priceMean = Average(MACD, length); def MACD_stdev = (MACD - priceMean) / StDev(MACD, length); def dPlus = reference DMI()."DI+"; def dMinus = reference DMI()."DI-"; # --- End Indicators # --- Conditions def sellerRegular = SlowK < 20 and MACD_stdev < -1 and dPlus < 15; def sellerExtreme = SlowK < 20 and MACD_stdev < -2 and dPlus < 15; def buyerRegular = SlowK > 80 and MACD_stdev > 1 and dMinus < 15; def buyerExtreme = SlowK > 80 and MACD_stdev > 2 and dMinus < 15; # --- End Conditions # -- Price Color AssignPriceColor( if paintBars and sellerExtreme then Color.CYAN else if buyerExtreme and paintBars then Color.MAGENTA else if paintBars and sellerRegular then Color.GREEN else if buyerRegular and paintBars then Color.RED else if paintBars then Color.GRAY else Color.Current); # --- Arrows/Triggers plot RegularBuy = if sellerRegular[1] and !sellerRegular then low else Double.NaN; RegularBuy.SetPaintingStrategy(PaintingSTrategy.ARROW_UP); RegularBuy.SetDefaultColor(Color.GREEN); plot RegularSell = if buyerRegular[1] and !buyerRegular then high else Double.NaN; RegularSell.SetPaintingStrategy(PaintingSTrategy.ARROW_Down); RegularSell.SetDefaultColor(Color.RED); # --- Labels AddLabel(showLabels,"SellerRegular",Color.RED); AddLabel(showLabels,"SellerExtreme",Color.MAGENTA); AddLabel(showLabels,"BuyerRegular",Color.GREEN); AddLabel(showLabels,"BuyerExtreme",Color.CYAN);
Why don't you just copy and paste the code as a new study?Need Shareable link for TOS please
sorry, can't help you with conditional orders I not done coding of these. Am sure if you search"Conditional Order" on this pages there are tutorials and examples.Hello @skaboy et. al,
I am pretty new to this thinkscript thing and wondering if your Smoothed Heikin_Ashi_Moving_Average_S2 ThinkScript could be coded for conditional orders also? If so, please provide the code for using for Conditional Order, or provide suggestions on how it can be done? I like the entries and exits, and if used in conjunction with the SuperTrend Reversals and some other unique strategies here would be so very helpful. Most of these complex coding cannot be used for Conditional Orders, and wondering if your strategy is simple enough to be used for that purpose in addition to displaying on the charts. Thank you.
Boua.
A few examples from today combining Triple Ext & TMO, nice signals
Thanks for asking that question! Was wondering the same thing. Would it be possible to get a setup link? Thank you.How did you get those BUY lines going up the chart?
Nevermind, figured it out.How did you get those BUY lines going up the chart?
addverticalline(BUYsignal,"Buy",color.green,curve.short_dash);
addverticalline(SELLsignal,"Sell",color.red,curve.short_dash);
Nevermind, figured it out.
To those interested, use the addverticalLine function.
https://tlc.thinkorswim.com/center/reference/thinkScript/Functions/Look---Feel/AddVerticalLine
Hello COS251! Your code for Triple Exhaustion is much appreciated. I've been able to use the SCAN code to find triggers, however it's not working on a day timeframe. Any ideas how I could enable this? Thank you!Check to see if all criteria was coded as you indicated. Hopefully this is what you were looking for.
Triple Exhaustion Indicator
Ruby:## Triple Exhaustion Indicator ## ## ## CREDITS ## Requested by @Chence27 from criteria listed here https://usethinkscript.com/threads/triple-exhaustion-indicator.9001/ ## ## ## Removing the header Credit credits and description is not permitted, any modification needs to be shared. ## ## V 1.0 : @cos251 - Initial release per request from www.usethinkscript.com forum thread: ## : https://usethinkscript.com/threads/triple-exhaustion-indicator.9001/ ## ## ## declare upper; # --- Inputs input over_bought = 80; input over_sold = 20; input KPeriod = 10; input DPeriod = 10; input priceH = high; input priceL = low; input priceC = close; input averageType = AverageType.SIMPLE; input length = 1000; input paintBars = yes; input showLabels = yes; # --- Indicators - StochasticSlow / MACD / MACD StDev / DMI+/- def SlowK = reference StochasticFull(over_bought, over_sold, KPeriod, DPeriod, priceH, priceL, priceC, 3, averageType).FullK; def MACD = reference MACD()."Value"; def priceMean = Average(MACD, length); def MACD_stdev = (MACD - priceMean) / StDev(MACD, length); def dPlus = reference DMI()."DI+"; def dMinus = reference DMI()."DI-"; # --- End Indicators # --- Conditions def sellerRegular = SlowK < 20 and MACD_stdev < -1 and dPlus < 15; def sellerExtreme = SlowK < 20 and MACD_stdev < -2 and dPlus < 15; def buyerRegular = SlowK > 80 and MACD_stdev > 1 and dMinus < 15; def buyerExtreme = SlowK > 80 and MACD_stdev > 2 and dMinus < 15; # --- End Conditions # -- Price Color AssignPriceColor( if paintBars and sellerExtreme then Color.CYAN else if buyerExtreme and paintBars then Color.GREEN else if paintBars and sellerRegular then Color.YELLOW else if buyerRegular and paintBars then Color.DARK_GREEN else if paintBars then Color.GRAY else Color.Current); # --- Arrows/Triggers plot RegularBuy = if sellerRegular[1] and !sellerRegular then low else Double.NaN; plot ExtremeBuy = if sellerExtreme[1] and !sellerExtreme then low else Double.NaN; RegularBuy.SetPaintingStrategy(PaintingSTrategy.ARROW_UP); ExtremeBuy.SetPaintingSTrategy(paintingSTrategy.Arrow_UP); RegularBuy.SetDefaultColor(Color.LIME); ExtremeBuy.SetDefaultColor(Color.GREEN); plot RegularSell = if buyerRegular[1] and !buyerRegular then high else Double.NaN; plot ExtremeSell = if buyerExtreme[1] and !buyerExtreme then high else Double.NaN; RegularSell.SetPaintingStrategy(PaintingSTrategy.ARROW_Down); ExtremeSell.SetPaintingSTrategy(paintingSTrategy.Arrow_DOWN); RegularSell.SetDefaultColor(Color.Light_RED); ExtremeSell.SetDefaultColor(Color.RED); # --- Labels AddLabel(showLabels,"SellerRegular",Color.YELLOW); AddLabel(showLabels,"SellerExtreme",Color.CYAN); AddLabel(showLabels,"BuyerRegular",Color.DARK_GREEN); AddLabel(showLabels,"BuyerExtreme",Color.GREEN);
Triple Exhaustion Indicator SCAN (Scanner)
Ruby:## Triple Exhaustion Indicator SCAN ## ## ## CREDITS ## Requested by @Chence27 from criteria listed here https://usethinkscript.com/threads/triple-exhaustion-indicator.9001/ ## SCAN requested by @Trader_Andrew ## ## Removing the header Credit credits and description is not permitted, any modification needs to be shared. ## ## V 1.0 : @cos251 - Initial release per request from www.usethinkscript.com forum thread: ## : https://usethinkscript.com/threads/triple-exhaustion-indicator.9001/ ## : SCAN version requested by @Trader_Andrew ## ## ## # --- Inputs input over_bought = 80; input over_sold = 20; input KPeriod = 10; input DPeriod = 10; input priceH = high; input priceL = low; input priceC = close; input averageType = AverageType.SIMPLE; input length = 1000; input paintBars = yes; input showLabels = yes; # --- Indicators - StochasticSlow / MACD / MACD StDev / DMI+/- def SlowK = reference StochasticFull(over_bought, over_sold, KPeriod, DPeriod, priceH, priceL, priceC, 3, averageType).FullK; def MACD = reference MACD()."Value"; def priceMean = Average(MACD, length); def MACD_stdev = (MACD - priceMean) / StDev(MACD, length); def dPlus = reference DMI()."DI+"; def dMinus = reference DMI()."DI-"; # --- End Indicators # --- Conditions def sellerRegular = SlowK < 20 and MACD_stdev < -1 and dPlus < 15; def buyerRegular = SlowK > 80 and MACD_stdev > 1 and dMinus < 15; # --- End Conditions # --- Arrows/Triggers plot RegularBuyArrow = if sellerRegular[1] and !sellerRegular then 1 else Double.NaN; plot RegularSellArrow = if buyerRegular[1] and !buyerRegular then 1 else Double.NaN; plot RegularBuyTrendExists = if sellerRegular then 1 else Double.NaN; plot RegularSellTrendExists = if buyerRegular then 1 else Double.NaN;
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
H | Triple TSI For ThinkOrSwim | Indicators | 13 | |
Triple 3 Inside Bars Indicator and Scanner for ThinkorSwim | Indicators | 94 | ||
4 & 20 Period Historical Volatility - Reversals and Trend Exhaustion | Indicators | 6 | ||
Leledc Exhaustion Indicator for ThinkorSwim | Indicators | 46 | ||
Trend Exhaustion Indicator for ThinkorSwim | Indicators | 28 |
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.