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

Create easy scan 10 ma wkly crossing above 30 ma wky Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Jackroe
Posted : Tuesday, May 29, 2007 5:33:36 PM
Registered User
Joined: 12/14/2004
Posts: 3
Hi-
I'm trying to creat an easy scan that will identify stocks that there 10 period moving average weekly crosses over the 30 period ma weekly. I created 2 personal formulas
(avgc10.5/avgc30.5)*100=this week
and
(avgc10.15/avgc30.15)*100=3 weeks ago
then I created the easy scan
All stocks in watchlist
when this weeks formula value is 100.1 to max
when 3 weeks ago formula is 99.96 to min
then I gave is some volume criteria...

and id doesnt work please help what am I doing wrong
I also would like to creat the reverse so in bear day's it will Identify short candidates
Please get back to me

Thanks
Jack
diceman
Posted : Tuesday, May 29, 2007 7:59:42 PM
Registered User
Joined: 1/28/2005
Posts: 6,049
A three week moving average would be:

(C+C5+C10)/3

(This is the from to use)

------------------------------
avgc10.5

is a 10 day average 5 bars ago.


Thanks
diceman
Jackroe
Posted : Thursday, May 31, 2007 8:25:27 PM
Registered User
Joined: 12/14/2004
Posts: 3
That realy doesnt help me, I'm looking for a scan that will identify when a 10 period weekly ma crosses above/below a 20 period weekly moving average. Help!!
Bruce_L
Posted : Thursday, May 31, 2007 10:17:41 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Jackroe,
Please try whichever of the following seems to most closely match your needs:

SMA10 xUp SMA30 (Weekly):

(C + C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45) * 2 > C50 + C55 + C60 + C65 + C70 + C75 + C80 + C85 + C90 + C95 + C100 + C105 + C110 + C115 + C120 + C125 + C130 + C135 + C140 + C145 AND
(C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50) * 2 <= C55 + C60 + C65 + C70 + C75 + C80 + C85 + C90 + C95 + C100 + C105 + C110 + C115 + C120 + C125 + C130 + C135 + C140 + C145 + C150

SMA10 xDown SMA30 (Weekly):

(C + C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45) * 2 < C50 + C55 + C60 + C65 + C70 + C75 + C80 + C85 + C90 + C95 + C100 + C105 + C110 + C115 + C120 + C125 + C130 + C135 + C140 + C145 AND
(C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50) * 2 >= C55 + C60 + C65 + C70 + C75 + C80 + C85 + C90 + C95 + C100 + C105 + C110 + C115 + C120 + C125 + C130 + C135 + C140 + C145 + C150

SMA10 crossing SMA30 (Weekly - Either Direction):

SGN((C + C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45) * 2 - (C50 + C55 + C60 + C65 + C70 + C75 + C80 + C85 + C90 + C95 + C100 + C105 + C110 + C115 + C120 + C125 + C130 + C135 + C140 + C145)) <>
SGN((C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50) * 2 - (C55 + C60 + C65 + C70 + C75 + C80 + C85 + C90 + C95 + C100 + C105 + C110 + C115 + C120 + C125 + C130 + C135 + C140 + C145 + C150))

EMA10 xUp EMA30 (Weekly):

.181980276277401 * (C + 9 / 11 * (C5 + 9 / 11 * (C10 + 9 / 11 * (C15 + 9 / 11 * (C20 + 9 / 11 * (C25 + 9 / 11 * (C30 + 9 / 11 * (C35 + 9 / 11 * (C40 + 9 / 11 * (C45 + 9 / 11 * (C50 + 9 / 11 * (C55 + 9 / 11 * (C60 + 9 / 11 * (C65 + 9 / 11 * (C70 + 9 / 11 * (C75 + 9 / 11 * (C80 + 9 / 11 * (C85 + 9 / 11 * (C90 + 9 / 11 * (C95 + 9 / 11 * (C100 + 9 / 11 * (C105 + 9 / 11 * (C110 + 9 / 11 * (C115 + 9 / 11 * (C120 + 9 / 11 * (C125 + 9 / 11 * (C130 + 9 / 11 * (C135 + 9 / 11 * (C140 + 9 / 11 * (C145 + 9 / 11 * (C150 + 9 / 11 * (C155 + 9 / 11 * (C160 + 9 / 11 * (C165 + 9 / 11 * (C170))))))))))))))))))))))))))))))))))) > .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)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND .181980276277401 * (C5 + 9 / 11 * (C10 + 9 / 11 * (C15 + 9 / 11 * (C20 + 9 / 11 * (C25 + 9 / 11 * (C30 + 9 / 11 * (C35 + 9 / 11 * (C40 + 9 / 11 * (C45 + 9 / 11 * (C50 + 9 / 11 * (C55 + 9 / 11 * (C60 + 9 / 11 * (C65 + 9 / 11 * (C70 + 9 / 11 * (C75 + 9 / 11 * (C80 + 9 / 11 * (C85 + 9 / 11 * (C90 + 9 / 11 * (C95 + 9 / 11 * (C100 + 9 / 11 * (C105 + 9 / 11 * (C110 + 9 / 11 * (C115 + 9 / 11 * (C120 + 9 / 11 * (C125 + 9 / 11 * (C130 + 9 / 11 * (C135 + 9 / 11 * (C140 + 9 / 11 * (C145 + 9 / 11 * (C150 + 9 / 11 * (C155 + 9 / 11 * (C160 + 9 / 11 * (C165 + 9 / 11 * (C170 + 9 / 11 * (C175))))))))))))))))))))))))))))))))))) <= .0645789155461771 * (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 + 29 / 31 * (C520))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

EMA10 xDown EMA30 (Weekly):

.181980276277401 * (C + 9 / 11 * (C5 + 9 / 11 * (C10 + 9 / 11 * (C15 + 9 / 11 * (C20 + 9 / 11 * (C25 + 9 / 11 * (C30 + 9 / 11 * (C35 + 9 / 11 * (C40 + 9 / 11 * (C45 + 9 / 11 * (C50 + 9 / 11 * (C55 + 9 / 11 * (C60 + 9 / 11 * (C65 + 9 / 11 * (C70 + 9 / 11 * (C75 + 9 / 11 * (C80 + 9 / 11 * (C85 + 9 / 11 * (C90 + 9 / 11 * (C95 + 9 / 11 * (C100 + 9 / 11 * (C105 + 9 / 11 * (C110 + 9 / 11 * (C115 + 9 / 11 * (C120 + 9 / 11 * (C125 + 9 / 11 * (C130 + 9 / 11 * (C135 + 9 / 11 * (C140 + 9 / 11 * (C145 + 9 / 11 * (C150 + 9 / 11 * (C155 + 9 / 11 * (C160 + 9 / 11 * (C165 + 9 / 11 * (C170))))))))))))))))))))))))))))))))))) > .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)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND .181980276277401 * (C5 + 9 / 11 * (C10 + 9 / 11 * (C15 + 9 / 11 * (C20 + 9 / 11 * (C25 + 9 / 11 * (C30 + 9 / 11 * (C35 + 9 / 11 * (C40 + 9 / 11 * (C45 + 9 / 11 * (C50 + 9 / 11 * (C55 + 9 / 11 * (C60 + 9 / 11 * (C65 + 9 / 11 * (C70 + 9 / 11 * (C75 + 9 / 11 * (C80 + 9 / 11 * (C85 + 9 / 11 * (C90 + 9 / 11 * (C95 + 9 / 11 * (C100 + 9 / 11 * (C105 + 9 / 11 * (C110 + 9 / 11 * (C115 + 9 / 11 * (C120 + 9 / 11 * (C125 + 9 / 11 * (C130 + 9 / 11 * (C135 + 9 / 11 * (C140 + 9 / 11 * (C145 + 9 / 11 * (C150 + 9 / 11 * (C155 + 9 / 11 * (C160 + 9 / 11 * (C165 + 9 / 11 * (C170 + 9 / 11 * (C175))))))))))))))))))))))))))))))))))) >= .0645789155461771 * (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 + 29 / 31 * (C520))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

EMA10 crossing EMA30 (Weekly - Either Direction):

