Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 8/11/2005 Posts: 18
|
Hi, Is there a way I can program the following indicators:
1. Indicator 1= VOLUME:today * ( ClOSE:today - CLOSE:yesterday )
2. Indicator 2 = HIGH:today - EMA:today ( use EMA of 13 days ) 3. Indicator 3 = LOW:today - EMA:today
Thank you for your help
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
#1 is the formula for On Balance Volume (assuming you would want this as a cumulative indicator). You can add this to any chart and don't need to create a custom indicator.
Here are the formulas for your all three indicators (if #1 is not to be a cumulative indicator):
(C-C1)*V
H-XAVGC13
L-XAVGC13
I would check the ZERO LINE option for each of these.
Here is a video on how to create a custom indicator:
Plotting Custom Indicators with Examples
Here are some formula examples. Hopefully you noticed how easy the language is:
Handy PCF example formulas to help you learn the syntax of PCFs!
- Craig Here to Help!
|
|
Registered User Joined: 1/1/2005 Posts: 2,645
|
QUOTE (Craig_S) #1 is the formula for On Balance Volume (assuming you would want this as a cumulative indicator). You can add this to any chart and don't need to create a custom indicator.
Here are the formulas for your all three indicators (if #1 is not to be a cumulative indicator):
(C-C1)*V
Craig,
The increment for OBV is:
V*SGN(C0-C1)
Elder's Force Index is:
V*(C0-C1)
Thanks, Jim Murphy
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
Yep... you are correct. Mix up in the mind.
- Craig Here to Help!
|
|
Registered User Joined: 8/11/2005 Posts: 18
|
Here are the formulas for your all three indicators (if #1 is not to be a cumulative indicator):
(C-C1)*V
H-XAVG13
L-XAVG13
I would check the ZERO LINE option for each of these.
Thank you for your help. For the force index, I had successfully plotted it.
For H-XAVG13 AND L-XAVG13, I got the message "Formula error: missing argument".
Kindly help.
|
|
Registered User Joined: 8/11/2005 Posts: 18
|
QUOTE (zpring) Here are the formulas for your all three indicators (if #1 is not to be a cumulative indicator):
(C-C1)*V
H-XAVG13
L-XAVG13
I would check the ZERO LINE option for each of these.
Thank you for your help. For the force index, I had successfully plotted it.
For H-XAVG13 AND L-XAVG13, I got the message "Formula error: missing argument".
Kindly help.
I think I got it. The formula should be H-xaggc13. The C is missing.
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
Yep. I fixed them above. Sorry about that.
- Craig Here to Help!
|
|
Registered User Joined: 8/11/2005 Posts: 18
|
QUOTE (Craig_S) Yep. I fixed them above. Sorry about that.
Thank you. May I ask another question.
Do you have the formula for ATR - average true range?
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
Here is a post to check out:
AVERAGE TRUE RANGE PCF
- Craig Here to Help!
|
|
Guest-1 |