Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Gold Customer
Joined: 11/9/2004 Posts: 6
|
I would like to write a PCF for Average True Range (ATR) and was hoping someone had already done this so I wouldn't have to reinvent the wheel.
If not, I know the formula but I am having trouble putting it into Telchart syntax. I need to calculate the maximum number of these three calculations: ABS(H-L) or ABS(H-C1) or ABS(L-C1). But I don't see any way to MAX or IF/THENS.
Would appreciate any help on this problem. Thanks.
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
You should check this out:
AVERAGE TRUE RANGE PCF
I found this by searching the forums. You too can search these forums for anything. Watch this short video on how to get the most from these forums: Learn how to use the forums: post a new topic, reply, Search existing topics
- Craig Here to Help!
|
|
Registered User Joined: 1/1/2005 Posts: 2,645
|
QUOTE (kenkozak) But I don't see any way to MAX or IF/THENS.
kenkozak,
The MAX and IF/THEN operations can both be accomplished in the PCF Language. They are just not in a form you may recognize.
Thanks, Jim Murphy
|
|
Guest-1 |