SGN(.181980276277401 * (C + 9 / 11 * (C5 + 9 / 11 * (C10 + 9 / 11 * (C15 + 9 / 11 * (C20 + 9 / 11 * (C25 + 9 / 11 * (C30 + 9 / 11 * (C35 + 9 / 11 * (C40 + 9 / 11 * (C45 + 9 / 11 * (C50 + 9 / 11 * (C55 + 9 / 11 * (C60 + 9 / 11 * (C65 + 9 / 11 * (C70 + 9 / 11 * (C75 + 9 / 11 * (C80 + 9 / 11 * (C85 + 9 / 11 * (C90 + 9 / 11 * (C95 + 9 / 11 * (C100 + 9 / 11 * (C105 + 9 / 11 * (C110 + 9 / 11 * (C115 + 9 / 11 * (C120 + 9 / 11 * (C125 + 9 / 11 * (C130 + 9 / 11 * (C135 + 9 / 11 * (C140 + 9 / 11 * (C145 + 9 / 11 * (C150 + 9 / 11 * (C155 + 9 / 11 * (C160 + 9 / 11 * (C165 + 9 / 11 * (C170))))))))))))))))))))))))))))))))))) - .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))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) <> SGN(.181980276277401 * (C5 + 9 / 11 * (C10 + 9 / 11 * (C15 + 9 / 11 * (C20 + 9 / 11 * (C25 + 9 / 11 * (C30 + 9 / 11 * (C35 + 9 / 11 * (C40 + 9 / 11 * (C45 + 9 / 11 * (C50 + 9 / 11 * (C55 + 9 / 11 * (C60 + 9 / 11 * (C65 + 9 / 11 * (C70 + 9 / 11 * (C75 + 9 / 11 * (C80 + 9 / 11 * (C85 + 9 / 11 * (C90 + 9 / 11 * (C95 + 9 / 11 * (C100 + 9 / 11 * (C105 + 9 / 11 * (C110 + 9 / 11 * (C115 + 9 / 11 * (C120 + 9 / 11 * (C125 + 9 / 11 * (C130 + 9 / 11 * (C135 + 9 / 11 * (C140 + 9 / 11 * (C145 + 9 / 11 * (C150 + 9 / 11 * (C155 + 9 / 11 * (C160 + 9 / 11 * (C165 + 9 / 11 * (C170 + 9 / 11 * (C175))))))))))))))))))))))))))))))))))) - .0645789155461771 * (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 + 29 / 31 * (C520)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

You may wish to review the following:

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

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Quiktdr
Posted : Monday, January 7, 2008 12:56:38 PM
Registered User
Joined: 10/7/2004
Posts: 794

How would one write a weekly cross of a 5ema crossing a 13ema and a 21ema?

Bruce_L
Posted : Monday, January 7, 2008 1:41:13 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Quiktdr,
Please try one or more of the following:

EMA5 xUp EMA13 (Weekly):

.333559032545198 * (C + 2 / 3 * (C5 + 2 / 3 * (C10 + 2 / 3 * (C15 + 2 / 3 * (C20 + 2 / 3 * (C25 + 2 / 3 * (C30 + 2 / 3 * (C35 + 2 / 3 * (C40 + 2 / 3 * (C45 + 2 / 3 * (C50 + 2 / 3 * (C55 + 2 / 3 * (C60 + 2 / 3 * (C65 + 2 / 3 * (C70 + 2 / 3 * (C75 + 2 / 3 * (C80 + 2 / 3 * (C85)))))))))))))))))) > .142996048056393 * (C + 6 / 7 * (C5 + 6 / 7 * (C10 + 6 / 7 * (C15 + 6 / 7 * (C20 + 6 / 7 * (C25 + 6 / 7 * (C30 + 6 / 7 * (C35 + 6 / 7 * (C40 + 6 / 7 * (C45 + 6 / 7 * (C50 + 6 / 7 * (C55 + 6 / 7 * (C60 + 6 / 7 * (C65 + 6 / 7 * (C70 + 6 / 7 * (C75 + 6 / 7 * (C80 + 6 / 7 * (C85 + 6 / 7 * (C90 + 6 / 7 * (C95 + 6 / 7 * (C100 + 6 / 7 * (C105 + 6 / 7 * (C110 + 6 / 7 * (C115 + 6 / 7 * (C120 + 6 / 7 * (C125 + 6 / 7 * (C130 + 6 / 7 * (C135 + 6 / 7 * (C140 + 6 / 7 * (C145 + 6 / 7 * (C150 + 6 / 7 * (C155 + 6 / 7 * (C160 + 6 / 7 * (C165 + 6 / 7 * (C170 + 6 / 7 * (C175 + 6 / 7 * (C180 + 6 / 7 * (C185 + 6 / 7 * (C190 + 6 / 7 * (C195 + 6 / 7 * (C200 + 6 / 7 * (C205 + 6 / 7 * (C210 + 6 / 7 * (C215 + 6 / 7 * (C220))))))))))))))))))))))))))))))))))))))))))))) AND .333559032545198 * (C5 + 2 / 3 * (C10 + 2 / 3 * (C15 + 2 / 3 * (C20 + 2 / 3 * (C25 + 2 / 3 * (C30 + 2 / 3 * (C35 + 2 / 3 * (C40 + 2 / 3 * (C45 + 2 / 3 * (C50 + 2 / 3 * (C55 + 2 / 3 * (C60 + 2 / 3 * (C65 + 2 / 3 * (C70 + 2 / 3 * (C75 + 2 / 3 * (C80 + 2 / 3 * (C85 + 2 / 3 * (C90)))))))))))))))))) <= .142996048056393 * (C5 + 6 / 7 * (C10 + 6 / 7 * (C15 + 6 / 7 * (C20 + 6 / 7 * (C25 + 6 / 7 * (C30 + 6 / 7 * (C35 + 6 / 7 * (C40 + 6 / 7 * (C45 + 6 / 7 * (C50 + 6 / 7 * (C55 + 6 / 7 * (C60 + 6 / 7 * (C65 + 6 / 7 * (C70 + 6 / 7 * (C75 + 6 / 7 * (C80 + 6 / 7 * (C85 + 6 / 7 * (C90 + 6 / 7 * (C95 + 6 / 7 * (C100 + 6 / 7 * (C105 + 6 / 7 * (C110 + 6 / 7 * (C115 + 6 / 7 * (C120 + 6 / 7 * (C125 + 6 / 7 * (C130 + 6 / 7 * (C135 + 6 / 7 * (C140 + 6 / 7 * (C145 + 6 / 7 * (C150 + 6 / 7 * (C155 + 6 / 7 * (C160 + 6 / 7 * (C165 + 6 / 7 * (C170 + 6 / 7 * (C175 + 6 / 7 * (C180 + 6 / 7 * (C185 + 6 / 7 * (C190 + 6 / 7 * (C195 + 6 / 7 * (C200 + 6 / 7 * (C205 + 6 / 7 * (C210 + 6 / 7 * (C215 + 6 / 7 * (C220 + 6 / 7 * (C225)))))))))))))))))))))))))))))))))))))))))))))

EMA5 xDown EMA13 (Weekly):

.333559032545198 * (C + 2 / 3 * (C5 + 2 / 3 * (C10 + 2 / 3 * (C15 + 2 / 3 * (C20 + 2 / 3 * (C25 + 2 / 3 * (C30 + 2 / 3 * (C35 + 2 / 3 * (C40 + 2 / 3 * (C45 + 2 / 3 * (C50 + 2 / 3 * (C55 + 2 / 3 * (C60 + 2 / 3 * (C65 + 2 / 3 * (C70 + 2 / 3 * (C75 + 2 / 3 * (C80 + 2 / 3 * (C85)))))))))))))))))) < .142996048056393 * (C + 6 / 7 * (C5 + 6 / 7 * (C10 + 6 / 7 * (C15 + 6 / 7 * (C20 + 6 / 7 * (C25 + 6 / 7 * (C30 + 6 / 7 * (C35 + 6 / 7 * (C40 + 6 / 7 * (C45 + 6 / 7 * (C50 + 6 / 7 * (C55 + 6 / 7 * (C60 + 6 / 7 * (C65 + 6 / 7 * (C70 + 6 / 7 * (C75 + 6 / 7 * (C80 + 6 / 7 * (C85 + 6 / 7 * (C90 + 6 / 7 * (C95 + 6 / 7 * (C100 + 6 / 7 * (C105 + 6 / 7 * (C110 + 6 / 7 * (C115 + 6 / 7 * (C120 + 6 / 7 * (C125 + 6 / 7 * (C130 + 6 / 7 * (C135 + 6 / 7 * (C140 + 6 / 7 * (C145 + 6 / 7 * (C150 + 6 / 7 * (C155 + 6 / 7 * (C160 + 6 / 7 * (C165 + 6 / 7 * (C170 + 6 / 7 * (C175 + 6 / 7 * (C180 + 6 / 7 * (C185 + 6 / 7 * (C190 + 6 / 7 * (C195 + 6 / 7 * (C200 + 6 / 7 * (C205 + 6 / 7 * (C210 + 6 / 7 * (C215 + 6 / 7 * (C220))))))))))))))))))))))))))))))))))))))))))))) AND .333559032545198 * (C5 + 2 / 3 * (C10 + 2 / 3 * (C15 + 2 / 3 * (C20 + 2 / 3 * (C25 + 2 / 3 * (C30 + 2 / 3 * (C35 + 2 / 3 * (C40 + 2 / 3 * (C45 + 2 / 3 * (C50 + 2 / 3 * (C55 + 2 / 3 * (C60 + 2 / 3 * (C65 + 2 / 3 * (C70 + 2 / 3 * (C75 + 2 / 3 * (C80 + 2 / 3 * (C85 + 2 / 3 * (C90)))))))))))))))))) >= .142996048056393 * (C5 + 6 / 7 * (C10 + 6 / 7 * (C15 + 6 / 7 * (C20 + 6 / 7 * (C25 + 6 / 7 * (C30 + 6 / 7 * (C35 + 6 / 7 * (C40 + 6 / 7 * (C45 + 6 / 7 * (C50 + 6 / 7 * (C55 + 6 / 7 * (C60 + 6 / 7 * (C65 + 6 / 7 * (C70 + 6 / 7 * (C75 + 6 / 7 * (C80 + 6 / 7 * (C85 + 6 / 7 * (C90 + 6 / 7 * (C95 + 6 / 7 * (C100 + 6 / 7 * (C105 + 6 / 7 * (C110 + 6 / 7 * (C115 + 6 / 7 * (C120 + 6 / 7 * (C125 + 6 / 7 * (C130 + 6 / 7 * (C135 + 6 / 7 * (C140 + 6 / 7 * (C145 + 6 / 7 * (C150 + 6 / 7 * (C155 + 6 / 7 * (C160 + 6 / 7 * (C165 + 6 / 7 * (C170 + 6 / 7 * (C175 + 6 / 7 * (C180 + 6 / 7 * (C185 + 6 / 7 * (C190 + 6 / 7 * (C195 + 6 / 7 * (C200 + 6 / 7 * (C205 + 6 / 7 * (C210 + 6 / 7 * (C215 + 6 / 7 * (C220 + 6 / 7 * (C225)))))))))))))))))))))))))))))))))))))))))))))

EMA5 crossing EMA13 (Weekly - Either Direction):

SGN(.333559032545198 * (C + 2 / 3 * (C5 + 2 / 3 * (C10 + 2 / 3 * (C15 + 2 / 3 * (C20 + 2 / 3 * (C25 + 2 / 3 * (C30 + 2 / 3 * (C35 + 2 / 3 * (C40 + 2 / 3 * (C45 + 2 / 3 * (C50 + 2 / 3 * (C55 + 2 / 3 * (C60 + 2 / 3 * (C65 + 2 / 3 * (C70 + 2 / 3 * (C75 + 2 / 3 * (C80 + 2 / 3 * (C85)))))))))))))))))) - .142996048056393 * (C + 6 / 7 * (C5 + 6 / 7 * (C10 + 6 / 7 * (C15 + 6 / 7 * (C20 + 6 / 7 * (C25 + 6 / 7 * (C30 + 6 / 7 * (C35 + 6 / 7 * (C40 + 6 / 7 * (C45 + 6 / 7 * (C50 + 6 / 7 * (C55 + 6 / 7 * (C60 + 6 / 7 * (C65 + 6 / 7 * (C70 + 6 / 7 * (C75 + 6 / 7 * (C80 + 6 / 7 * (C85 + 6 / 7 * (C90 + 6 / 7 * (C95 + 6 / 7 * (C100 + 6 / 7 * (C105 + 6 / 7 * (C110 + 6 / 7 * (C115 + 6 / 7 * (C120 + 6 / 7 * (C125 + 6 / 7 * (C130 + 6 / 7 * (C135 + 6 / 7 * (C140 + 6 / 7 * (C145 + 6 / 7 * (C150 + 6 / 7 * (C155 + 6 / 7 * (C160 + 6 / 7 * (C165 + 6 / 7 * (C170 + 6 / 7 * (C175 + 6 / 7 * (C180 + 6 / 7 * (C185 + 6 / 7 * (C190 + 6 / 7 * (C195 + 6 / 7 * (C200 + 6 / 7 * (C205 + 6 / 7 * (C210 + 6 / 7 * (C215 + 6 / 7 * (C220)))))))))))))))))))))))))))))))))))))))))))))) <> SGN(.333559032545198 * (C5 + 2 / 3 * (C10 + 2 / 3 * (C15 + 2 / 3 * (C20 + 2 / 3 * (C25 + 2 / 3 * (C30 + 2 / 3 * (C35 + 2 / 3 * (C40 + 2 / 3 * (C45 + 2 / 3 * (C50 + 2 / 3 * (C55 + 2 / 3 * (C60 + 2 / 3 * (C65 + 2 / 3 * (C70 + 2 / 3 * (C75 + 2 / 3 * (C80 + 2 / 3 * (C85 + 2 / 3 * (C90)))))))))))))))))) - .142996048056393 * (C5 + 6 / 7 * (C10 + 6 / 7 * (C15 + 6 / 7 * (C20 + 6 / 7 * (C25 + 6 / 7 * (C30 + 6 / 7 * (C35 + 6 / 7 * (C40 + 6 / 7 * (C45 + 6 / 7 * (C50 + 6 / 7 * (C55 + 6 / 7 * (C60 + 6 / 7 * (C65 + 6 / 7 * (C70 + 6 / 7 * (C75 + 6 / 7 * (C80 + 6 / 7 * (C85 + 6 / 7 * (C90 + 6 / 7 * (C95 + 6 / 7 * (C100 + 6 / 7 * (C105 + 6 / 7 * (C110 + 6 / 7 * (C115 + 6 / 7 * (C120 + 6 / 7 * (C125 + 6 / 7 * (C130 + 6 / 7 * (C135 + 6 / 7 * (C140 + 6 / 7 * (C145 + 6 / 7 * (C150 + 6 / 7 * (C155 + 6 / 7 * (C160 + 6 / 7 * (C165 + 6 / 7 * (C170 + 6 / 7 * (C175 + 6 / 7 * (C180 + 6 / 7 * (C185 + 6 / 7 * (C190 + 6 / 7 * (C195 + 6 / 7 * (C200 + 6 / 7 * (C205 + 6 / 7 * (C210 + 6 / 7 * (C215 + 6 / 7 * (C220 + 6 / 7 * (C225))))))))))))))))))))))))))))))))))))))))))))))

EMA5 xUp EMA21 (Weekly):

.333559032545198 * (C + 2 / 3 * (C5 + 2 / 3 * (C10 + 2 / 3 * (C15 + 2 / 3 * (C20 + 2 / 3 * (C25 + 2 / 3 * (C30 + 2 / 3 * (C35 + 2 / 3 * (C40 + 2 / 3 * (C45 + 2 / 3 * (C50 + 2 / 3 * (C55 + 2 / 3 * (C60 + 2 / 3 * (C65 + 2 / 3 * (C70 + 2 / 3 * (C75 + 2 / 3 * (C80 + 2 / 3 * (C85)))))))))))))))))) > .0909956583651082 * (C + 10 / 11 * (C5 + 10 / 11 * (C10 + 10 / 11 * (C15 + 10 / 11 * (C20 + 10 / 11 * (C25 + 10 / 11 * (C30 + 10 / 11 * (C35 + 10 / 11 * (C40 + 10 / 11 * (C45 + 10 / 11 * (C50 + 10 / 11 * (C55 + 10 / 11 * (C60 + 10 / 11 * (C65 + 10 / 11 * (C70 + 10 / 11 * (C75 + 10 / 11 * (C80 + 10 / 11 * (C85 + 10 / 11 * (C90 + 10 / 11 * (C95 + 10 / 11 * (C100 + 10 / 11 * (C105 + 10 / 11 * (C110 + 10 / 11 * (C115 + 10 / 11 * (C120 + 10 / 11 * (C125 + 10 / 11 * (C130 + 10 / 11 * (C135 + 10 / 11 * (C140 + 10 / 11 * (C145 + 10 / 11 * (C150 + 10 / 11 * (C155 + 10 / 11 * (C160 + 10 / 11 * (C165 + 10 / 11 * (C170 + 10 / 11 * (C175 + 10 / 11 * (C180 + 10 / 11 * (C185 + 10 / 11 * (C190 + 10 / 11 * (C195 + 10 / 11 * (C200 + 10 / 11 * (C205 + 10 / 11 * (C210 + 10 / 11 * (C215 + 10 / 11 * (C220 + 10 / 11 * (C225 + 10 / 11 * (C230 + 10 / 11 * (C235 + 10 / 11 * (C240 + 10 / 11 * (C245 + 10 / 11 * (C250 + 10 / 11 * (C255 + 10 / 11 * (C260 + 10 / 11 * (C265 + 10 / 11 * (C270 + 10 / 11 * (C275 + 10 / 11 * (C280 + 10 / 11 * (C285 + 10 / 11 * (C290 + 10 / 11 * (C295 + 10 / 11 * (C300 + 10 / 11 * (C305 + 10 / 11 * (C310 + 10 / 11 * (C315 + 10 / 11 * (C320 + 10 / 11 * (C325 + 10 / 11 * (C330 + 10 / 11 * (C335 + 10 / 11 * (C340 + 10 / 11 * (C345 + 10 / 11 * (C350 + 10 / 11 * (C355 + 10 / 11 * (C360))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND .333559032545198 * (C5 + 2 / 3 * (C10 + 2 / 3 * (C15 + 2 / 3 * (C20 + 2 / 3 * (C25 + 2 / 3 * (C30 + 2 / 3 * (C35 + 2 / 3 * (C40 + 2 / 3 * (C45 + 2 / 3 * (C50 + 2 / 3 * (C55 + 2 / 3 * (C60 + 2 / 3 * (C65 + 2 / 3 * (C70 + 2 / 3 * (C75 + 2 / 3 * (C80 + 2 / 3 * (C85 + 2 / 3 * (C90)))))))))))))))))) <= .0909956583651082 * (C5 + 10 / 11 * (C10 + 10 / 11 * (C15 + 10 / 11 * (C20 + 10 / 11 * (C25 + 10 / 11 * (C30 + 10 / 11 * (C35 + 10 / 11 * (C40 + 10 / 11 * (C45 + 10 / 11 * (C50 + 10 / 11 * (C55 + 10 / 11 * (C60 + 10 / 11 * (C65 + 10 / 11 * (C70 + 10 / 11 * (C75 + 10 / 11 * (C80 + 10 / 11 * (C85 + 10 / 11 * (C90 + 10 / 11 * (C95 + 10 / 11 * (C100 + 10 / 11 * (C105 + 10 / 11 * (C110 + 10 / 11 * (C115 + 10 / 11 * (C120 + 10 / 11 * (C125 + 10 / 11 * (C130 + 10 / 11 * (C135 + 10 / 11 * (C140 + 10 / 11 * (C145 + 10 / 11 * (C150 + 10 / 11 * (C155 + 10 / 11 * (C160 + 10 / 11 * (C165 + 10 / 11 * (C170 + 10 / 11 * (C175 + 10 / 11 * (C180 + 10 / 11 * (C185 + 10 / 11 * (C190 + 10 / 11 * (C195 + 10 / 11 * (C200 + 10 / 11 * (C205 + 10 / 11 * (C210 + 10 / 11 * (C215 + 10 / 11 * (C220 + 10 / 11 * (C225 + 10 / 11 * (C230 + 10 / 11 * (C235 + 10 / 11 * (C240 + 10 / 11 * (C245 + 10 / 11 * (C250 + 10 / 11 * (C255 + 10 / 11 * (C260 + 10 / 11 * (C265 + 10 / 11 * (C270 + 10 / 11 * (C275 + 10 / 11 * (C280 + 10 / 11 * (C285 + 10 / 11 * (C290 + 10 / 11 * (C295 + 10 / 11 * (C300 + 10 / 11 * (C305 + 10 / 11 * (C310 + 10 / 11 * (C315 + 10 / 11 * (C320 + 10 / 11 * (C325 + 10 / 11 * (C330 + 10 / 11 * (C335 + 10 / 11 * (C340 + 10 / 11 * (C345 + 10 / 11 * (C350 + 10 / 11 * (C355 + 10 / 11 * (C360 + 10 / 11 * (C365)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

EMA5 xDown EMA21 (Weekly):

.333559032545198 * (C + 2 / 3 * (C5 + 2 / 3 * (C10 + 2 / 3 * (C15 + 2 / 3 * (C20 + 2 / 3 * (C25 + 2 / 3 * (C30 + 2 / 3 * (C35 + 2 / 3 * (C40 + 2 / 3 * (C45 + 2 / 3 * (C50 + 2 / 3 * (C55 + 2 / 3 * (C60 + 2 / 3 * (C65 + 2 / 3 * (C70 + 2 / 3 * (C75 + 2 / 3 * (C80 + 2 / 3 * (C85)))))))))))))))))) < .0909956583651082 * (C + 10 / 11 * (C5 + 10 / 11 * (C10 + 10 / 11 * (C15 + 10 / 11 * (C20 + 10 / 11 * (C25 + 10 / 11 * (C30 + 10 / 11 * (C35 + 10 / 11 * (C40 + 10 / 11 * (C45 + 10 / 11 * (C50 + 10 / 11 * (C55 + 10 / 11 * (C60 + 10 / 11 * (C65 + 10 / 11 * (C70 + 10 / 11 * (C75 + 10 / 11 * (C80 + 10 / 11 * (C85 + 10 / 11 * (C90 + 10 / 11 * (C95 + 10 / 11 * (C100 + 10 / 11 * (C105 + 10 / 11 * (C110 + 10 / 11 * (C115 + 10 / 11 * (C120 + 10 / 11 * (C125 + 10 / 11 * (C130 + 10 / 11 * (C135 + 10 / 11 * (C140 + 10 / 11 * (C145 + 10 / 11 * (C150 + 10 / 11 * (C155 + 10 / 11 * (C160 + 10 / 11 * (C165 + 10 / 11 * (C170 + 10 / 11 * (C175 + 10 / 11 * (C180 + 10 / 11 * (C185 + 10 / 11 * (C190 + 10 / 11 * (C195 + 10 / 11 * (C200 + 10 / 11 * (C205 + 10 / 11 * (C210 + 10 / 11 * (C215 + 10 / 11 * (C220 + 10 / 11 * (C225 + 10 / 11 * (C230 + 10 / 11 * (C235 + 10 / 11 * (C240 + 10 / 11 * (C245 + 10 / 11 * (C250 + 10 / 11 * (C255 + 10 / 11 * (C260 + 10 / 11 * (C265 + 10 / 11 * (C270 + 10 / 11 * (C275 + 10 / 11 * (C280 + 10 / 11 * (C285 + 10 / 11 * (C290 + 10 / 11 * (C295 + 10 / 11 * (C300 + 10 / 11 * (C305 + 10 / 11 * (C310 + 10 / 11 * (C315 + 10 / 11 * (C320 + 10 / 11 * (C325 + 10 / 11 * (C330 + 10 / 11 * (C335 + 10 / 11 * (C340 + 10 / 11 * (C345 + 10 / 11 * (C350 + 10 / 11 * (C355 + 10 / 11 * (C360))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND .333559032545198 * (C5 + 2 / 3 * (C10 + 2 / 3 * (C15 + 2 / 3 * (C20 + 2 / 3 * (C25 + 2 / 3 * (C30 + 2 / 3 * (C35 + 2 / 3 * (C40 + 2 / 3 * (C45 + 2 / 3 * (C50 + 2 / 3 * (C55 + 2 / 3 * (C60 + 2 / 3 * (C65 + 2 / 3 * (C70 + 2 / 3 * (C75 + 2 / 3 * (C80 + 2 / 3 * (C85 + 2 / 3 * (C90)))))))))))))))))) >= .0909956583651082 * (C5 + 10 / 11 * (C10 + 10 / 11 * (C15 + 10 / 11 * (C20 + 10 / 11 * (C25 + 10 / 11 * (C30 + 10 / 11 * (C35 + 10 / 11 * (C40 + 10 / 11 * (C45 + 10 / 11 * (C50 + 10 / 11 * (C55 + 10 / 11 * (C60 + 10 / 11 * (C65 + 10 / 11 * (C70 + 10 / 11 * (C75 + 10 / 11 * (C80 + 10 / 11 * (C85 + 10 / 11 * (C90 + 10 / 11 * (C95 + 10 / 11 * (C100 + 10 / 11 * (C105 + 10 / 11 * (C110 + 10 / 11 * (C115 + 10 / 11 * (C120 + 10 / 11 * (C125 + 10 / 11 * (C130 + 10 / 11 * (C135 + 10 / 11 * (C140 + 10 / 11 * (C145 + 10 / 11 * (C150 + 10 / 11 * (C155 + 10 / 11 * (C160 + 10 / 11 * (C165 + 10 / 11 * (C170 + 10 / 11 * (C175 + 10 / 11 * (C180 + 10 / 11 * (C185 + 10 / 11 * (C190 + 10 / 11 * (C195 + 10 / 11 * (C200 + 10 / 11 * (C205 + 10 / 11 * (C210 + 10 / 11 * (C215 + 10 / 11 * (C220 + 10 / 11 * (C225 + 10 / 11 * (C230 + 10 / 11 * (C235 + 10 / 11 * (C240 + 10 / 11 * (C245 + 10 / 11 * (C250 + 10 / 11 * (C255 + 10 / 11 * (C260 + 10 / 11 * (C265 + 10 / 11 * (C270 + 10 / 11 * (C275 + 10 / 11 * (C280 + 10 / 11 * (C285 + 10 / 11 * (C290 + 10 / 11 * (C295 + 10 / 11 * (C300 + 10 / 11 * (C305 + 10 / 11 * (C310 + 10 / 11 * (C315 + 10 / 11 * (C320 + 10 / 11 * (C325 + 10 / 11 * (C330 + 10 / 11 * (C335 + 10 / 11 * (C340 + 10 / 11 * (C345 + 10 / 11 * (C350 + 10 / 11 * (C355 + 10 / 11 * (C360 + 10 / 11 * (C365)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

EMA5 crossing EMA21 (Weekly - Either Direction):

SGN(.333559032545198 * (C + 2 / 3 * (C5 + 2 / 3 * (C10 + 2 / 3 * (C15 + 2 / 3 * (C20 + 2 / 3 * (C25 + 2 / 3 * (C30 + 2 / 3 * (C35 + 2 / 3 * (C40 + 2 / 3 * (C45 + 2 / 3 * (C50 + 2 / 3 * (C55 + 2 / 3 * (C60 + 2 / 3 * (C65 + 2 / 3 * (C70 + 2 / 3 * (C75 + 2 / 3 * (C80 + 2 / 3 * (C85)))))))))))))))))) - .0909956583651082 * (C + 10 / 11 * (C5 + 10 / 11 * (C10 + 10 / 11 * (C15 + 10 / 11 * (C20 + 10 / 11 * (C25 + 10 / 11 * (C30 + 10 / 11 * (C35 + 10 / 11 * (C40 + 10 / 11 * (C45 + 10 / 11 * (C50 + 10 / 11 * (C55 + 10 / 11 * (C60 + 10 / 11 * (C65 + 10 / 11 * (C70 + 10 / 11 * (C75 + 10 / 11 * (C80 + 10 / 11 * (C85 + 10 / 11 * (C90 + 10 / 11 * (C95 + 10 / 11 * (C100 + 10 / 11 * (C105 + 10 / 11 * (C110 + 10 / 11 * (C115 + 10 / 11 * (C120 + 10 / 11 * (C125 + 10 / 11 * (C130 + 10 / 11 * (C135 + 10 / 11 * (C140 + 10 / 11 * (C145 + 10 / 11 * (C150 + 10 / 11 * (C155 + 10 / 11 * (C160 + 10 / 11 * (C165 + 10 / 11 * (C170 + 10 / 11 * (C175 + 10 / 11 * (C180 + 10 / 11 * (C185 + 10 / 11 * (C190 + 10 / 11 * (C195 + 10 / 11 * (C200 + 10 / 11 * (C205 + 10 / 11 * (C210 + 10 / 11 * (C215 + 10 / 11 * (C220 + 10 / 11 * (C225 + 10 / 11 * (C230 + 10 / 11 * (C235 + 10 / 11 * (C240 + 10 / 11 * (C245 + 10 / 11 * (C250 + 10 / 11 * (C255 + 10 / 11 * (C260 + 10 / 11 * (C265 + 10 / 11 * (C270 + 10 / 11 * (C275 + 10 / 11 * (C280 + 10 / 11 * (C285 + 10 / 11 * (C290 + 10 / 11 * (C295 + 10 / 11 * (C300 + 10 / 11 * (C305 + 10 / 11 * (C310 + 10 / 11 * (C315 + 10 / 11 * (C320 + 10 / 11 * (C325 + 10 / 11 * (C330 + 10 / 11 * (C335 + 10 / 11 * (C340 + 10 / 11 * (C345 + 10 / 11 * (C350 + 10 / 11 * (C355 + 10 / 11 * (C360)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) <> SGN(.333559032545198 * (C5 + 2 / 3 * (C10 + 2 / 3 * (C15 + 2 / 3 * (C20 + 2 / 3 * (C25 + 2 / 3 * (C30 + 2 / 3 * (C35 + 2 / 3 * (C40 + 2 / 3 * (C45 + 2 / 3 * (C50 + 2 / 3 * (C55 + 2 / 3 * (C60 + 2 / 3 * (C65 + 2 / 3 * (C70 + 2 / 3 * (C75 + 2 / 3 * (C80 + 2 / 3 * (C85 + 2 / 3 * (C90)))))))))))))))))) - .0909956583651082 * (C5 + 10 / 11 * (C10 + 10 / 11 * (C15 + 10 / 11 * (C20 + 10 / 11 * (C25 + 10 / 11 * (C30 + 10 / 11 * (C35 + 10 / 11 * (C40 + 10 / 11 * (C45 + 10 / 11 * (C50 + 10 / 11 * (C55 + 10 / 11 * (C60 + 10 / 11 * (C65 + 10 / 11 * (C70 + 10 / 11 * (C75 + 10 / 11 * (C80 + 10 / 11 * (C85 + 10 / 11 * (C90 + 10 / 11 * (C95 + 10 / 11 * (C100 + 10 / 11 * (C105 + 10 / 11 * (C110 + 10 / 11 * (C115 + 10 / 11 * (C120 + 10 / 11 * (C125 + 10 / 11 * (C130 + 10 / 11 * (C135 + 10 / 11 * (C140 + 10 / 11 * (C145 + 10 / 11 * (C150 + 10 / 11 * (C155 + 10 / 11 * (C160 + 10 / 11 * (C165 + 10 / 11 * (C170 + 10 / 11 * (C175 + 10 / 11 * (C180 + 10 / 11 * (C185 + 10 / 11 * (C190 + 10 / 11 * (C195 + 10 / 11 * (C200 + 10 / 11 * (C205 + 10 / 11 * (C210 + 10 / 11 * (C215 + 10 / 11 * (C220 + 10 / 11 * (C225 + 10 / 11 * (C230 + 10 / 11 * (C235 + 10 / 11 * (C240 + 10 / 11 * (C245 + 10 / 11 * (C250 + 10 / 11 * (C255 + 10 / 11 * (C260 + 10 / 11 * (C265 + 10 / 11 * (C270 + 10 / 11 * (C275 + 10 / 11 * (C280 + 10 / 11 * (C285 + 10 / 11 * (C290 + 10 / 11 * (C295 + 10 / 11 * (C300 + 10 / 11 * (C305 + 10 / 11 * (C310 + 10 / 11 * (C315 + 10 / 11 * (C320 + 10 / 11 * (C325 + 10 / 11 * (C330 + 10 / 11 * (C335 + 10 / 11 * (C340 + 10 / 11 * (C345 + 10 / 11 * (C350 + 10 / 11 * (C355 + 10 / 11 * (C360 + 10 / 11 * (C365))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

You may wish to review the following:

Cascades of Moving Averages

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
malick
Posted : Saturday, January 31, 2009 3:11:54 PM
Registered User
Joined: 3/17/2005
Posts: 187
how would one write a weekly cross of 10ema crossing 40ema ?
thanks
Bruce_L
Posted : Monday, February 2, 2009 10:16:23 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
malick,
Please try one or more of the following:

EMA10 xUp EMA40 (Weekly):

.181980276277401 * (C + 9 / 11 * (C5 + 9 / 11 * (C10 + 9 / 11 * (C15 + 9 / 11 * (C20 + 9 / 11 * (C25 + 9 / 11 * (C30 + 9 / 11 * (C35 + 9 / 11 * (C40 + 9 / 11 * (C45 + 9 / 11 * (C50 + 9 / 11 * (C55 + 9 / 11 * (C60 + 9 / 11 * (C65 + 9 / 11 * (C70 + 9 / 11 * (C75 + 9 / 11 * (C80 + 9 / 11 * (C85 + 9 / 11 * (C90 + 9 / 11 * (C95 + 9 / 11 * (C100 + 9 / 11 * (C105 + 9 / 11 * (C110 + 9 / 11 * (C115 + 9 / 11 * (C120 + 9 / 11 * (C125 + 9 / 11 * (C130 + 9 / 11 * (C135 + 9 / 11 * (C140 + 9 / 11 * (C145 + 9 / 11 * (C150 + 9 / 11 * (C155 + 9 / 11 * (C160 + 9 / 11 * (C165 + 9 / 11 * (C170))))))))))))))))))))))))))))))))))) > .0488272275519639 * (C + 39 / 41 * (C5 + 39 / 41 * (C10 + 39 / 41 * (C15 + 39 / 41 * (C20 + 39 / 41 * (C25 + 39 / 41 * (C30 + 39 / 41 * (C35 + 39 / 41 * (C40 + 39 / 41 * (C45 + 39 / 41 * (C50 + 39 / 41 * (C55 + 39 / 41 * (C60 + 39 / 41 * (C65 + 39 / 41 * (C70 + 39 / 41 * (C75 + 39 / 41 * (C80 + 39 / 41 * (C85 + 39 / 41 * (C90 + 39 / 41 * (C95 + 39 / 41 * (C100 + 39 / 41 * (C105 + 39 / 41 * (C110 + 39 / 41 * (C115 + 39 / 41 * (C120 + 39 / 41 * (C125 + 39 / 41 * (C130 + 39 / 41 * (C135 + 39 / 41 * (C140 + 39 / 41 * (C145 + 39 / 41 * (C150 + 39 / 41 * (C155 + 39 / 41 * (C160 + 39 / 41 * (C165 + 39 / 41 * (C170 + 39 / 41 * (C175 + 39 / 41 * (C180 + 39 / 41 * (C185 + 39 / 41 * (C190 + 39 / 41 * (C195 + 39 / 41 * (C200 + 39 / 41 * (C205 + 39 / 41 * (C210 + 39 / 41 * (C215 + 39 / 41 * (C220 + 39 / 41 * (C225 + 39 / 41 * (C230 + 39 / 41 * (C235 + 39 / 41 * (C240 + 39 / 41 * (C245 + 39 / 41 * (C250 + 39 / 41 * (C255 + 39 / 41 * (C260 + 39 / 41 * (C265 + 39 / 41 * (C270 + 39 / 41 * (C275 + 39 / 41 * (C280 + 39 / 41 * (C285 + 39 / 41 * (C290 + 39 / 41 * (C295 + 39 / 41 * (C300 + 39 / 41 * (C305 + 39 / 41 * (C310 + 39 / 41 * (C315 + 39 / 41 * (C320 + 39 / 41 * (C325 + 39 / 41 * (C330 + 39 / 41 * (C335 + 39 / 41 * (C340 + 39 / 41 * (C345 + 39 / 41 * (C350 + 39 / 41 * (C355 + 39 / 41 * (C360 + 39 / 41 * (C365 + 39 / 41 * (C370 + 39 / 41 * (C375 + 39 / 41 * (C380 + 39 / 41 * (C385 + 39 / 41 * (C390 + 39 / 41 * (C395 + 39 / 41 * (C400 + 39 / 41 * (C405 + 39 / 41 * (C410 + 39 / 41 * (C415 + 39 / 41 * (C420 + 39 / 41 * (C425 + 39 / 41 * (C430 + 39 / 41 * (C435 + 39 / 41 * (C440 + 39 / 41 * (C445 + 39 / 41 * (C450 + 39 / 41 * (C455 + 39 / 41 * (C460 + 39 / 41 * (C465 + 39 / 41 * (C470 + 39 / 41 * (C475 + 39 / 41 * (C480 + 39 / 41 * (C485 + 39 / 41 * (C490 + 39 / 41 * (C495 + 39 / 41 * (C500 + 39 / 41 * (C505 + 39 / 41 * (C510 + 39 / 41 * (C515 + 39 / 41 * (C520 + 39 / 41 * (C525 + 39 / 41 * (C530 + 39 / 41 * (C535 + 39 / 41 * (C540 + 39 / 41 * (C545 + 39 / 41 * (C550 + 39 / 41 * (C555 + 39 / 41 * (C560 + 39 / 41 * (C565 + 39 / 41 * (C570 + 39 / 41 * (C575 + 39 / 41 * (C580 + 39 / 41 * (C585 + 39 / 41 * (C590 + 39 / 41 * (C595 + 39 / 41 * (C600 + 39 / 41 * (C605 + 39 / 41 * (C610 + 39 / 41 * (C615 + 39 / 41 * (C620 + 39 / 41 * (C625 + 39 / 41 * (C630 + 39 / 41 * (C635 + 39 / 41 * (C640 + 39 / 41 * (C645 + 39 / 41 * (C650 + 39 / 41 * (C655 + 39 / 41 * (C660 + 39 / 41 * (C665 + 39 / 41 * (C670 + 39 / 41 * (C675 + 39 / 41 * (C680 + 39 / 41 * (C685 + 39 / 41 * (C690))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND .181980276277401 * (C5 + 9 / 11 * (C10 + 9 / 11 * (C15 + 9 / 11 * (C20 + 9 / 11 * (C25 + 9 / 11 * (C30 + 9 / 11 * (C35 + 9 / 11 * (C40 + 9 / 11 * (C45 + 9 / 11 * (C50 + 9 / 11 * (C55 + 9 / 11 * (C60 + 9 / 11 * (C65 + 9 / 11 * (C70 + 9 / 11 * (C75 + 9 / 11 * (C80 + 9 / 11 * (C85 + 9 / 11 * (C90 + 9 / 11 * (C95 + 9 / 11 * (C100 + 9 / 11 * (C105 + 9 / 11 * (C110 + 9 / 11 * (C115 + 9 / 11 * (C120 + 9 / 11 * (C125 + 9 / 11 * (C130 + 9 / 11 * (C135 + 9 / 11 * (C140 + 9 / 11 * (C145 + 9 / 11 * (C150 + 9 / 11 * (C155 + 9 / 11 * (C160 + 9 / 11 * (C165 + 9 / 11 * (C170 + 9 / 11 * (C175))))))))))))))))))))))))))))))))))) <= .0488272275519639 * (C5 + 39 / 41 * (C10 + 39 / 41 * (C15 + 39 / 41 * (C20 + 39 / 41 * (C25 + 39 / 41 * (C30 + 39 / 41 * (C35 + 39 / 41 * (C40 + 39 / 41 * (C45 + 39 / 41 * (C50 + 39 / 41 * (C55 + 39 / 41 * (C60 + 39 / 41 * (C65 + 39 / 41 * (C70 + 39 / 41 * (C75 + 39 / 41 * (C80 + 39 / 41 * (C85 + 39 / 41 * (C90 + 39 / 41 * (C95 + 39 / 41 * (C100 + 39 / 41 * (C105 + 39 / 41 * (C110 + 39 / 41 * (C115 + 39 / 41 * (C120 + 39 / 41 * (C125 + 39 / 41 * (C130 + 39 / 41 * (C135 + 39 / 41 * (C140 + 39 / 41 * (C145 + 39 / 41 * (C150 + 39 / 41 * (C155 + 39 / 41 * (C160 + 39 / 41 * (C165 + 39 / 41 * (C170 + 39 / 41 * (C175 + 39 / 41 * (C180 + 39 / 41 * (C185 + 39 / 41 * (C190 + 39 / 41 * (C195 + 39 / 41 * (C200 + 39 / 41 * (C205 + 39 / 41 * (C210 + 39 / 41 * (C215 + 39 / 41 * (C220 + 39 / 41 * (C225 + 39 / 41 * (C230 + 39 / 41 * (C235 + 39 / 41 * (C240 + 39 / 41 * (C245 + 39 / 41 * (C250 + 39 / 41 * (C255 + 39 / 41 * (C260 + 39 / 41 * (C265 + 39 / 41 * (C270 + 39 / 41 * (C275 + 39 / 41 * (C280 + 39 / 41 * (C285 + 39 / 41 * (C290 + 39 / 41 * (C295 + 39 / 41 * (C300 + 39 / 41 * (C305 + 39 / 41 * (C310 + 39 / 41 * (C315 + 39 / 41 * (C320 + 39 / 41 * (C325 + 39 / 41 * (C330 + 39 / 41 * (C335 + 39 / 41 * (C340 + 39 / 41 * (C345 + 39 / 41 * (C350 + 39 / 41 * (C355 + 39 / 41 * (C360 + 39 / 41 * (C365 + 39 / 41 * (C370 + 39 / 41 * (C375 + 39 / 41 * (C380 + 39 / 41 * (C385 + 39 / 41 * (C390 + 39 / 41 * (C395 + 39 / 41 * (C400 + 39 / 41 * (C405 + 39 / 41 * (C410 + 39 / 41 * (C415 + 39 / 41 * (C420 + 39 / 41 * (C425 + 39 / 41 * (C430 + 39 / 41 * (C435 + 39 / 41 * (C440 + 39 / 41 * (C445 + 39 / 41 * (C450 + 39 / 41 * (C455 + 39 / 41 * (C460 + 39 / 41 * (C465 + 39 / 41 * (C470 + 39 / 41 * (C475 + 39 / 41 * (C480 + 39 / 41 * (C485 + 39 / 41 * (C490 + 39 / 41 * (C495 + 39 / 41 * (C500 + 39 / 41 * (C505 + 39 / 41 * (C510 + 39 / 41 * (C515 + 39 / 41 * (C520 + 39 / 41 * (C525 + 39 / 41 * (C530 + 39 / 41 * (C535 + 39 / 41 * (C540 + 39 / 41 * (C545 + 39 / 41 * (C550 + 39 / 41 * (C555 + 39 / 41 * (C560 + 39 / 41 * (C565 + 39 / 41 * (C570 + 39 / 41 * (C575 + 39 / 41 * (C580 + 39 / 41 * (C585 + 39 / 41 * (C590 + 39 / 41 * (C595 + 39 / 41 * (C600 + 39 / 41 * (C605 + 39 / 41 * (C610 + 39 / 41 * (C615 + 39 / 41 * (C620 + 39 / 41 * (C625 + 39 / 41 * (C630 + 39 / 41 * (C635 + 39 / 41 * (C640 + 39 / 41 * (C645 + 39 / 41 * (C650 + 39 / 41 * (C655 + 39 / 41 * (C660 + 39 / 41 * (C665 + 39 / 41 * (C670 + 39 / 41 * (C675 + 39 / 41 * (C680 + 39 / 41 * (C685 + 39 / 41 * (C690 + 39 / 41 * (C695)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

EMA10 xDown EMA40 (Weekly):

.181980276277401 * (C + 9 / 11 * (C5 + 9 / 11 * (C10 + 9 / 11 * (C15 + 9 / 11 * (C20 + 9 / 11 * (C25 + 9 / 11 * (C30 + 9 / 11 * (C35 + 9 / 11 * (C40 + 9 / 11 * (C45 + 9 / 11 * (C50 + 9 / 11 * (C55 + 9 / 11 * (C60 + 9 / 11 * (C65 + 9 / 11 * (C70 + 9 / 11 * (C75 + 9 / 11 * (C80 + 9 / 11 * (C85 + 9 / 11 * (C90 + 9 / 11 * (C95 + 9 / 11 * (C100 + 9 / 11 * (C105 + 9 / 11 * (C110 + 9 / 11 * (C115 + 9 / 11 * (C120 + 9 / 11 * (C125 + 9 / 11 * (C130 + 9 / 11 * (C135 + 9 / 11 * (C140 + 9 / 11 * (C145 + 9 / 11 * (C150 + 9 / 11 * (C155 + 9 / 11 * (C160 + 9 / 11 * (C165 + 9 / 11 * (C170))))))))))))))))))))))))))))))))))) > .0488272275519639 * (C + 39 / 41 * (C5 + 39 / 41 * (C10 + 39 / 41 * (C15 + 39 / 41 * (C20 + 39 / 41 * (C25 + 39 / 41 * (C30 + 39 / 41 * (C35 + 39 / 41 * (C40 + 39 / 41 * (C45 + 39 / 41 * (C50 + 39 / 41 * (C55 + 39 / 41 * (C60 + 39 / 41 * (C65 + 39 / 41 * (C70 + 39 / 41 * (C75 + 39 / 41 * (C80 + 39 / 41 * (C85 + 39 / 41 * (C90 + 39 / 41 * (C95 + 39 / 41 * (C100 + 39 / 41 * (C105 + 39 / 41 * (C110 + 39 / 41 * (C115 + 39 / 41 * (C120 + 39 / 41 * (C125 + 39 / 41 * (C130 + 39 / 41 * (C135 + 39 / 41 * (C140 + 39 / 41 * (C145 + 39 / 41 * (C150 + 39 / 41 * (C155 + 39 / 41 * (C160 + 39 / 41 * (C165 + 39 / 41 * (C170 + 39 / 41 * (C175 + 39 / 41 * (C180 + 39 / 41 * (C185 + 39 / 41 * (C190 + 39 / 41 * (C195 + 39 / 41 * (C200 + 39 / 41 * (C205 + 39 / 41 * (C210 + 39 / 41 * (C215 + 39 / 41 * (C220 + 39 / 41 * (C225 + 39 / 41 * (C230 + 39 / 41 * (C235 + 39 / 41 * (C240 + 39 / 41 * (C245 + 39 / 41 * (C250 + 39 / 41 * (C255 + 39 / 41 * (C260 + 39 / 41 * (C265 + 39 / 41 * (C270 + 39 / 41 * (C275 + 39 / 41 * (C280 + 39 / 41 * (C285 + 39 / 41 * (C290 + 39 / 41 * (C295 + 39 / 41 * (C300 + 39 / 41 * (C305 + 39 / 41 * (C310 + 39 / 41 * (C315 + 39 / 41 * (C320 + 39 / 41 * (C325 + 39 / 41 * (C330 + 39 / 41 * (C335 + 39 / 41 * (C340 + 39 / 41 * (C345 + 39 / 41 * (C350 + 39 / 41 * (C355 + 39 / 41 * (C360 + 39 / 41 * (C365 + 39 / 41 * (C370 + 39 / 41 * (C375 + 39 / 41 * (C380 + 39 / 41 * (C385 + 39 / 41 * (C390 + 39 / 41 * (C395 + 39 / 41 * (C400 + 39 / 41 * (C405 + 39 / 41 * (C410 + 39 / 41 * (C415 + 39 / 41 * (C420 + 39 / 41 * (C425 + 39 / 41 * (C430 + 39 / 41 * (C435 + 39 / 41 * (C440 + 39 / 41 * (C445 + 39 / 41 * (C450 + 39 / 41 * (C455 + 39 / 41 * (C460 + 39 / 41 * (C465 + 39 / 41 * (C470 + 39 / 41 * (C475 + 39 / 41 * (C480 + 39 / 41 * (C485 + 39 / 41 * (C490 + 39 / 41 * (C495 + 39 / 41 * (C500 + 39 / 41 * (C505 + 39 / 41 * (C510 + 39 / 41 * (C515 + 39 / 41 * (C520 + 39 / 41 * (C525 + 39 / 41 * (C530 + 39 / 41 * (C535 + 39 / 41 * (C540 + 39 / 41 * (C545 + 39 / 41 * (C550 + 39 / 41 * (C555 + 39 / 41 * (C560 + 39 / 41 * (C565 + 39 / 41 * (C570 + 39 / 41 * (C575 + 39 / 41 * (C580 + 39 / 41 * (C585 + 39 / 41 * (C590 + 39 / 41 * (C595 + 39 / 41 * (C600 + 39 / 41 * (C605 + 39 / 41 * (C610 + 39 / 41 * (C615 + 39 / 41 * (C620 + 39 / 41 * (C625 + 39 / 41 * (C630 + 39 / 41 * (C635 + 39 / 41 * (C640 + 39 / 41 * (C645 + 39 / 41 * (C650 + 39 / 41 * (C655 + 39 / 41 * (C660 + 39 / 41 * (C665 + 39 / 41 * (C670 + 39 / 41 * (C675 + 39 / 41 * (C680 + 39 / 41 * (C685 + 39 / 41 * (C690))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND .181980276277401 * (C5 + 9 / 11 * (C10 + 9 / 11 * (C15 + 9 / 11 * (C20 + 9 / 11 * (C25 + 9 / 11 * (C30 + 9 / 11 * (C35 + 9 / 11 * (C40 + 9 / 11 * (C45 + 9 / 11 * (C50 + 9 / 11 * (C55 + 9 / 11 * (C60 + 9 / 11 * (C65 + 9 / 11 * (C70 + 9 / 11 * (C75 + 9 / 11 * (C80 + 9 / 11 * (C85 + 9 / 11 * (C90 + 9 / 11 * (C95 + 9 / 11 * (C100 + 9 / 11 * (C105 + 9 / 11 * (C110 + 9 / 11 * (C115 + 9 / 11 * (C120 + 9 / 11 * (C125 + 9 / 11 * (C130 + 9 / 11 * (C135 + 9 / 11 * (C140 + 9 / 11 * (C145 + 9 / 11 * (C150 + 9 / 11 * (C155 + 9 / 11 * (C160 + 9 / 11 * (C165 + 9 / 11 * (C170 + 9 / 11 * (C175))))))))))))))))))))))))))))))))))) >= 0.0488272275519639 * (C5 + 39 / 41 * (C10 + 39 / 41 * (C15 + 39 / 41 * (C20 + 39 / 41 * (C25 + 39 / 41 * (C30 + 39 / 41 * (C35 + 39 / 41 * (C40 + 39 / 41 * (C45 + 39 / 41 * (C50 + 39 / 41 * (C55 + 39 / 41 * (C60 + 39 / 41 * (C65 + 39 / 41 * (C70 + 39 / 41 * (C75 + 39 / 41 * (C80 + 39 / 41 * (C85 + 39 / 41 * (C90 + 39 / 41 * (C95 + 39 / 41 * (C100 + 39 / 41 * (C105 + 39 / 41 * (C110 + 39 / 41 * (C115 + 39 / 41 * (C120 + 39 / 41 * (C125 + 39 / 41 * (C130 + 39 / 41 * (C135 + 39 / 41 * (C140 + 39 / 41 * (C145 + 39 / 41 * (C150 + 39 / 41 * (C155 + 39 / 41 * (C160 + 39 / 41 * (C165 + 39 / 41 * (C170 + 39 / 41 * (C175 + 39 / 41 * (C180 + 39 / 41 * (C185 + 39 / 41 * (C190 + 39 / 41 * (C195 + 39 / 41 * (C200 + 39 / 41 * (C205 + 39 / 41 * (C210 + 39 / 41 * (C215 + 39 / 41 * (C220 + 39 / 41 * (C225 + 39 / 41 * (C230 + 39 / 41 * (C235 + 39 / 41 * (C240 + 39 / 41 * (C245 + 39 / 41 * (C250 + 39 / 41 * (C255 + 39 / 41 * (C260 + 39 / 41 * (C265 + 39 / 41 * (C270 + 39 / 41 * (C275 + 39 / 41 * (C280 + 39 / 41 * (C285 + 39 / 41 * (C290 + 39 / 41 * (C295 + 39 / 41 * (C300 + 39 / 41 * (C305 + 39 / 41 * (C310 + 39 / 41 * (C315 + 39 / 41 * (C320 + 39 / 41 * (C325 + 39 / 41 * (C330 + 39 / 41 * (C335 + 39 / 41 * (C340 + 39 / 41 * (C345 + 39 / 41 * (C350 + 39 / 41 * (C355 + 39 / 41 * (C360 + 39 / 41 * (C365 + 39 / 41 * (C370 + 39 / 41 * (C375 + 39 / 41 * (C380 + 39 / 41 * (C385 + 39 / 41 * (C390 + 39 / 41 * (C395 + 39 / 41 * (C400 + 39 / 41 * (C405 + 39 / 41 * (C410 + 39 / 41 * (C415 + 39 / 41 * (C420 + 39 / 41 * (C425 + 39 / 41 * (C430 + 39 / 41 * (C435 + 39 / 41 * (C440 + 39 / 41 * (C445 + 39 / 41 * (C450 + 39 / 41 * (C455 + 39 / 41 * (C460 + 39 / 41 * (C465 + 39 / 41 * (C470 + 39 / 41 * (C475 + 39 / 41 * (C480 + 39 / 41 * (C485 + 39 / 41 * (C490 + 39 / 41 * (C495 + 39 / 41 * (C500 + 39 / 41 * (C505 + 39 / 41 * (C510 + 39 / 41 * (C515 + 39 / 41 * (C520 + 39 / 41 * (C525 + 39 / 41 * (C530 + 39 / 41 * (C535 + 39 / 41 * (C540 + 39 / 41 * (C545 + 39 / 41 * (C550 + 39 / 41 * (C555 + 39 / 41 * (C560 + 39 / 41 * (C565 + 39 / 41 * (C570 + 39 / 41 * (C575 + 39 / 41 * (C580 + 39 / 41 * (C585 + 39 / 41 * (C590 + 39 / 41 * (C595 + 39 / 41 * (C600 + 39 / 41 * (C605 + 39 / 41 * (C610 + 39 / 41 * (C615 + 39 / 41 * (C620 + 39 / 41 * (C625 + 39 / 41 * (C630 + 39 / 41 * (C635 + 39 / 41 * (C640 + 39 / 41 * (C645 + 39 / 41 * (C650 + 39 / 41 * (C655 + 39 / 41 * (C660 + 39 / 41 * (C665 + 39 / 41 * (C670 + 39 / 41 * (C675 + 39 / 41 * (C680 + 39 / 41 * (C685 + 39 / 41 * (C690 + 39 / 41 * (C695)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

EMA10 crossing EMA40 (Weekly - Either Direction):

SGN(.181980276277401 * (C + 9 / 11 * (C5 + 9 / 11 * (C10 + 9 / 11 * (C15 + 9 / 11 * (C20 + 9 / 11 * (C25 + 9 / 11 * (C30 + 9 / 11 * (C35 + 9 / 11 * (C40 + 9 / 11 * (C45 + 9 / 11 * (C50 + 9 / 11 * (C55 + 9 / 11 * (C60 + 9 / 11 * (C65 + 9 / 11 * (C70 + 9 / 11 * (C75 + 9 / 11 * (C80 + 9 / 11 * (C85 + 9 / 11 * (C90 + 9 / 11 * (C95 + 9 / 11 * (C100 + 9 / 11 * (C105 + 9 / 11 * (C110 + 9 / 11 * (C115 + 9 / 11 * (C120 + 9 / 11 * (C125 + 9 / 11 * (C130 + 9 / 11 * (C135 + 9 / 11 * (C140 + 9 / 11 * (C145 + 9 / 11 * (C150 + 9 / 11 * (C155 + 9 / 11 * (C160 + 9 / 11 * (C165 + 9 / 11 * (C170))))))))))))))))))))))))))))))))))) - .0488272275519639 * (C + 39 / 41 * (C5 + 39 / 41 * (C10 + 39 / 41 * (C15 + 39 / 41 * (C20 + 39 / 41 * (C25 + 39 / 41 * (C30 + 39 / 41 * (C35 + 39 / 41 * (C40 + 39 / 41 * (C45 + 39 / 41 * (C50 + 39 / 41 * (C55 + 39 / 41 * (C60 + 39 / 41 * (C65 + 39 / 41 * (C70 + 39 / 41 * (C75 + 39 / 41 * (C80 + 39 / 41 * (C85 + 39 / 41 * (C90 + 39 / 41 * (C95 + 39 / 41 * (C100 + 39 / 41 * (C105 + 39 / 41 * (C110 + 39 / 41 * (C115 + 39 / 41 * (C120 + 39 / 41 * (C125 + 39 / 41 * (C130 + 39 / 41 * (C135 + 39 / 41 * (C140 + 39 / 41 * (C145 + 39 / 41 * (C150 + 39 / 41 * (C155 + 39 / 41 * (C160 + 39 / 41 * (C165 + 39 / 41 * (C170 + 39 / 41 * (C175 + 39 / 41 * (C180 + 39 / 41 * (C185 + 39 / 41 * (C190 + 39 / 41 * (C195 + 39 / 41 * (C200 + 39 / 41 * (C205 + 39 / 41 * (C210 + 39 / 41 * (C215 + 39 / 41 * (C220 + 39 / 41 * (C225 + 39 / 41 * (C230 + 39 / 41 * (C235 + 39 / 41 * (C240 + 39 / 41 * (C245 + 39 / 41 * (C250 + 39 / 41 * (C255 + 39 / 41 * (C260 + 39 / 41 * (C265 + 39 / 41 * (C270 + 39 / 41 * (C275 + 39 / 41 * (C280 + 39 / 41 * (C285 + 39 / 41 * (C290 + 39 / 41 * (C295 + 39 / 41 * (C300 + 39 / 41 * (C305 + 39 / 41 * (C310 + 39 / 41 * (C315 + 39 / 41 * (C320 + 39 / 41 * (C325 + 39 / 41 * (C330 + 39 / 41 * (C335 + 39 / 41 * (C340 + 39 / 41 * (C345 + 39 / 41 * (C350 + 39 / 41 * (C355 + 39 / 41 * (C360 + 39 / 41 * (C365 + 39 / 41 * (C370 + 39 / 41 * (C375 + 39 / 41 * (C380 + 39 / 41 * (C385 + 39 / 41 * (C390 + 39 / 41 * (C395 + 39 / 41 * (C400 + 39 / 41 * (C405 + 39 / 41 * (C410 + 39 / 41 * (C415 + 39 / 41 * (C420 + 39 / 41 * (C425 + 39 / 41 * (C430 + 39 / 41 * (C435 + 39 / 41 * (C440 + 39 / 41 * (C445 + 39 / 41 * (C450 + 39 / 41 * (C455 + 39 / 41 * (C460 + 39 / 41 * (C465 + 39 / 41 * (C470 + 39 / 41 * (C475 + 39 / 41 * (C480 + 39 / 41 * (C485 + 39 / 41 * (C490 + 39 / 41 * (C495 + 39 / 41 * (C500 + 39 / 41 * (C505 + 39 / 41 * (C510 + 39 / 41 * (C515 + 39 / 41 * (C520 + 39 / 41 * (C525 + 39 / 41 * (C530 + 39 / 41 * (C535 + 39 / 41 * (C540 + 39 / 41 * (C545 + 39 / 41 * (C550 + 39 / 41 * (C555 + 39 / 41 * (C560 + 39 / 41 * (C565 + 39 / 41 * (C570 + 39 / 41 * (C575 + 39 / 41 * (C580 + 39 / 41 * (C585 + 39 / 41 * (C590 + 39 / 41 * (C595 + 39 / 41 * (C600 + 39 / 41 * (C605 + 39 / 41 * (C610 + 39 / 41 * (C615 + 39 / 41 * (C620 + 39 / 41 * (C625 + 39 / 41 * (C630 + 39 / 41 * (C635 + 39 / 41 * (C640 + 39 / 41 * (C645 + 39 / 41 * (C650 + 39 / 41 * (C655 + 39 / 41 * (C660 + 39 / 41 * (C665 + 39 / 41 * (C670 + 39 / 41 * (C675 + 39 / 41 * (C680 + 39 / 41 * (C685 + 39 / 41 * (C690)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) <> SGN(.181980276277401 * (C5 + 9 / 11 * (C10 + 9 / 11 * (C15 + 9 / 11 * (C20 + 9 / 11 * (C25 + 9 / 11 * (C30 + 9 / 11 * (C35 + 9 / 11 * (C40 + 9 / 11 * (C45 + 9 / 11 * (C50 + 9 / 11 * (C55 + 9 / 11 * (C60 + 9 / 11 * (C65 + 9 / 11 * (C70 + 9 / 11 * (C75 + 9 / 11 * (C80 + 9 / 11 * (C85 + 9 / 11 * (C90 + 9 / 11 * (C95 + 9 / 11 * (C100 + 9 / 11 * (C105 + 9 / 11 * (C110 + 9 / 11 * (C115 + 9 / 11 * (C120 + 9 / 11 * (C125 + 9 / 11 * (C130 + 9 / 11 * (C135 + 9 / 11 * (C140 + 9 / 11 * (C145 + 9 / 11 * (C150 + 9 / 11 * (C155 + 9 / 11 * (C160 + 9 / 11 * (C165 + 9 / 11 * (C170 + 9 / 11 * (C175))))))))))))))))))))))))))))))))))) - .0488272275519639 * (C5 + 39 / 41 * (C10 + 39 / 41 * (C15 + 39 / 41 * (C20 + 39 / 41 * (C25 + 39 / 41 * (C30 + 39 / 41 * (C35 + 39 / 41 * (C40 + 39 / 41 * (C45 + 39 / 41 * (C50 + 39 / 41 * (C55 + 39 / 41 * (C60 + 39 / 41 * (C65 + 39 / 41 * (C70 + 39 / 41 * (C75 + 39 / 41 * (C80 + 39 / 41 * (C85 + 39 / 41 * (C90 + 39 / 41 * (C95 + 39 / 41 * (C100 + 39 / 41 * (C105 + 39 / 41 * (C110 + 39 / 41 * (C115 + 39 / 41 * (C120 + 39 / 41 * (C125 + 39 / 41 * (C130 + 39 / 41 * (C135 + 39 / 41 * (C140 + 39 / 41 * (C145 + 39 / 41 * (C150 + 39 / 41 * (C155 + 39 / 41 * (C160 + 39 / 41 * (C165 + 39 / 41 * (C170 + 39 / 41 * (C175 + 39 / 41 * (C180 + 39 / 41 * (C185 + 39 / 41 * (C190 + 39 / 41 * (C195 + 39 / 41 * (C200 + 39 / 41 * (C205 + 39 / 41 * (C210 + 39 / 41 * (C215 + 39 / 41 * (C220 + 39 / 41 * (C225 + 39 / 41 * (C230 + 39 / 41 * (C235 + 39 / 41 * (C240 + 39 / 41 * (C245 + 39 / 41 * (C250 + 39 / 41 * (C255 + 39 / 41 * (C260 + 39 / 41 * (C265 + 39 / 41 * (C270 + 39 / 41 * (C275 + 39 / 41 * (C280 + 39 / 41 * (C285 + 39 / 41 * (C290 + 39 / 41 * (C295 + 39 / 41 * (C300 + 39 / 41 * (C305 + 39 / 41 * (C310 + 39 / 41 * (C315 + 39 / 41 * (C320 + 39 / 41 * (C325 + 39 / 41 * (C330 + 39 / 41 * (C335 + 39 / 41 * (C340 + 39 / 41 * (C345 + 39 / 41 * (C350 + 39 / 41 * (C355 + 39 / 41 * (C360 + 39 / 41 * (C365 + 39 / 41 * (C370 + 39 / 41 * (C375 + 39 / 41 * (C380 + 39 / 41 * (C385 + 39 / 41 * (C390 + 39 / 41 * (C395 + 39 / 41 * (C400 + 39 / 41 * (C405 + 39 / 41 * (C410 + 39 / 41 * (C415 + 39 / 41 * (C420 + 39 / 41 * (C425 + 39 / 41 * (C430 + 39 / 41 * (C435 + 39 / 41 * (C440 + 39 / 41 * (C445 + 39 / 41 * (C450 + 39 / 41 * (C455 + 39 / 41 * (C460 + 39 / 41 * (C465 + 39 / 41 * (C470 + 39 / 41 * (C475 + 39 / 41 * (C480 + 39 / 41 * (C485 + 39 / 41 * (C490 + 39 / 41 * (C495 + 39 / 41 * (C500 + 39 / 41 * (C505 + 39 / 41 * (C510 + 39 / 41 * (C515 + 39 / 41 * (C520 + 39 / 41 * (C525 + 39 / 41 * (C530 + 39 / 41 * (C535 + 39 / 41 * (C540 + 39 / 41 * (C545 + 39 / 41 * (C550 + 39 / 41 * (C555 + 39 / 41 * (C560 + 39 / 41 * (C565 + 39 / 41 * (C570 + 39 / 41 * (C575 + 39 / 41 * (C580 + 39 / 41 * (C585 + 39 / 41 * (C590 + 39 / 41 * (C595 + 39 / 41 * (C600 + 39 / 41 * (C605 + 39 / 41 * (C610 + 39 / 41 * (C615 + 39 / 41 * (C620 + 39 / 41 * (C625 + 39 / 41 * (C630 + 39 / 41 * (C635 + 39 / 41 * (C640 + 39 / 41 * (C645 + 39 / 41 * (C650 + 39 / 41 * (C655 + 39 / 41 * (C660 + 39 / 41 * (C665 + 39 / 41 * (C670 + 39 / 41 * (C675 + 39 / 41 * (C680 + 39 / 41 * (C685 + 39 / 41 * (C690 + 39 / 41 * (C695))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
malick
Posted : Monday, February 2, 2009 10:19:57 AM
Registered User
Joined: 3/17/2005
Posts: 187
Thanks buddy you are the best
Bruce_L
Posted : Monday, February 2, 2009 10:21:06 AM


Worden Trainer

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

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
chaoyuyeah
Posted : Wednesday, April 26, 2017 10:31:22 AM
Gold Customer Gold Customer

Joined: 12/5/2016
Posts: 2

Hi Bruce,

I was wondering if you could provide the formula of computong EMA, since I am confused about the number of items you are using to compute the EMA for different periods. For instance, what's the formula for you to compute EMA319?

Bruce_L
Posted : Wednesday, April 26, 2017 10:42:30 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You use TC2000 v17, so the formula would just be:

XAVGC319

And if you wanted a weekly time frame, you would set it to weekly.

These fomulas are for TC2000 v7. A weekly formula for EMA319 in TC2000 v7 would be way too long and slow to be practical or post in the forums.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
chaoyuyeah
Posted : Wednesday, April 26, 2017 1:10:51 PM
Gold Customer Gold Customer

Joined: 12/5/2016
Posts: 2

Thank you!

I appreaciate if you could post the general algo of XAVG. 

Bruce_L
Posted : Wednesday, April 26, 2017 1:18:16 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

To calculate the value of an EMA for the current bar, you need to know the period, the previous value of the EMA and the current value of whatever is being averaged.

New EMA = (2 * value of whatever is being averaged + (period - 1) * previous value of EMA) / (period + 1)

This brings up how to initialize the EMA to have something to use for the previous value of EMA the first time you utilize the algorithm. You really can do just about anything as the contribution of the initialization criteria approaches zero as the number of bars increases.

Two of the most common methods are to start by just assuming the value of what is being averaged is the average on the first bar or to start by calculating a simple moving average before starting to use the exponential moving average algorithm.



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