Gold Customer
Joined: 2/9/2005 Posts: 20
|
Having a little trouble getting this formula correct.
Need an pcf to scan for a volume surge on any day/bar within the last 30 bars. Any help would be appreciated.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
How do you want to define the volume surge in the first place?
Let's say you wanted volume to be more than 3 times the 20 period average volume. The formula for this for one bar can be written as follows.
V > 3 * AVGV20
We can use this as the Boolean Formula in a Custom PCF % True Indicator with the Period set to 30 and the Average Type set to Simple.
Then click on the Custom PCF % True Indicator and select Create Scan Condition to create a condition for the Custom PCF % True Indicator being greater than 0. This condition will be true if and only if the Boolean Formula was true at least once during the last 30 bars.
The following webpage has illustrated step-by-step instructions for this technique. You just have to use the desired Boolean Formula for your volume surge with the Period of the Custom PCF % True Indicator set to 30.
Condition True at Least Once Over x Bars
-Bruce Personal Criteria Formulas TC2000 Support Articles
|