Plot Dynamic Alert as Study on Lower Chart


Category:
0
0

Hello,

I have a couple dynamic alerts / watchlist that populate as the day goes on. Is there a way to plot a simple 0/1 study on the bottom of the chart to show what time that is being triggered on the chart?

Marked as spam
Posted by (Questions: 4, Answers: 6)
Asked on February 22, 2020 11:58 am
99 views
0
Not without the code you are using.
( at February 22, 2020 3:19 pm)
0
Here is the scan itself, which includes the code. What I am looking for is a way to turn the scan into a study in the lower section, or indicators on the bar it occurs on. https://tos.mx/wvGimNC
( at February 22, 2020 5:26 pm)
0
Private answer

Ah, ok. So now that we know the code was used for a scan....(in the original question this was described as a dynamic alert / watchlist). The solution is very simple. Just copy the code into a new chart study. Be sure to include the following statement at the top of your new chart study code:

declare lower;

Done.

Any code that you use for a scan can be directly used to plot the raw signals as a lower study. No changes are required to the code. It just works.

If you wanted to understand how to do this you could have viewed virtually any of our free tutorials in the Scan category of the Thinkorswim Tutorials:

https://www.hahn-tech.com/category/tos/scans-tos/

 

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on February 22, 2020 6:21 pm