♥ 0 |
Hi Pete, How can I change the following code to scan for close is greater than highest high of minimum 3 to maximum 13 previous bars? plot scan = close > Highest(high[1], 13); Thanks,
Marked as spam
|
Private answer
The solution is much simpler than you realize. Try not to overthink this. You don't need to include each of those conditions in the same block of code. Just add several Study Filters to the Condition Group named "Any of the following". Then for each study filter use the Condition Wizard to build each section you want the scan to include it the results. How to use the Scan tool on Thinkorswim: https://www.hahn-tech.com/thinkorswim-scans-beginner-to-advanced/ How to use the Condition Wizard on Thinkorswim: https://www.hahn-tech.com/thinkorswim-condition-wizard/ I find that many viewers are getting stuck in the weeds thinking that there has to be a custom code solution to everything in Thinkorswim. However once you learn how to use the available tools you find you can do the vast majority of things even if you don't know the first thing about writing code. Get out of the box and liberate your imagination by learning to use the tools. Screenshot below shows two of the conditions you listed in your comment below your question. You can build the rest using this example, but first you must take the time to view the videos I linked above and practice. Marked as spam
|
Please log in to post questions.