How to make alerts visible on chart


Category:
0
0

I have made a repeating “study alert” on TOS, and it sends me text notifications…  But I want to see it on my charts too.
How do you make alerts visible on charts; such as, a bubble, line, or other marking to indicate when/where on the chart the alert was triggered.
If possible, I’d like the alert on the chart to be visible on all timeframes.  My study alert is for a 4h chart, but I’d want to be able to see it on the weekly, daily, and 1h charts too.
Here’s the code I am using….

MACDHistogram().”Diff” from 2 bars ago is greater than or equal to 0.00026 and MACDHistogram().”Diff” from 1 bars ago is less than MACDHistogram().”Diff” from 2 bars ago and MACDHistogram().”Diff” from 3 bars ago is greater than 0 and close from 1 bars ago is less than or equal to close from 2 bars ago and MovAvgExponential(“length” = 100).”AvgExp” from 1 bars ago is greater than MovAvgExponential(“length” = 25).”AvgExp” from 1 bars ago and MACDHistogram().”Diff” from 3 bars ago is less than MACDHistogram().”Diff” from 2 bars ago

 

Marked as spam
Posted by (Questions: 2, Answers: 0)
Asked on January 11, 2022 6:42 pm
170 views
1
Private answer

Since your request is for a custom chart study solution I moved your question out of the "Alerts and Notifications" topic and into the "Chart Studies" topic.

The solution is much easier than you were probably thinking. You don't need to know anything about writing code to do this. Just drop that code into a new custom chart study and modify the plot style to whatever style you want.

Two screenshots below shows the basic steps.

If you want to learn a bit more about how to work with with these solutions I suggest the following videos...

This one teaches how to build complex conditions just like the one in your example:

https://www.hahn-tech.com/thinkorswim-condition-wizard/

This one shows how to apply the skills learned in the above video to a custom watchlist and chart studies.:

https://www.hahn-tech.com/thinkorswim-condition-wizard-watchlist/

 

 

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on January 12, 2022 9:14 am