Help with Stacked SMA Scan


Category:
0
0

I’ve made a bunch of scans for myself, but I’m still a newbie.
I’m trying to create a scan that stacks sma’s in order (50 over 100 over 150 over 200 sma).
It might be simple but I can’t figure it out. Thanks!

The 50 sma is greater than the 100 and 150 and 200 sma
The 100 sma is greater than the 150 and 200 sma
The 150 sma is greater than the 200 sma

Marked as spam
Posted by (Questions: 3, Answers: 1)
Asked on May 22, 2020 1:58 pm
193 views
0
Private answer

Have you seen our video tutorial showing how to build scans using the Condition Wizard?

https://www.hahn-tech.com/thinkorswim-condition-wizard/

No need to learn any code. Just a few clicks of the mouse and you're done.

Be careful though because scans have a limited number of historical bars to run through. your 150 period and 200 period moving averages may exceed the data limit depending what time frame you select for the Study Filter.

Screenshot below shows how to setup the first stage of your scan. The rest is up to you. However I caution you to build this in stages. When you get to a point the scan returns zero results the most like problem is you have selected a moving average length that exceeds the historical data available to the scan. What to do? Move up to a higher time frame and user shorter moving average lengths, obviously.

Here is the code from the screenshot below:

SimpleMovingAvg("length" = 50)."SMA" is greater than SimpleMovingAvg("length" = 100)."SMA"

Here is a link that explains the historical data limits available to scans for a given time frame:

https://tlc.thinkorswim.com/center/howToTos/thinkManual/Scan/Stock-Hacker/studyfilters

 

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4084)
Answered on May 22, 2020 3:46 pm
0
Perfect... Thank you!
( at May 23, 2020 6:49 am)