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 |

Average True Range Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
kenkozak
Posted : Tuesday, June 20, 2006 12:36:20 PM
Gold Customer 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.
Craig_S
Posted : Tuesday, June 20, 2006 12:38:57 PM


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!
bustermu
Posted : Tuesday, June 20, 2006 3:47:11 PM
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



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.