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 |

PCF Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
ritaritzw
Posted : Tuesday, July 11, 2006 12:43:35 PM
Registered User
Joined: 4/10/2006
Posts: 10
Hi

Please help write the following indicator:

1. 3-period simple moving average of the highs.
2. 3-peropd simple moving average of the lows.

thanks.
Bruce_L
Posted : Tuesday, July 11, 2006 12:47:41 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Please try the following:

Select Chart Template | Add Indicator | Indicator.
- Visible: Checked
- Center Zero Line: Unchecked
- Plot using price scale: Checked
- Smoothing Average: 3
- Average Type: Simple
- Indicator Formula: H

Select Chart Template | Add Indicator | Indicator.
- Visible: Checked
- Center Zero Line: Unchecked
- Plot using price scale: Checked
- Smoothing Average: 3
- Average Type: Simple
- Indicator Formula: L

You may wish to review the following:

Plotting Custom Indicators with Examples

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
ritaritzw
Posted : Tuesday, July 11, 2006 1:01:48 PM
Registered User
Joined: 4/10/2006
Posts: 10
Thanks Bruce.
Bruce_L
Posted : Tuesday, July 11, 2006 1:04:11 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
ritaritzw
Posted : Tuesday, July 11, 2006 2:04:18 PM
Registered User
Joined: 4/10/2006
Posts: 10
Bruce,

Have to bother you again.

Is the smoothing average 3 apply to the formula in the Indicator Formula space?

If so, how do I write the following:

1. 3 period simple moving average of the lows + 5 period ATR.
2. 3 period simple moving average of the highs - 5 period ATR.

Alexander
Bruce_L
Posted : Tuesday, July 11, 2006 2:18:02 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
The Moving Average applies to everything in the Indicator Formula space. Here is my first thought on how I would create your indicators:

(3 period SMA of Low) + (5 period ATR):

Select Chart Template | Add Indicator | Indicator.
- Visible: Checked
- Center Zero Line: Unchecked
- Plot using price scale: Checked
- Smoothing Average: 1
- Average Type: Doesn't matter.
- Indicator Formula: AVGL3 + XAVGH9 - XAVGL9 + .100099133380087 * (ABS(H - C1) + ABS(L - C1) - H + L + .8 * (ABS(H1 - C2) + ABS(L1 - C2) - H1 + L1 + .8 * (ABS(H2 - C3) + ABS(L2 - C3) - H2 + L2 + .8 * (ABS(H3 - C4) + ABS(L3 - C4) - H3 + L3 + .8 * (ABS(H4 - C5) + ABS(L4 - C5) - H4 + L4 + .8 * (ABS(H5 - C6) + ABS(L5 - C6) - H5 + L5 + .8 * (ABS(H6 - C7) + ABS(L6 - C7) - H6 + L6 + .8 * (ABS(H7 - C8) + ABS(L7 - C8) - H7 + L7 + .8 * (ABS(H8 - C9) + ABS(L8 - C9) - H8 + L8 + .8 * (ABS(H9 - C10) + ABS(L9 - C10) - H9 + L9 + .8 * (ABS(H10 - C11) + ABS(L10 - C11) - H10 + L10 + .8 * (ABS(H11 - C12) + ABS(L11 - C12) - H11 + L11 + .8 * (ABS(H12 - C13) + ABS(L12 - C13) - H12 + L12 + .8 * (ABS(H13 - C14) + ABS(L13 - C14) - H13 + L13 + .8 * (ABS(H14 - C15) + ABS(L14 - C15) - H14 + L14 + .8 * (ABS(H15 - C16) + ABS(L15 - C16) - H15 + L15 + .8 * (ABS(H16 - C17) + ABS(L16 - C17) - H16 + L16 + .8 * (ABS(H17 - C18) + ABS(L17 - C18) - H17 + L17 + .8 * (ABS(H18 - C19) + ABS(L18 - C19) - H18 + L18 + .8 * (ABS(H19 - C20) + ABS(L19 - C20) - H19 + L19 + .8 * (ABS(H20 - C21) + ABS(L20 - C21) - H20 + L20 + .8 * (ABS(H21 - C22) + ABS(L21 - C22) - H21 + L21 + .8 * (ABS(H22 - C23) + ABS(L22 - C23) - H22 + L22 + .8 * (ABS(H23 - C24) + ABS(L23 - C24) - H23 + L23 + .8 * (ABS(H24 - C25) + ABS(L24 - C25) - H24 + L24 + .8 * (ABS(H25 - C26) + ABS(L25 - C26) - H25 + L25 + .8 * (ABS(H26 - C27) + ABS(L26 - C27) - H26 + L26 + .8 * (ABS(H27 - C28) + ABS(L27 - C28) - H27 + L27 + .8 * (ABS(H28 - C29) + ABS(L28 - C29) - H28 + L28 + .8 * (ABS(H29 - C30) + ABS(L29 - C30) - H29 + L29 + .8 * (ABS(H30 - C31) + ABS(L30 - C31) - H30 + L30)))))))))))))))))))))))))))))))

