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 |

Is there a way to write a PCF for a 35 day ATR? Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
hacker13
Posted : Friday, September 16, 2011 4:03:07 PM
Platinum Customer Platinum Customer

Joined: 10/7/2004
Posts: 42
Looking to recreate a scan from SF 5 in the TC 2000 and it has been a long time since I used the PCF formulas. I would like to create the following((maxc65-minc65)*.7)-2times the 35 day ATRThanks Mark
Bruce_L
Posted : Friday, September 16, 2011 4:18:03 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
The formula would be to long for me to post if the Average True Range is calculated using Wilder's Smoothing as is done in StockFinder. If you use the Simple Smoothing of the ATR in TC2000 version 12 however, your Indicator Formula could be written as:

.7 * (MAXC65 - MINC65) - 2 * ((AVGH35 - AVGL35) / 2 + (ABS(H - C1) + ABS(C1 - L) + ABS(H1 - C2) + ABS(C2 - L1) + ABS(H2 - C3) + ABS(C3 - L2) + ABS(H3 - C4) + ABS(C4 - L3) + ABS(H4 - C5) + ABS(C5 - L4) + ABS(H5 - C6) + ABS(C6 - L5) + ABS(H6 - C7) + ABS(C7 - L6) + ABS(H7 - C8) + ABS(C8 - L7) + ABS(H8 - C9) + ABS(C9 - L8) + ABS(H9 - C10) + ABS(C10 - L9) + ABS(H10 - C11) + ABS(C11 - L10) + ABS(H11 - C12) + ABS(C12 - L11) + ABS(H12 - C13) + ABS(C13 - L12) + ABS(H13 - C14) + ABS(C14 - L13) + ABS(H14 - C15) + ABS(C15 - L14) + ABS(H15 - C16) + ABS(C16 - L15) + ABS(H16 - C17) + ABS(C17 - L16) + ABS(H17 - C18) + ABS(C18 - L17) + ABS(H18 - C19) + ABS(C19 - L18) + ABS(H19 - C20) + ABS(C20 - L19) + ABS(H20 - C21) + ABS(C21 - L20) + ABS(H21 - C22) + ABS(C22 - L21) + ABS(H22 - C23) + ABS(C23 - L22) + ABS(H23 - C24) + ABS(C24 - L23) + ABS(H24 - C25) + ABS(C25 - L24) + ABS(H25 - C26) + ABS(C26 - L25) + ABS(H26 - C27) + ABS(C27 - L26) + ABS(H27 - C28) + ABS(C28 - L27) + ABS(H28 - C29) + ABS(C29 - L28) + ABS(H29 - C30) + ABS(C30 - L29) + ABS(H30 - C31) + ABS(C31 - L30) + ABS(H31 - C32) + ABS(C32 - L31) + ABS(H32 - C33) + ABS(C33 - L32) + ABS(H33 - C34) + ABS(C34 - L33) + ABS(H34 - C35) + ABS(C35 - L34)) / 70)

PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
hacker13
Posted : Friday, September 16, 2011 4:31:06 PM
Platinum Customer Platinum Customer

Joined: 10/7/2004
Posts: 42
That works fine .... thanks Mark
hacker13
Posted : Friday, September 16, 2011 4:33:03 PM
Platinum Customer Platinum Customer

Joined: 10/7/2004
Posts: 42
Is there a way yet to plot an indicator with using the price scale of the stock and plotting in the same window in TC 2000 ?
Bruce_L
Posted : Friday, September 16, 2011 4:36:39 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
The only way to do so currently would be to use the desired formula as the Indicator Line Formula in a Custom PCF Channel Indicator. You would probably want to use something that always returns zero such as C - C as the Channel Width Formula.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
hacker13
Posted : Friday, September 16, 2011 4:40:14 PM
Platinum Customer Platinum Customer

Joined: 10/7/2004
Posts: 42
Ok... will we be able to in the future overlay an indicator and scale with the stock price as we can now do in SF5 in a new release?
Bruce_L
Posted : Friday, September 16, 2011 4:44:33 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
I would expect so at some point (it as a planned feature), but the exact mechanism has not yet been determined and I cannot say for sure when it might happen.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
hacker13
Posted : Friday, September 16, 2011 4:48:57 PM
Platinum Customer Platinum Customer

Joined: 10/7/2004
Posts: 42
Thanks for the helpMark
Bruce_L
Posted : Friday, September 16, 2011 4:53:27 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.