Above VWAP with two candles above stacked moving averages


Category:
0
0

Hi,

I am looking for a TOS script that scans and alerts the stocks whose at least two price candles are above 5, 10, and 20 SMA and VWAP at 5 minutes for an intraday time frame.

I know it can be done for a one time frame using the default study Movingavgcrossover but how to do it for multiple MA and VWAP. Please look into the attached images for example.

Thanks

Attachments:
Marked as spam
Posted by (Questions: 2, Answers: 1)
Asked on December 19, 2020 12:48 pm
281 views
0
Private answer

I updated the title of your question to include all the details in your question. This will help the rest of our viewers searching for a similar solution to quickly locate your post using the search function. I'm sure when you searched before posting this question you have already run across the following post:

https://www.hahn-tech.com/ans/three-stacked-moving-averages-and-price-between-two-of-them/

However that post does indeed explain everything you need to know in order to build this scan. You don't need to write a single line of code or even know the first thing about writing code. If you can work the mouse/trackpad on your computer you can build this scan in under 10 minutes.

In order to understand the screenshot I have provided below, be sure to view that previous link and follow each of the links provided in my answer to that question.

I have included a screenshot below showing how to setup everything except the VWAP portion of your request. Trust me, once you learn how to use the Condition Wizard, adding the VWAP portion will seem trivial.

If you don't want to check that previous post I am including direct links to those resources here:

Learn how to use the Condition Wizard here: https://www.hahn-tech.com/thinkorswim-condition-wizard/

Learn everything there is not about custom scans here: https://www.hahn-tech.com/thinkorswim-scans-beginner-to-advanced/

 

 

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on December 20, 2020 10:14 am
0
Thanks for the reply. Just in case if someone is interested my code looks like it SimpleMovingAvg(”length” = 5).”SMA” is greater than reference VWAP().”VWAP” within 2 bars and SimpleMovingAvg(”length” = 10).”SMA” is greater than reference VWAP().”VWAP” within 2 bars and SimpleMovingAvg(”length” = 5).”SMA” is greater than SimpleMovingAvg(”length” = 10, ”show breakout signals” = Yes).”SMA” and SimpleMovingAvg(”length” = 10).”SMA” is greater than SimpleMovingAvg(”length” = 20, ”show breakout signals” = Yes).”SMA
( at December 20, 2020 12:30 pm)