Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Without a Histogram?? Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Mark7
Posted : Tuesday, January 17, 2006 9:17:03 PM
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.
Craig_S
Posted : Tuesday, January 17, 2006 9:22:14 PM


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!
jynkin
Posted : Tuesday, January 17, 2006 9:25:22 PM
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
jynkin
Posted : Tuesday, January 17, 2006 9:27:12 PM
Registered User
Joined: 10/7/2004
Posts: 286
first part should be /10 ...not /20
bustermu
Posted : Tuesday, January 17, 2006 10:02:53 PM
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

Craig_S
Posted : Tuesday, January 17, 2006 10:56:29 PM


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!
jynkin
Posted : Tuesday, January 31, 2006 11:03:25 AM
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
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.