Registered User Joined: 3/21/2005 Posts: 13
|
Hi Bruce.
Please show me how to write a PCF for the following conditons:
Using Heiken-Ashi plot style, need to know when "price closes" for the first time
below it's own SMA10, price must have been at least 3 days above it's own SMA10 prior.
Like to be able to scan @ sort in a new colum on any watchlist.
Thanks hheiden.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following Condition Formula.
O + H + L + C < AVGO10 + AVGH10 + AVGL10 + AVGC10 AND O1 + H1 + L1 + C1 > AVGO10.1 + AVGH10.1 + AVGL10.1 + AVGC10.1 AND O2 + H2 + L2 + C2 > AVGO10.2 + AVGH10.2 + AVGL10.2 + AVGC10.2 AND O3 + H3 + L3 + C3 > AVGO10.3 + AVGH10.3 + AVGL10.3 + AVGC10.3
How to implement Heiken-Ashi substitutions for any Open, High, Low, and Close
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 3/21/2005 Posts: 13
|
Hi Bruce.
Thanks for your prompt reply.
I copied and pasted your formula and the test showed a Syntax error.
Bruce I'm not hung up on the Heiken-Ashi plot style, if the OHLC bar plot make the formula
any simpler I can use it. All I want to know, when price is closing for the first time below
or equal to the 10 SMA line.
Price must have been closing at least 3 consecutive days above the 10 SMA line prior too
its violation.
Thanks hheiden.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Are you using Internet Explorer or Edge when copying formulas from the forums into TC2000? If so, try copying and pasting the formula into Notepad and then copying and pasting the formula from Notepad into TC2000 instead of copying and pasting directly from the forums into TC2000.
Another option would be to use Chrome instead as it doesn't seem to be adding extra formatting like IE and Edge.
The formula is a bit shorter when using OHLC bars instead of HA candles, but the basic concept is the same.
C < AVGC10 AND C1 > AVGC10.1 AND C2 > AVGC10.2 AND C3 > AVGC10.3
-Bruce Personal Criteria Formulas TC2000 Support Articles
|