Sound Alert and Background color change

fluentd

New member
Not sure if this is possible or if maybe it has been done before but I am looking for a way to have an alert go off and change the color of the background on a chart temporarily when either price has a surge or volume surge happens?
 
Solution
Since you didn't provide the code that you need help with, take a look at this example below.

Code:
def abc = x;
plot data = abc;
Alert(data, " ", Alert.Bar, Sound.Chimes);
Since you didn't provide the code that you need help with, take a look at this example below.

Code:
def abc = x;
plot data = abc;
Alert(data, " ", Alert.Bar, Sound.Chimes);
 
Solution

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

A good example of this functionality is here:

https://usethinkscript.com/threads/change-charts-background-based-on-thinkscript-condition.3611/

This is great work in my view. I am trying to change this so that one can pick different conditions (different types of moving averages for instance). My severe limitations with ThinkScript are making my efforts futile. If I figure it out I will post. If anyone else has an example of this I would certainly appreciate it.

As always, thanks to all of the technical experts on this forum who are so generous with their time. It is very much appreciated!
 
So I created this basic label and used today, works fine but really need a sound alert when changes from red to green...or green to red
as I miss the change if I am busy. Is this even possible? Thanks for any help.

Code:
def mah13  = hullMovingAvg("length" = 13) ;
addLabel(1, "MAW back2", if  mah13 > mah13[1] then color.green else color.red);
 
Did you read the TOS instructions for setting up an alert? Where did you run into a problem?
HTH
did research could not find anything I could make work most are for price or crossovers I need for change in direction of single indicator!
 
@earlyinout Ahhhh... you are asking for the syntax for the alert.
For future reference, when making requests for assistance, CLARITY is key.
Ruby:
Alert(mah13 > mah13[1] and mah[1] < mah13[2], "reversal to uptrend", Alert.Bar, Sound.bell);
Alert(mah13 < mah13[1] and mah[1] > mah13[2], "reversal to downtrend", Alert.Bar, Sound.ding);

I 'think' this may be what you are requesting?
HTH
 
select /NQ chart then right click on chart and create an ALERT then choose the timeframe and choose study and then put

Code:
volume > 2500

choose your sound notification

repeat the process for a 2nd alert and instead of 2500 change it to 4500

this video below should help out as well
 
@jcga1981 The method @XeoNoX mentioned will work, but it is a once-and-done Alert... If you want to be alerted every time those target prices are hit you can create a Scan and set it to send an Alert every time either of those conditions are met... I currently have three such Alerts running to notify me of specific conditions throughout the trading day... I get alerts every 3 - 7 minutes from each Alert... Granted, a Chart Alert will be more responsive due to being real-time, but the delay on the Scan-based Alerts helps filter out false breakouts... Food for thought...
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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