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 |

Weekly Moving Average Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
ats33
Posted : Thursday, March 5, 2009 3:21:36 PM
Registered User
Joined: 10/17/2007
Posts: 15
How to write an PCF for "Weekly SMA(10) < Weekly EMA(30)"? Is it possible the weekly moving average based on calendar, i.e. ending on every Friday?
SMA = Simple Moving Average, EMA = Exponential Moving Average.
Bruce_L
Posted : Thursday, March 5, 2009 4:10:03 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
I do not know of a practical automated method of writing calendar based Weekly Personal Criteria Formula in TeleChart (StockFinder can use Calendar Weeks). If something based on the 5-Rolling Trading Day Weekly Bars in TeleChart will do, it could be written as:

(C + C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45) / 10 < .0645789155461771 * (C + 29 / 31 * (C5 + 29 / 31 * (C10 + 29 / 31 * (C15 + 29 / 31 * (C20 + 29 / 31 * (C25 + 29 / 31 * (C30 + 29 / 31 * (C35 + 29 / 31 * (C40 + 29 / 31 * (C45 + 29 / 31 * (C50 + 29 / 31 * (C55 + 29 / 31 * (C60 + 29 / 31 * (C65 + 29 / 31 * (C70 + 29 / 31 * (C75 + 29 / 31 * (C80 + 29 / 31 * (C85 + 29 / 31 * (C90 + 29 / 31 * (C95 + 29 / 31 * (C100 + 29 / 31 * (C105 + 29 / 31 * (C110 + 29 / 31 * (C115 + 29 / 31 * (C120 + 29 / 31 * (C125 + 29 / 31 * (C130 + 29 / 31 * (C135 + 29 / 31 * (C140 + 29 / 31 * (C145 + 29 / 31 * (C150 + 29 / 31 * (C155 + 29 / 31 * (C160 + 29 / 31 * (C165 + 29 / 31 * (C170 + 29 / 31 * (C175 + 29 / 31 * (C180 + 29 / 31 * (C185 + 29 / 31 * (C190 + 29 / 31 * (C195 + 29 / 31 * (C200 + 29 / 31 * (C205 + 29 / 31 * (C210 + 29 / 31 * (C215 + 29 / 31 * (C220 + 29 / 31 * (C225 + 29 / 31 * (C230 + 29 / 31 * (C235 + 29 / 31 * (C240 + 29 / 31 * (C245 + 29 / 31 * (C250 + 29 / 31 * (C255 + 29 / 31 * (C260 + 29 / 31 * (C265 + 29 / 31 * (C270 + 29 / 31 * (C275 + 29 / 31 * (C280 + 29 / 31 * (C285 + 29 / 31 * (C290 + 29 / 31 * (C295 + 29 / 31 * (C300 + 29 / 31 * (C305 + 29 / 31 * (C310 + 29 / 31 * (C315 + 29 / 31 * (C320 + 29 / 31 * (C325 + 29 / 31 * (C330 + 29 / 31 * (C335 + 29 / 31 * (C340 + 29 / 31 * (C345 + 29 / 31 * (C350 + 29 / 31 * (C355 + 29 / 31 * (C360 + 29 / 31 * (C365 + 29 / 31 * (C370 + 29 / 31 * (C375 + 29 / 31 * (C380 + 29 / 31 * (C385 + 29 / 31 * (C390 + 29 / 31 * (C395 + 29 / 31 * (C400 + 29 / 31 * (C405 + 29 / 31 * (C410 + 29 / 31 * (C415 + 29 / 31 * (C420 + 29 / 31 * (C425 + 29 / 31 * (C430 + 29 / 31 * (C435 + 29 / 31 * (C440 + 29 / 31 * (C445 + 29 / 31 * (C450 + 29 / 31 * (C455 + 29 / 31 * (C460 + 29 / 31 * (C465 + 29 / 31 * (C470 + 29 / 31 * (C475 + 29 / 31 * (C480 + 29 / 31 * (C485 + 29 / 31 * (C490 + 29 / 31 * (C495 + 29 / 31 * (C500 + 29 / 31 * (C505 + 29 / 31 * (C510 + 29 / 31 * (C515))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

You may wish to review the following:

How to create a Personal Criteria Forumula (PCF)
Moving Average PCF Templates
Things to check if your moving averages don't "seem right" or "seem to match"
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
Cascades of Moving Averages

-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.