Join useThinkScript to post your question to a community of 21,000+ developers and traders.
Never had much luck with the scanner I would suggest the watchlist columnsi am talking about the scanner code that is posted gives error
I can not get this scan to work. Do I set the condition to 'close is equal to (scan name) "Regular Buy Arrow" ' ?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)
**UPDATE - added extreme buy and trend plots!
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.1 : @cos251 - Added Extreme buy arrow and trend plots ## ## 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 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 # --- Arrows/Triggers plot RegularBuyArrow = if sellerRegular[1] and !sellerRegular then 1 else Double.NaN; plot ExtremeBuyArrow = if sellerExtreme[1] and !sellerExtreme then 1 else Double.NaN; plot RegularSellArrow = if buyerRegular[1] and !buyerRegular then 1 else Double.NaN; plot ExtremeSellArrow = if buyerExtreme[1] and !buyerExtreme then 1 else Double.NaN; plot RegularBuyTrendExists = if sellerRegular then 1 else Double.NaN; plot ExtremeBuyTrendExists = if sellerExtreme then 1 else Double.NaN; plot RegularSellTrendExists = if buyerRegular then 1 else Double.NaN; plot ExtremeSellTrendExists = if buyerExtreme then 1 else DOuble.NaN;
I do not use the scan buy I believe people were scanning the candles not the arrows. The watchlist column I shared is for the arrow within 3 bars. You can copy past it into the scanner I would imagine.I can not get this scan to work. Do I set the condition to 'close is equal to (scan name) "Regular Buy Arrow" ' ?
The Triple Exhaustion Indicator is extremely resource-intensive. Attempts at scanning will not be reliable.I can not get this scan to work. Do I set the condition to 'close is equal to (scan name) "Regular Buy Arrow" ' ?
I’ve tried a couple versions of the study in this thread, none seem to be mobile friendly. Any chance you could share the version that is mobile friendly?Yes it is mobile friendly... you will not see the colored candles only the arrows which indicates the end of exhaustion. I use it with my mobile setup.
Here is a screenshot of /ES 5min chart …
The red and green circles are Triple Exhastion… the circle that is dark inside is extreme exhaustion the circle with the lighter color inside is regular exhaustion
It would not be possible to use this indicator on mobileI’ve tried a couple versions of the study in this thread, none seem to be mobile friendly. Any chance you could share the version that is mobile friendly?
If your looking for the candles to paint… Mobile does not have that functionality. If you load the original version of Triple exhaustion then open in mobile and change the arrows to dots (or leave the arrows) you may also need to add more days to your charts or change the length in settings to 900 or 1000.I’ve tried a couple versions of the study in this thread, none seem to be mobile friendly. Any chance you could share the version that is mobile friendly?
If your looking for the candles to paint… Mobile does not have that functionality. If you load the original version of Triple exhaustion then open in mobile and change the arrows to dots (or leave the arrows) you may also need to add more days to your charts or change the length in settings to 900 or 1000.
The yellow circles show the green and red dots they are the “end of exhaustion” aka when the candles stop painting.
Scroll down to the “Mobile Setup” post it shows my triple exhaustion settings (regularbuy RegularSell extremebuy ExtremeSell)@HODL-Lay-HE-hoo! Hi HODL, I’ve also tried a couple of versions of the Triple Exhaustion Indicator study in this thread, but none of them are working on mobile. I tried to change the length in settings to 1000, but it is still not working. Your version seems to be working well on mobile. Would you be willing to share your code or link? Really interested to see it on mobile. Thank you.
###################################Hello, I found this script for a "Tripple Exhaustion Indicator". I wish to add a sound alert in the script in the "Arrows / Triggers" section for each "Arrow Up Or Arrow down statement. I found an example of "how to " on the web however I have not been able to successfully do it. I would really appreciate if some one can do it or show me how. I have below the original script I need modified and then below that the sample I found. Thanks.
## 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);
Here is another one where we utilize two different alert sounds. You'll hear a chime when there is an up arrow and a bell sound when there is a down arrow.
Ruby:
#
# TD Ameritrade IP Company, Inc. (c) 2017-2020
#
input price = close;
input length = 9;
input displace = 0;
plot AvgExp = ExpAverage(price[-displace], length);
plot UpSignal = price crosses above AvgExp;
plot DownSignal = price crosses below AvgExp;
AvgExp.SetDefaultColor(GetColor(1));
UpSignal.SetDefaultColor(Color.UPTICK);
UpSignal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
DownSignal.SetDefaultColor(Color.DOWNTICK);
DownSignal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
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.