RSI Format, Label, Watchlist, Scan For ThinkOrSwim

Perhaps I express myself wrong ... I mean an alert via email ... that is ... to have the possibility of receiving an email when the RSI crosses the level 30 downwards. thinkorswim offers this option, which cancels the alert once it is fulfilled ... my question is if there is a possibility of having the alert indefinitely, having the possibility of receiving an email every time the RSI crosses level 30.
 
Perhaps I express myself wrong ... I mean an alert via email ... that is ... to have the possibility of receiving an email when the RSI crosses the level 30 downwards. thinkorswim offers this option, which cancels the alert once it is fulfilled ... my question is if there is a possibility of having the alert indefinitely, having the possibility of receiving an email every time the RSI crosses level 30.
Without checking into your email request let me inform you that a majority of email notifications are delayed and would only be worthwhile for longer timeframes... I have had emails to multiple addresses delayed from different Alerts for extended periods of time... I would imagine that the reason for this would be server priority related, meaning that email notifications have a lower priority than some more mission critical processes... Just a heads-up...
 
I mean that the alert is constantly active, that is ... if they send me the alert because the RSI crossed 60 ... if the RSI falls again and after two hours it crosses it again ... well let me know again.
 
I mean that the alert is constantly active, that is ... if they send me the alert because the RSI crossed 60 ... if the RSI falls again and after two hours it crosses it again ... well let me know again.
Most alerts work that way... They aren't one-shot Alerts...
 
@rad14733 I believe that @jcga1981 is speaking about alerts created on a specific equity's chart. The alert is only active until the condition triggers it and then it is done. It works on the same basis as conditional orders.
 
as @MerryDay says ... they are conditional alerts ... that is, they notify me via email if, for example, the RSI crosses the level 80, but once it is activated, it is an alert and is no longer valid (active), Is there the possibility of having an alert (via email) that warns me every time the RSI in the SPY exceeds the level 80?
 
@jcga1981 Chart alerts are built on the same engine as conditional orders, once activated; it is no longer valid. You can search this forum for more information if you want to understand what you can and can not do w/ chart alerts and conditional orders.

The TOS platform and its rules can not be worked around. It is what it is.
 
My skills in coding are very bad. Can somebody be so kind to add a 50 level line to the standard RSI?

Thank you very much

Code:
#
# TD Ameritrade IP Company, Inc. (c) 2007-2020
#

declare lower;

input length = 14;
input over_Bought = 70;
input over_Sold = 30;
input price = close;
input averageType = AverageType.WILDERS;
input showBreakoutSignals = no;

def NetChgAvg = MovingAverage(averageType, price - price[1], length);
def TotChgAvg = MovingAverage(averageType, AbsValue(price - price[1]), length);
def ChgRatio = if TotChgAvg != 0 then NetChgAvg / TotChgAvg else 0;

plot RSI = 50 * (ChgRatio + 1);
plot OverSold = over_Sold;
plot OverBought = over_Bought;
plot UpSignal = if RSI crosses above OverSold then OverSold else Double.NaN;
plot DownSignal = if RSI crosses below OverBought then OverBought else Double.NaN;

UpSignal.SetHiding(!showBreakoutSignals);
DownSignal.SetHiding(!showBreakoutSignals);

RSI.DefineColor("OverBought", GetColor(5));
RSI.DefineColor("Normal", GetColor(7));
RSI.DefineColor("OverSold", GetColor(1));
RSI.AssignValueColor(if RSI > over_Bought then RSI.color("OverBought") else if RSI < over_Sold then RSI.color("OverSold") else RSI.color("Normal"));
OverSold.SetDefaultColor(GetColor(8));
OverBought.SetDefaultColor(GetColor(8));
UpSignal.SetDefaultColor(Color.UPTICK);
UpSignal.SetPaintingStrategy(PaintingStrategy.ARROW_UP);
DownSignal.SetDefaultColor(Color.DOWNTICK);
DownSignal.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);
 
Last edited by a moderator:
Hi Everyone,

I am looking to add an alert to the RSI indicator each time it goes below 34.

Please advise on how to add this code to the current RSI study.

My goal is to be able to get an alert each time a stock in my flexible grid goes below RSI of 34 in real-time.

Thank you.
 
@corello This can't be done with anything other than a Chart Alert as there would be lag with any other method... What RSI code are you using, the standard TOS licensed version...???
 
@corello Follow the tutorial posted in message #2

Or...you can use the code below:

Code:
#
# TD Ameritrade IP Company, Inc. (c) 2007-2020
#

declare lower;

input length = 14;
input over_Bought = 70;
input over_Sold = 30;
input price = close;
input averageType = AverageType.WILDERS;
input showBreakoutSignals = no;

def NetChgAvg = MovingAverage(averageType, price - price[1], length);
def TotChgAvg = MovingAverage(averageType, AbsValue(price - price[1]), length);
def ChgRatio = if TotChgAvg != 0 then NetChgAvg / TotChgAvg else 0;

plot RSI = 50 * (ChgRatio + 1);
plot OverSold = over_Sold;
plot OverBought = over_Bought;

def custom = 34;
def data = RSI crosses below custom;

Alert(data, "RSI crosses below 34", Alert.Bar, Sound.Chimes);
 
I have created the following to use both labels and alerts. Use the inputs or comment out (#) any functions that you don't want
Code:
# SD_RSILabel
# Last Mod: December 14, 2020

##### Begin Code #####
declare upper;

input length = 14;
input RSIOverbought = 70;
input RSIOversold = 30;
input RSIPos = 60;
input RSINeg = 40;
input median = 50;
input RSI_to_Median = yes;
input RSI_Warning = yes;
input AlertHiLevel = 70;
input AlertLoLevel = 30;

def RSIlabel = reference RSI(length,price = close);

AddLabel(yes, if RSIlabel > RSIlabel[1] then "                           RSI RISING                           " else "                          RSI FALLING                         ", if RSIlabel > RSIlabel[1] then Color.GREEN else Color.RED);

AddLabel(yes, if RSIlabel >= RSIOverbought then "                    RSI OVERBOUGHT                    " else "", Color.RED);

AddLabel(yes, if RSIlabel <= RSIOversold then "                       RSI OVERSOLD                       " else "", Color.GREEN);

AddLabel(RSI_Warning, if RSIlabel >= RSIPos then "                RSI HIGH WARNING                " else "", Color.RED);

AddLabel(RSI_Warning, if RSIlabel <= RSINeg then "                RSI LOW WARNING                " else "", Color.GREEN);

AddLabel(RSI_to_Median, " RSI TO MEDIAN " + Round(RSILabel,0) + " ", if RSIlabel > median then Color.LIME else if RSIlabel <= median then Color.ORANGE else Color.WHITE);

Alert(RSILabel > AlertHiLevel, "", Alert.Bar, Sound.Ring);
Alert(RSILabel < AlertLoLevel, "", Alert.Bar, Sound.Ring);

##### End Code #####
 
Hello,

This has probably been addressed already, but I can't find the answer, or I just don't know I'm looking at the answer. My labels only show the last candle value, (price, RSI, MACD, etc.).I would like to have them show the value of whatever candle I put the cursor on. Can someone point me to where I might find the answer to this? Thanks in advance.
 
@oswald57 Can RSI over bought and oversold be shown in a watchlist column? Can we change the RSI alert settings to lower than 30 and higher than 70 as desired for either condition? Can the cell background be shaded Green and Red accordingly?
 

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

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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