♥ 0 |
Originally posted by Hilario Dsouza as a comment to the following video: https://www.hahn-tech.com/thinkorswim-watchlist-ttm-squeeze/ Hi Pete, On the TTM squeeze I wanted to setup a trigger (Plot) on the COLOR of the BAR. For Example if the COLOR is LIGHT BLUE or YELLOW then setup an alert. I see you did something similar in the video above. I am planning to use the color of the bar along with the MACD and stochastic indicator. I wrote the initial lines of code, but I am not sure how to get to the Yellow Bars. def yellowbar = TTM_Squeeze(price, length, nK, nBB, alertLine).SqueezeAlert;
Marked as spam
|
Please log in to post questions.
Hi Pete,
Since I’m new to ToS, I just wanted to inquire if
1) the code above should be inserted into a new study and then would be added to a chart and
2) Will this audible alert only be triggered on a displayed chart or can it be applied to a watchlist that uses the TTMSqueeze script you developed (but using a 5 min interval)
Thanks!
This is only applicable to chart studies. So the answer to question 1 is yes. Question 2, this code will only trigger an alert on an active chart. Alerts cannot be applied to a watchlist. However it is possible to create a custom scan and use that to build a dynamic alert that is applied to a list of stocks. We explain how to create dynamic alerts from custom scans towards the end of this video: https://www.hahn-tech.com/thinkorswim-overnight-range-scan-alert/
If you require further assistance please post a new question in the forum.