Registered User Joined: 10/18/2008 Posts: 260
|
Hello,
I am trying to Scan for PinBars (hammer) that have at least made a new low in the past three days. I am getting bars that have made a new low in just 1 day or 2 days, not sure what I have wrong in the PCF. Could you check please?
STOC1 >= 55 AND 100 * O >= 45 * L + 55 * H AND H > L and L<L3
Thanks
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I am not quite sure what you mean by "made a new low in the past three days."
The portion that seems to be checking for a "low" would be the following.
L < L3
This is just checking for the low of the most recent bar being less than the low of 3 bars ago. If you want to check for the low of the most recent bar being less than the low of the previous 3 bars, this would be written as follows.
L < MINL3.1
If you want to check for at least one of three most recent bars being less than the low of three bars ago, it would be the following.
MINL3 < L3
If you want to check for one of the three most recent bars being the lowest in say the last month, you could write this as follows (assuming a daily time frame and 21 bar months).
MINL3 < MINL18.3
If you want to check for the low being lower than the low of the previous bar for three bars in a row, this could be written as follows.
L < L1 AND L1 < L2 AND L2 < L3
Or as follows (assuming TC2000 v18).
TrueInRow(L < L1, 3) = 3
I am sure there are numerous other less obvious possible interpretations as well.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 10/18/2008 Posts: 260
|
Thanks Bruce
I got what I need in in your answer.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|