♥ 0 |
I want to scan stocks which current volume is greater than twice of last 50 days average. I tried to add this line to scan, plot scan = volume is greater than 2 * VolumeAvg(“length” = 50).”Vol”; It runs without error but the scan come back with zero fit.
Marked as spam
|
Private answer
I updated the question title to include the name of the study: VolumeAvg. In the screenshot below you will see how we begin to build this code using the Condition Wizard. Be sure to check the following video for details on how to use the Condition Wizard to build custom scans. https://www.hahn-tech.com/thinkorswim-condition-wizard/ You will see in the screenshot below that the VolumeAvg study contains two plots. You chose the plot named "Vol". So you were basically checking if the current volume is greater than the current volume times 2. Which will never be true. Because current volume is always equal to current volume. To get this to work you need to select the other plot from the VolumeAvg study which is named "VolAvg". Once we make this adjustment we can add the "times 2" to the code and we have this:
This works as expected. Marked as spam
|
Please log in to post questions.