Questions About Alerts In ThinkOrSwim

Brady0524

New member
The thinkscript study I created and shared yesterday, I try to use it in setting alert. But was unable to do it. The "OK" button stayed grayed out and was not available for me to continue to the alert. Then I saw the following message: "rec usage is not allowed in this context"

I'm looking to set up Conditional Study Alerts found under MarketWatch tab. In particular I wish to use the Languerre RSI, along with a few other conditions, to trigger alert to phone. The problem is the Rec Coding. If you enter this L-RSI into the study alert tab you get the statement found in the title. I was wondering if there was a work around. Thanks.
 
Hey guys. I made a static watchlist of stocks that I like to monitor and was looking for a way to be alerted whenever a certain criteria is met on the minute chart for these stocks. I made a custom thinkscript scan with my criteria and set it to only scan in that watchlist. I also created an alert to go off whenever the results of this scan are changed. Does this update instantaneously? Or is there a lag like there is with watchlist columns? Thanks in advance!

If you need faster than 3 minutes you have two options I can think of. Run the scan manually at whatever frequency. Add 32 of your symbols to a grid with a chart study that alerts and they will alert instantly with a sound and a message in the message center. There's an option in one of the menus on the top right of the chart window to load a watchlist into a grid.

If you use chart alerts, set once per bar and have it look at the previous bar so you don't get the signal until the bar closes.
 
Hi there..New here and would have also newbie questions about TOS:)..Last days i created easy alerts 1. alerts with drawing- on support/resistance line 2. custom study alerts on cross of moving averages/vwap (example below). I noticed that somtimes price cross them and they are not triggered and friend told me thats common Tos problem. Can I somehow fix it? 2. there is some way to create specific alert just once for whole watchlist?(for example this from code below)
Many thanx in advance

MovAvgExponential("length" = 80)."AvgExp" crosses close("symbol" = "MOSY", "period" = AggregationPeriod.MIN, "priceType" = PriceType.MARK) or reference VWAP("num dev dn" = 0.0, "num dev up" = 0.0)."VWAP" crosses close("symbol" = "MOSY", "period" = AggregationPeriod.MIN, "priceType" = PriceType.MARK) or MovAvgExponential("length" = 80)."AvgExp" crosses MovAvgExponential("length" = 241)."AvgExp" or MovAvgExponential("length" = 1000)."AvgExp" crosses close("symbol" = "MOSY", "period" = AggregationPeriod.MIN, "priceType" = PriceType.MARK)
 
@joker12

1.) Alerts cannot be triggered for hand drawn Support and Resistance lines created using Drawing Tools... They can only be triggered by lines drawn within Studies...

2.) I have not personally had Chart Alerts fail to trigger when all triggering criteria are met...

3.) We cannot implement alerts within Watchlists, therefore this request is no doable... You can, however, trigger them by creating a Scan and then telling it to send Alerts when symbols meet the scans criteria... This has been covered here in the forums so I won't repeat it here...
 
If you need faster than 3 minutes you have two options I can think of. Run the scan manually at whatever frequency. Add 32 of your symbols to a grid with a chart study that alerts and they will alert instantly with a sound and a message in the message center. There's an option in one of the menus on the top right of the chart window to load a watchlist into a grid.

If you use chart alerts, set once per bar and have it look at the previous bar so you don't get the signal until the bar closes.
how you can create alert for whole grid(32 tickers?) pls?
 
how you can create alert for whole grid(32 tickers?) pls?
  1. Create a study with a chart alert
  2. Create a grid of 32 charts in the timeframe you care about
  3. Load symbols into the grid
  4. Apply the alert study to all 32 charts
When the alert triggers on any of those 32 symbols you'll hear the sound you optionally set in the alert code and you'll see a message for each symbol that triggered an alert in the Message Center.
 
step 4. you mean apply it manually ticker by ticker? I was looking for sometihng more automatic..- meaning- if I change watchlist and load new watchlist to this grid i dont have to adjust alerts anymore and it will be apply for new tickers in watchlist..
 
RLSJOCm.png

KGqkvTa.png

I use a 15min Chicken Dance that Alexa plays throughout the house if I am away from my computer
and Danger Will Robinson if something in my portfolio starts misbehavin' :)
where you find this option pls? I am in scans, checkedall gadgets there at right side, but cant find "Alert when scan reslut change"...
 
