♥ 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
|
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:
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:
In order to include your test for the percent change you simply add the 0.97 to the end:
Marked as spam
|
Please log in to post questions.