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 |

PCF for shorts Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
bregoty
Posted : Thursday, December 22, 2011 5:06:03 PM
Registered User
Joined: 5/24/2007
Posts: 4

Hi, 

I need help in writing the PCF for these conditions ..

Here are steps :

In the last 2-3 months period,

Step 1) the stock should break down  the 50 day moving average (EMA) and
Step 2) It should make 52 week high and
Step 3) It should break down the 50 day moving average (EMA) and
Step 4) It should go up until the 20 day moving average.

thanks,
B

Bruce_L
Posted : Saturday, December 24, 2011 8:16:29 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
While it might be possible to simplify the requirements, I cannot think of a way to search for the exact requirements as specified in a way that would be short enough to be practical in either version of TC2000.

The technique which comes to mind for determining if these specific events happened in a specific order would involve determining howe many bars ago each event occurred.

Days Since Last Peak (or other day-counting needs)

This creates very long formulas for even relatively short periods and simple requirements. Looking over a 3 month time for four different requirements would not result in a formula which I could post.

In addition, Step 1 and Step 3 appear to be the same requirement. The method given is for finding the most recent occurance. A way to do so for the two most recent times something happens would be even more complicated.

It should probably be noted that this can be done using Sequence Conditions in StockFinder.

Creating Conditions

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
bregoty
Posted : Thursday, December 29, 2011 1:18:45 PM
Registered User
Joined: 5/24/2007
Posts: 4
Thanks Bruce.
Bruce_L
Posted : Friday, December 30, 2011 7:13:35 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

-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.