Registered User Joined: 10/7/2004 Posts: 1,178
|
I'm hoping with new v17 capabilities, you code an "if-then" PCF?
If O1>C1 (a candle with a black body) and then C>O1 (indicates a breakout and an opportunity to consider going long)
If O1<C1 (a candle with a white body), then C<O1 (indicates a breakdown and an opportunity to consider going short)
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
TC2000 v17 has an "Inline IF" which can be used to return specific values based on your requirements. So if you wanted to return 1 for long, -1 for short and 0 otherwise, you could use the following.
IIF(C > O1 AND O1 > C1, 1, IIF(C < O1 AND O1 < C1, -1, 0))
-Bruce Personal Criteria Formulas TC2000 Support Articles
|