♥ 0 |
This is a follow up to a recent post. I tried to add comments to the same post and for some reason it stated that my response was invalid. I am looking for a simple scanner that meets these two criteria. 1.This week’s range is greater than last weeks range by at least 25% (1.25). AND
Marked as spam
|
Private answer
Quickest solution is to use the Condition Wizard to build the line of code for the range. I have selected to use the study named ATR (Average True Range). This will take into account any gaps from one bar to the next and gives a much more accurate value. Screenshot below shows how to setup the condition. The ATR on the left side is set to a length of 1 (this is the true range of the current bar). The ATR on the right side is set to a length of 14 (this is the 14 period average of the true range). All we have to do is copy the code generated by the Condition Wizard and append "* 1.25" to the end. Viewers can adjust this value to whatever value seems appropriate to them.
Just a few clicks of the mouse and a few taps on the keyboard. You can learn about how to use the Condition Wizard in the following video: https://www.hahn-tech.com/thinkorswim-condition-wizard/ Here is the line of code that computes the position of the close within the range (high to low) of the candle, expressed as a percent of that range:
Now we can put those together and provide the full section of code that runs as a scan.
Marked as spam
|
Please log in to post questions.