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 |

What is wrong in this PCF in terms of syntax? Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
PradeepS
Posted : Thursday, March 14, 2019 2:41:01 PM
Registered User
Joined: 3/13/2015
Posts: 14

Hi Bruce,

What is wrong in this PCF in terms of syntax?

(STOC10 < -80 AND STOC260 < -80) OR (STOC10.1.1 -100< -80 AND STOC260.1.1 -100< -80) AND L>L1 AND C>H1 AND C>O AND O1>C1  AND AVGV60 >100000

Thanks

PS

 

 

Bruce_L
Posted : Thursday, March 14, 2019 4:00:16 PM


Worden Trainer

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

STOC10 can't be < -80 because stochastics runs from 0 to 100.

So it is either going to be:

STOC10 < 80

Or it is going to be:

STOC10 - 100 < -80

I suspect you want to subtract 100 because I suspect you are interested in Williams %R and not stochastics or you wouldn't have the -100 in the next section.

I also suspect you want an extra set of parantheses around all of the stochastics tests (although this is not strictly necessary since OR should calculate before AND).

So maybe something like the following?

((STOC10 < 20 AND STOC260 < 20) OR (STOC10.1.1 < 20 AND STOC260.1.1 < 20)) AND L > L1 AND C > H1 AND C > O AND O1 > C1 AND AVGV60 > 100000



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
PradeepS
Posted : Thursday, March 14, 2019 9:12:41 PM
Registered User
Joined: 3/13/2015
Posts: 14

Thanks Bruce! Initially I have found that PCF while watching one of the videos. Below is the screenshot I have captured from that video

http://tinypic.com/usermedia.php?uo=jJm7XUcEEIwhOX7lo7lAsIh4l5k2TGxc

 

PradeepS
Posted : Thursday, March 14, 2019 10:12:11 PM
Registered User
Joined: 3/13/2015
Posts: 14

Yes, I am interested in both Williams %R 10 and Williams %R 260 should be below -80

Bruce_L
Posted : Friday, March 15, 2019 7:07:03 AM


Worden Trainer

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

Do you know which video it is?

The formula given should test for Williams %R being below -80. The reason this works is that:

STOC10 - 100 < -80

Is the same thing as:

STOC10 < 20

Because you can just add 100 to both sides of the first formula to get the second formula.



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