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 |

Ask for PCF of an indicator Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
xfan
Posted : Thursday, May 17, 2012 6:31:47 PM
Registered User
Joined: 11/3/2004
Posts: 2

Could anyone help me write a PCF that indicates the distance between the current price and the 20 bar moving average line? I hope that this indicator works on diferent time frames. Thanks

Xp

StockGuy
Posted : Thursday, May 17, 2012 9:58:02 PM

Administration

Joined: 9/30/2004
Posts: 9,187

ABS(C-AVGC20) if  you want the value in dollars.

ABS(C-AVGC20) / AVGC20 * 100 if you want it as a percentage.

If you want to know if it's above or below the moving average, just remove the ABS from the formula.

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.