Scan for yesterday’s change from the open


Category:
0
0

Hello there,

I was wondering if it was possible to scan for stocks based on yesterday’s change from the open.

This is what I have for today’s % change from the open: plot scan = close <= open * 0.97;

And as a dollar value: plot scan = close <= open – 1.20;

But can the same be done for the previous day? I know it sounds simple enough but I know nothing at all about thinkscript. Any help would be appreciated. Thank you.

 

 

RESOLVED
Marked as spam
Posted by (Questions: 3, Answers: 4)
Asked on May 15, 2020 12:29 pm
263 views
1
Private answer

Yes, and the solution is very simple for those that understand how to write computer code. Nearly impossible for those that do not. Here is your exact same code, modified to look at the previous bar instead of the current bar:

plot scan = close[1] <= open[1] * 0.97;

The good news is that you don't need to learn how to write code to do this. You can use the Condition Wizard to build the code using only your mouse/trackpad:

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

Here is the code that would be generated if you were to build this using the Condition Wizard:

close from 1 bars ago is less than or equal to open from 1 bars ago

In order to include your test for the percent change you simply add the 0.97 to the end:

close from 1 bars ago is less than or equal to open from 1 bars ago * 0.97

Marked as spam
Posted by (Questions: 37, Answers: 4087)
Answered on May 15, 2020 3:24 pm
0
Super Fast response! You're the man!
( at June 21, 2020 11:41 am)