(3 period SMA of High) - (5 period ATR):

Select Chart Template | Add Indicator | Indicator.
- Visible: Checked
- Center Zero Line: Unchecked
- Plot using price scale: Checked
- Smoothing Average: 1
- Average Type: Doesn't matter.
- Indicator Formula: AVGH3 - (XAVGH9 - XAVGL9 + .100099133380087 * (ABS(H - C1) + ABS(L - C1) - H + L + .8 * (ABS(H1 - C2) + ABS(L1 - C2) - H1 + L1 + .8 * (ABS(H2 - C3) + ABS(L2 - C3) - H2 + L2 + .8 * (ABS(H3 - C4) + ABS(L3 - C4) - H3 + L3 + .8 * (ABS(H4 - C5) + ABS(L4 - C5) - H4 + L4 + .8 * (ABS(H5 - C6) + ABS(L5 - C6) - H5 + L5 + .8 * (ABS(H6 - C7) + ABS(L6 - C7) - H6 + L6 + .8 * (ABS(H7 - C8) + ABS(L7 - C8) - H7 + L7 + .8 * (ABS(H8 - C9) + ABS(L8 - C9) - H8 + L8 + .8 * (ABS(H9 - C10) + ABS(L9 - C10) - H9 + L9 + .8 * (ABS(H10 - C11) + ABS(L10 - C11) - H10 + L10 + .8 * (ABS(H11 - C12) + ABS(L11 - C12) - H11 + L11 + .8 * (ABS(H12 - C13) + ABS(L12 - C13) - H12 + L12 + .8 * (ABS(H13 - C14) + ABS(L13 - C14) - H13 + L13 + .8 * (ABS(H14 - C15) + ABS(L14 - C15) - H14 + L14 + .8 * (ABS(H15 - C16) + ABS(L15 - C16) - H15 + L15 + .8 * (ABS(H16 - C17) + ABS(L16 - C17) - H16 + L16 + .8 * (ABS(H17 - C18) + ABS(L17 - C18) - H17 + L17 + .8 * (ABS(H18 - C19) + ABS(L18 - C19) - H18 + L18 + .8 * (ABS(H19 - C20) + ABS(L19 - C20) - H19 + L19 + .8 * (ABS(H20 - C21) + ABS(L20 - C21) - H20 + L20 + .8 * (ABS(H21 - C22) + ABS(L21 - C22) - H21 + L21 + .8 * (ABS(H22 - C23) + ABS(L22 - C23) - H22 + L22 + .8 * (ABS(H23 - C24) + ABS(L23 - C24) - H23 + L23 + .8 * (ABS(H24 - C25) + ABS(L24 - C25) - H24 + L24 + .8 * (ABS(H25 - C26) + ABS(L25 - C26) - H25 + L25 + .8 * (ABS(H26 - C27) + ABS(L26 - C27) - H26 + L26 + .8 * (ABS(H27 - C28) + ABS(L27 - C28) - H27 + L27 + .8 * (ABS(H28 - C29) + ABS(L28 - C29) - H28 + L28 + .8 * (ABS(H29 - C30) + ABS(L29 - C30) - H29 + L29 + .8 * (ABS(H30 - C31) + ABS(L30 - C31) - H30 + L30))))))))))))))))))))))))))))))))

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
ritaritzw
Posted : Tuesday, July 11, 2006 2:42:24 PM
Registered User
Joined: 4/10/2006
Posts: 10
Thanks again.
Bruce_L
Posted : Tuesday, July 11, 2006 2:43:16 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
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.