Registered User Joined: 8/21/2011 Posts: 9
|
I am trying to create a formula to find price going down and TSV going up. This is what I have so far. Thanks Jim
(C>C1>C2>C3>C4>C5)
TSV18 TSV18.1 TSV18.2 TSV18.3 TSV18.4 TSV18.5
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Assuming you are interested in price falling for five consecutive days while an 18-Period Simple TSV is increasing for five consecutive days, you could try the following:
C < C1 AND C1 < C2 AND C2 < C3 AND C3 < C4 AND C4 < C5 AND TSV18 > TSV18.1 AND TSV18.1 > TSV18.2 AND TSV18.2 > TSV18.3 AND TSV18.3 > TSV18.4 AND TSV18.4 > TSV18.5
That said, while it is theoretically possible for price to go in one direction five bars in a row and an 18-Period Simple TSV to go in the other direction for five bars in a row, it is an incredibly unlikely occurance. TSV can contradict price, but a sustained contradiction of price is very difficult to sustain.
Checking for price to have decreased at least 4 out of 5 bars and the 18-Period Simple TSV to have increased for at least 4 out of 5 bars would be a far more likely occurance.
ABS(C < C1) - (C1 < C2) - (C2 < C3) - (C3 < C4) - (C4 < C5) > 3.5 AND ABS(TSV18 > TSV18.1) - (TSV18.1 > TSV18.2) - (TSV18.2 > TSV18.3) - (TSV18.3 > TSV18.4) - (TSV18.4 > TSV18.5) > 3.5
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 8/21/2011 Posts: 9
|
Thank you Bruce for your help. Jim
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|