@joker12 That is how to set up alerts if you are looking at the Watch List.
If you are looking at the scan, click on the menu icon located under the scan button
HTH
 
Last edited:
Hello, Is there a way to keep an alert active after it already triggered? For example, I created an alert on apple for when I get a "buy" signal from my indicator. But after that alert triggers, it doesn't stay active, you have to manually activate it again.
 
Hello, Is there a way to keep an alert active after it already triggered? For example, I created an alert on apple for when I get a "buy" signal from my indicator. But after that alert triggers, it doesn't stay active, you have to manually activate it again.

Are you referring to a Chart Alert, a Study Alert, or a Scan Alert...??? Chart Alerts are once-and-done... Chart Alerts only signal for the Bar, Tick, or ONCE... With the Once setting it will only fire once on that chart... Bar will fire once per bar, and Tick can trigger multiple times per Bar... Scan Alerts will fire every time the criteria is met, unless you set them to expire...
 
Hi, I am trying to set up a sound alert with a customized sound using Thinkscript .
I have created a test.mp3 sound it works using the alert on the "scan section" but I want to create this alert on a watchlist using code.
This is what I have but does not work. Can anyone help?

Code:
Alert(test, "EMA", Alert.BAR, Sound.test.mp3);
 
One way is to locate the the sound files folder for TOS, drop your mp3 in the same folder. You cannot do something such as /user/library/music/filename.mp3. Although I dont know if TOS scans for any unidentified files and will disable the program
 
Hi, I am trying to set up a sound alert with a customized sound using Thinkscript .
I have created a test.mp3 sound it works using the alert on the "scan section" but I want to create this alert on a watchlist using code.
This is what I have but does not work. Can anyone help?

Code:
Alert(test, "EMA", Alert.BAR, Sound.test.mp3);
Yes, you can create an alert for when a scan changes.
No, you cannot put an alert into a watchlist column script.
 
@ MeeryDay thanks for your answer.
Let me ask different: What is the code for this to include in the "scan section" however without using the auto setup for alert?
There has to be some sort of code similar to the standard alert sounds
Code:
Alert(test, "EMA", Alert.BAR, Sound.test.mp3);
 
Hey all. I am working on an entry exit label and would like the label to blink when it appears to get my attention.

I am using alerts right now (question about alerts down below this one). I am wondering if it is even possible.

I have a set of buy strength labels that change colors when buy strength > sell strength and visa versa for the other label so I know its at least plausible.

I have tried to insert that code into my EE label but can't get it to work for some strange reason. This would allow the label to change 2 colors which is really all I need. I don't need a label that cycles through all of the colors lol.

Ideally I would like the label to change color every second it is visible like green, white, green, white, etc. So I was thinking that the best way to do that is maybe GetTime() and SecondsTillStart() or something like that. I was also thinking something along the lines of "pricetype = last, if price > price[1] color.XX else if etc." or maybe something like a loop that uses volume increases like volume > volume[1] color.XX and volume > volume[2] color.XX.

But I want to ask the experts and pick their brain a little. Get some ideas swirling. I can't find anything like this on the internet at all. I've been trying to figure this out for a month now. I will not give up. I am not the type to ask for help. I believe in helping yourself. I love to learn and this principle keeps me learning and self taught but I have broken down and am asking for advise (I'm a new member and signed up to basically ask this question amongst other things... eyeing that VIP upgrade hard).

Another question I have is regarding alerts. When I use alerts and the message pops up, there is too much writing on it for one, so It's hard for me to parse through it and find the chart it's related to and the message.

The main problem is that the alert message doesn't stay up long enough. Is there a way to remedy this? To maybe change the amount of time the alert popup stays up? Or do we all need to bombard TDA to change the duration and shorten the message🤪? We should all bombard TDA about adding more alert sounds anyway. There are two alert sounds that are the same sounds you hear when your entry or exit orders go through. When I use those particular alert sounds it freaks me out because i think my stop got hit or an order I forgot about goes through. My hair falls out every time. I'm convinced this is where my receding hair line has come from🤣. So that leaves two sounds left. Unacceptable imo.

Can't wait to hear from the experts. I'm so excite.
 
Last edited by a moderator:

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
354 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