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 |

Change PCF into Custom Indicator Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
mazetrade
Posted : Saturday, July 26, 2008 1:37:12 AM
Registered User
Joined: 7/23/2005
Posts: 8
Hi Mr. Trainer, back again and I would much appreciate it if you could change this PCF formula into a custom indicator formula. Here it is...

(c>c5 and c>o5) and (c> c15 and c>o15) and (c>c30 and c>o30) and (c>c390 and c>o390) and (c>1950 and c>o1950) and (c>c60) or (C < C5 AND C < O5) AND (C < C15 AND C < O15) AND (C < C30 AND C < O30) AND (C < C390 AND C < O390) AND (C < 1950 AND C < O1950) AND (C < C60)

By the way, concerning the above formula, before the word or is for up days, and after the or is for down days. Thanks for the help!!

dnhoward
Posted : Tuesday, July 29, 2008 9:08:26 PM
Registered User
Joined: 1/5/2007
Posts: 21
mazetrade,

Here's how I'd do it.  Right click on the are you want to the indicator and select Add Indicator -> Custom -> Percent True and copy and paste the PCF above into the "boolean formula" area of the popup.  That's it!  

This indicator will show you a True/False indicator.  A custom 'indicator' can be created with a formula that returns more than a true or false signal, but your formula doesn't.  Hope this helps!

dnhoward

fyi.  For curiousity I created a % true indicator as described above and it didn't show me not even one True signal from anything stock in the All Stocks universe.
diceman
Posted : Wednesday, July 30, 2008 2:42:17 AM
Registered User
Joined: 1/28/2005
Posts: 6,049
Make sure all the opens are opens and not zeros.

Thanks
diceman
bustermu
Posted : Wednesday, July 30, 2008 8:22:19 AM
Registered User
Joined: 1/1/2005
Posts: 2,645
QUOTE (mazetrade)
(c>c5 and c>o5) and (c> c15 and c>o15) and (c>c30 and c>o30) and (c>c390 and c>o390) and (c>1950 and c>o1950) and (c>c60) or (C < C5 AND C < O5) AND (C < C15 AND C < O15) AND (C < C30 AND C < O30) AND (C < C390 AND C < O390) AND (C < 1950 AND C < O1950) AND (C < C60)


mazetrade,

Your PCF will never return True.

You probably intended something like:

((c>c5 and c>o5) and (c> c15 and c>o15) and (c>c30 and c>o30) and (c>c390 and c>o390) and (c>c1950 and c>o1950) and (c>c60)) or ((C < C5 AND C < O5) AND (C < C15 AND C < O15) AND (C < C30 AND C < O30) AND (C < C390 AND C < O390) AND (C < C1950 AND C < O1950) AND (C < C60))

The major problem is that ORs are executed before ANDs.  This is a property peculiar to TeleChart.

The PCF requires about 7.8 years of data to even calculate.  Thus, about 42% of the All Stocks WatchList will be rejected today simply because there is insuficient data no matter what the "trend".

I don't know why you chose the particular bars for comparison nor why C is compared to C60 but not to O60.
 
Thanks,
Jim Murphy
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.