♥ 0 |
Hi Pete, I understand that I would need to create a watchlist first, in order to receive audio alerts, then add a study to the watchlist. So then whenever AAPL meets the criteria of the study, it will be added to the watchlist, and thus I will receive an alert. So my question is, what would be the code for the study for this? Note, it is just to track a single stock, like AAPL, not the whole universe of stocks.
Marked as spam
|
Private answer
Before providing the solution I need to clear up some details so everyone understands how this is implemented. The steps described by the author of the post requires some corrections: There is no way to have an audible alert triggered from a custom script inserted into a watchlist gadget. If you plan to work with one ticker symbol at a time, the correct tool to use would the "Study Alert". You can read about the various alert types on the following post in the Q&A Forum: https://www.hahn-tech.com/ans/generate-alerts-from-macdstrat-chart-strategy/ If you wanted to use this solution to apply to a wide range of ticker symbols you would need to apply this to a custom scan, save that scan, and then use that to generate a dynamic alert. Those steps are described in the following video: https://www.hahn-tech.com/thinkorswim-scans-beginner-to-advanced/ I contacted the author of the post by email to get clarification on what time frame is used and how the "percent change" is computed. The response was to use the 15 minute time frame and to compare the current close to the close of 15 minutes prior. Which means our solution is supper simple. Just only line of code does the job:
That line of code is checking for 1% moves in either direction. All it's doing is comparing the current close to the previous close after multiplying that previous close to adjust it to a 1% change, up or down. Marked as spam
|
Please log in to post questions.