Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Request PCF Formula Pattern Correction Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
raider45
Posted : Saturday, September 23, 2017 3:16:46 PM
Registered User
Joined: 9/30/2011
Posts: 788

I would like to correct the following Formula Three Stars. Message Formula Error: Unable to parse number .5 At position 29.

C2 < O2 AND ABS(C2 - O2) > .5 * (H2 - L2) AND C2 - L2 > O2 - C2 AND C1 < O1 AND ABS(C1 - O1) > .5 * (H1 - L1) AND C1 - L1 > O1 - C1 AND H1 - L1 < H2 - L2 AND L1 > L2 AND O = H AND C = L AND H < H1 AND L > L1

Thank you and goodbye.

Raider45

Al_Gorithm
Posted : Saturday, September 23, 2017 3:43:22 PM

Registered User
Joined: 6/30/2017
Posts: 1,227

Frankly I suck at PCF syntax, but while the barista is pouring my next round I'd suggest changing both occurences of .5 to 0.5 and see if that helps. TC2000 is obviously not happy with a number beginning with a period, so add the leading zero. 

Ah, coffee is ready. Gotta go. Good luck!

bcochrane
Posted : Saturday, September 23, 2017 4:30:38 PM
Registered User
Joined: 9/17/2010
Posts: 484

And if that doesn't work, try

(H2 - L2)/2

raider45
Posted : Sunday, September 24, 2017 4:37:48 AM
Registered User
Joined: 9/30/2011
Posts: 788
The formula works but generates numbers, I would like the edit so that it generates the signal.
 
(H2 - L2) / 2
raider45
Posted : Sunday, September 24, 2017 1:32:20 PM
Registered User
Joined: 9/30/2011
Posts: 788
I would like to correct these two Pattern Three Star formulas so that they generate signals.
 

Three Stars in the South

C2 < O2 AND ABS(C2 - O2) > .5 * (H2 - L2) AND C2 - L2 > O2 - C2 AND C1 < O1 AND ABS(C1 - O1) > .5 * (H1 - L1) AND C1 - L1 > O1 - C1 AND H1 - L1 < H2 - L2 AND L1 > L2 AND O = H AND C = L AND H < H1 AND L > L1

Three Star
 
 
(C - O) <= .05 * (H - L) AND (C + O) / 2 - L> = .4 * (H - L) AND (C + O) (C1 - O1) AND (C1 + O1) / 2 - L1> = .4 * (H1 - L1) AND (C1 + O1) / (H2 - L2) and (C2 - O2) <= .05 * (H2 - L2) AND (C2 + O2) / 2 - L2> = .4 * (H2 - L2) AND (C2 + O2) / 2 -L2 <= .6 * (H2 - L2) AND H1 <L3 AND H1 <L1
 
Thank you in advance
Raider45
Bruce_L
Posted : Monday, September 25, 2017 12:28:41 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

Three Stars in the South can be re-written to avoid decimal markers as follows.

C2 < O2 AND ABS(C2 - O2) > 5 * (H2 - L2) / 10 AND C2 - L2 > O2 - C2 AND C1 < O1 AND ABS(C1 - O1) > 5 * (H1 - L1) / 10 AND C1 - L1 > O1 - C1 AND H1 - L1 < H2 - L2 AND L1 > L2 AND O = H AND C = L AND H < H1 AND L > L1

That said, I have no idea about the plain Three Star pattern as the "AND (C + O) (C1 - O1) AND" and "AND (C1 + O1) / (H2 - L2) and" sections do not make any sense to me. I do not know what these sections are supposed to do. Without these two sections, the formula could be written as follows.

(C - O) <= 5 * (H - L) / 100 AND (C + O) / 2 - L>= 4 * (H - L) / 10 AND (C1 + O1) / 2 - L1>= 4 * (H1 - L1) / 10 AND (C2 - O2) <= 5 * (H2 - L2) / 100 AND (C2 + O2) / 2 - L2>= 4 * (H2 - L2) / 10 AND (C2 + O2) / 2 -L2 <= 6 * (H2 - L2) / 10 AND H1 <L3 AND H1 <L1

That said, making these corrections do not mean the formulas are going to be true very often. I do not know where you got them, but these formulas seem quite restrictive.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
raider45
Posted : Monday, September 25, 2017 1:34:06 PM
Registered User
Joined: 9/30/2011
Posts: 788

The two formulas do not generate signals !

Bruce_L
Posted : Monday, September 25, 2017 1:42:18 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

Where did you get the formulas? They are very restrictive.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
raider45
Posted : Monday, September 25, 2017 2:26:06 PM
Registered User
Joined: 9/30/2011
Posts: 788

The two Bullish Pattern formulas are in the following site: http: //forums.worden.com/default.aspx? G = posts & t = 7989

Bruce_L
Posted : Tuesday, September 26, 2017 3:00:57 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

The fomulas were written by Craig and Julia. Neither still works here, so I can't ask them about the logic of the formulas.

I am probably going to be writing up my own candlestick formula list and tutorial, but I do not know how long it will take.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Al_Gorithm
Posted : Tuesday, September 26, 2017 3:04:47 PM

Registered User
Joined: 6/30/2017
Posts: 1,227

It's only Tuesday, Bruce ... by Friday will be just fine. ;)

Bruce_L
Posted : Wednesday, September 27, 2017 12:58:41 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

raider45,

Please try the following.

L2 < L1 AND L1 <= L AND L = C AND (C < O OR L = H) AND O = H AND H <= H1 AND C1 < O1 AND O1 - C1 < O2 - C2 AND H1 - L1 < H2 - L2 AND L2 < C2 AND C2 < O2 AND O2 = H2 AND FAVGC10 < AVGC10 AND C < C9

Three Stars in the South

Note that the candlestick pattern is still incredibly rare even as written. This rarity is noted by Bulkowski.



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