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's Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
p828
Posted : Thursday, December 6, 2018 6:55:01 PM
Registered User
Joined: 12/5/2018
Posts: 8

Hi. I am new to TC2000. I am playing with the pcf's that I find in this forum. I am not having any luck getting them. to do what they are supposed to. I have tried several in the first few pages.

Thanks

Bruce_L
Posted : Friday, December 7, 2018 9:20:03 AM


Worden Trainer

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

Are you getting error messages? Can you provide a specific example of a formula you have tried and what happened versus what you expected to happen?



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
p828
Posted : Friday, December 7, 2018 12:02:11 PM
Registered User
Joined: 12/5/2018
Posts: 8

I can't find the specific posts that I was having trouble with, but I am interested in finding pcf's showing decreasing volitility over various time frames. And possibly one for high average volitility for several days. 

Thanks

Bruce_L
Posted : Friday, December 7, 2018 12:33:52 PM


Worden Trainer

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

Volatility can be measure in a lot of different ways. You might use average true range or Bollinger Bandwidth for example.

Checking for ATR14 being less than it was say 14 bars ago could be written as follows.

ATR14 < ATR14.14

Checking for a 50 period simple Bollinger Bandwidth being less than it was 5 bars ago could be written as follows.

ATR50 / AVGC50 < ATR50.5 / AVGC50.5

Checking for ATR10 increasing at least 3 bars in a row could be written as follows.

TrueInRow(ATR10 > ATR10.1, 3) = 3

Checking for a 20 period exponential Bollinger Bandwidth being higher during the most recent 3 bars than it has been in the previous 30 bars could be written as follows.

MIN(ATR20 / XAVGC20, 3) > MAX(ATR20.3 / XAVGC20.3, 30)

It really is going to depend on the specifics of how volatility is defined as well as on how to measure decreasing or high.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
p828
Posted : Friday, December 7, 2018 2:38:16 PM
Registered User
Joined: 12/5/2018
Posts: 8

I will try those.

Thanks

p828
Posted : Sunday, December 16, 2018 4:40:43 PM
Registered User
Joined: 12/5/2018
Posts: 8

Hi. Is it possible to write PCF  to have a doji preceded by 10 up bars in a row? If it is, would it work equally well  on a 1 min chart as a 1 hr chart or a 1 day chart?

Bruce_L
Posted : Monday, December 17, 2018 11:08:45 AM


Worden Trainer

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

Well a doji could be a true doji where the open is exactly equal to close or a near doji where the open and close just need to be close to each other.

And up bars could be based on net change:

C > C1

Or open vs close:

C > O

So, we end up with quite a few different combinations.

A near doji with net change for up bars would be:

20 * ABS(O - C) <= H - L AND TrueInRow(C1 > C2, 10) = 10

A near doji with open vs clos for up bars would be:

20 * ABS(O - C) <= H - L AND TrueInRow(C1 > O1, 10) = 10

A near doji with net change for up bars would be:

O = C AND TrueInRow(C1 > C2, 10) = 10

A near doji with open vs clos for up bars would be:

O = C AND TrueInRow(C1 > O1, 10) = 10

You can set the time frame of the resulting condition formula as desired.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
p828
Posted : Friday, December 21, 2018 9:22:12 AM
Registered User
Joined: 12/5/2018
Posts: 8

Thanks. That should be very helpful

Bruce_L
Posted : Friday, December 21, 2018 9:40:36 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.