Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
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
|
|
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
|
|
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
|
|
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
|
|
Registered User Joined: 12/5/2018 Posts: 8
|
I will try those.
Thanks
|
|
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?
|
|
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
|
|
Registered User Joined: 12/5/2018 Posts: 8
|
Thanks. That should be very helpful
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |