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 |

Request for clarification PCF Formula Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
raider45
Posted : Friday, June 17, 2016 4:36:14 AM
Registered User
Joined: 9/30/2011
Posts: 788

I would like to know the logic or the operation policy of the PCF formula copied in full (except for errors and omissions).

In the meantime, thank you in advance and greetings from Italy

Rosario Columbro

((O1 > C1) AND (C > O1) AND (O <= C1)) OR

((O2>C2) AND (C1 <C2) AND (O1 < C2) AND (C1 < O) AND (O1 <O) AND

(C >O) AND (C > C2)) OR

((O1 > C1) AND (O<=C) ((H-C)/(H-L) 0.3) AND ((H-O)/(H.L)<0.3) AND

(L<L1) AND (L1 < L2))

StockGuy
Posted : Friday, June 17, 2016 9:44:46 AM

Administration

Joined: 9/30/2004
Posts: 9,187
PCF order of operations
 
*,/
 
+,-
 
>,>=,<,<=,=,<>
 
OR
 
AND
raider45
Posted : Friday, June 17, 2016 10:42:26 AM
Registered User
Joined: 9/30/2011
Posts: 788
I'm not responsible, I copied the formula, it would be possible corregerla and make it work?
Thank you for your attention and cooperation.
Rosario Columbro
StockGuy
Posted : Friday, June 17, 2016 11:38:00 AM

Administration

Joined: 9/30/2004
Posts: 9,187

Try this. Changes in bold below. 

((O1 > C1) AND (C > O1) AND (O <= C1)) OR ((O2>C2) AND (C1 <C2) AND (O1 < C2) AND (C1 < O) AND (O1 <O) AND (C >O) AND (C > C2))  OR ((O1 > C1) AND (O<=C) AND ((H-C)/(H-L) < 0.3) AND ((H-O)/(H-L)<0.3) AND (L<L1) AND (L1 < L2))

raider45
Posted : Friday, June 17, 2016 12:06:09 PM
Registered User
Joined: 9/30/2011
Posts: 788

Does not generate signals, message Error Formula

StockGuy
Posted : Friday, June 17, 2016 12:08:07 PM

Administration

Joined: 9/30/2004
Posts: 9,187

Try copying and pasting again. I just tested it again and it works.

raider45
Posted : Friday, June 17, 2016 12:28:51 PM
Registered User
Joined: 9/30/2011
Posts: 788

I also replaced the comma with the points but does not generate signals, Error message Formula

StockGuy
Posted : Friday, June 17, 2016 1:03:40 PM

Administration

Joined: 9/30/2004
Posts: 9,187

Not sure what else to try, it works here.

Attachments:
formula.jpg - 86 KB, downloaded 365 time(s).

Majidmtl
Posted : Friday, June 17, 2016 2:22:40 PM
Registered User
Joined: 9/18/2014
Posts: 4

Hi admin, wht does this pcf look for? thank you,

StockGuy
Posted : Friday, June 17, 2016 3:44:40 PM

Administration

Joined: 9/30/2004
Posts: 9,187

I don't know what it's intent is. I just corrected some obvious isses that were causing it to throw an error when tested.

 

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.