Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Is an "If-Then" PCF now possible? Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
traderlady
Posted : Wednesday, April 5, 2017 6:14:20 PM
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)

Bruce_L
Posted : Wednesday, April 5, 2017 6:51:07 PM


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
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.