Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 10/7/2004 Posts: 13
|
Hi again,
I know you said custom indicators can not be written in Histogram form, but what about simply creating the following indicator:
20-bar simple moving avg. of the bar's midpoints (H-L)/2 subtracted from a 10-bar simple moving avg. of the mid points (H-L)/2.
I know this seems like it should be a rather simple program to write, but I'm uncertain as to how this formula would need to be written.
Thanks again.
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
It won't plot as a bar histogram but it will plot as a line giving the same information. Just be sure to check the CENTER ZERO LINE option...
((AVGH10+AVGL10)/2)-((AVGH20+AVGL20)/2)
- Craig Here to Help!
|
|
Registered User Joined: 10/7/2004 Posts: 286
|
Maybe this is what you are looking for:
((H-L)/2 + (H1-L1)/2 + ... (H9-L9)/2)/20 - ((H-L)/2 + (H1-L1)/2 + ... (H19-L19)/2)/20
Fill in the missing parts. The first would have total of 10 sets and the second part would have a total of 20 sets. It may seem long, but that's really what your asking for I think. I have longer PCF's, they can get very envolved and lengthy.
jynkin
|
|
Registered User Joined: 10/7/2004 Posts: 286
|
first part should be /10 ...not /20
|
|
Registered User Joined: 1/1/2005 Posts: 2,645
|
Mark7,
The bar's midpoint is (H+L)/2, not (H-L)/2. With this correction, the PCF becomes:
(AVGH10+AVGL10)/2-(AVGH20+AVGL20)/2
Thanks, Jim Murphy
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
jynkin, do you see why you don't have to do it longhand and why my and bustermu's works?
- Craig Here to Help!
|
|
Registered User Joined: 10/7/2004 Posts: 286
|
Well Craig, I'm more of a logic than higher math person. So in most cases I write things out the long way, then reduce as much as I understand or can remember from my education years. My math "career" ended at pre-calculus, where upon I knew that it was the end for me. So I appreciate greatly all the help you guys provide with the more complex stuff.
Sincerely, jynkin
|
|
Guest-1 |