♥ 0 |
Hello Pete, Sorry that I initially posted my question in the wrong place. I want to know if VWAP code can be edited for chart study and for scanning. Here is the link for the code that you already shared. Currently, it only gives audible alert. How can we edit this code so it alerts with up/down arrow sign on the chart? I am planning to applied the study chart to my watch list as well if possible. I really appreciate your help on this. Thanks, Shahrom https://www.hahn-tech.com/ans/alert-on-stock-touching-the-bottom-vwap/ input numDevDn = -2.0;
Marked as spam
|
Private answer
The signal which generates the alerts are as follows:
I took those right from the alert statements of the code you included in your question. We only need to add the word plot with a name for the plot and an equal sign at the beginning. Then a semicolon at the end:
That's it. Not kidding. You can adjust the plot settings through the Edit Studies window to display however you like. But if you want to assign default plot styles that display as arrows we simply add these two lines:
As for the scan, Thinkorswim allows you to build a scan for any of the plots on the VWAP with just a few clicks of the mouse. No need to use this code and in fact no need to know how to write any code at all. We do this by using the tool called Condition Wizard. Details here: https://www.hahn-tech.com/thinkorswim-condition-wizard/ Once you learn to use this tool the custom watchlist column will be very simple to deploy as well. Details here: https://www.hahn-tech.com/thinkorswim-condition-wizard-watchlist/ Marked as spam
|
Please log in to post questions.