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 |

T-3 Tilson indicator Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
VikinGo75
Posted : Saturday, March 31, 2012 5:46:50 AM
Registered User
Joined: 12/27/2011
Posts: 39

Hello, i'm a new subscriber.

I need to add the T-3 indicator by Tilson (triple smoothed EMA), i see there isn't in the platinum version.

I need that for the intraday, to apply on the 3minute chart.

I would add 3 different T-3 indicators for the 3, 5, and 8 periods setting the amplifier @ 0.618.

Could you tell me the exact formula?

Thank you in advance

Vigo

Bruce_L
Posted : Monday, April 2, 2012 9:43:31 AM


Worden Trainer

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

Using an amplifier of 0.618, the resulting pseudo formula for this (it won't work in the program) would be:

4.235801032 * XAVG(XAVG(XAVGCn,n),n) - 4.853631096 * XAVG(XAVG(XAVG(XAVGCn,n),n),n) + 1.853859096 * XAVG(XAVG(XAVG(XAVG(XAVGCn,n),n),n),n) - .236029032 * XAVG(XAVG(XAVG(XAVG(XAVG(XAVGCn,n),n),n),n),n)

We can use the techniques in Cascades of Moving Averages to expand out the moving averages manually. An Indicator Formula for the 3-Period version would be:

.529822760510955 * (C + .5 * (3 * C1 + .5 * (6 * C2 + .5 * (10 * C3 + .5 * (15 * C4 + .5 * (21 * C5 + .5 * (28 * C6 + .5 * (36 * C7 + .5 * (45 * C8 + .5 * (55 * C9 + .5 * (66 * C10 + .5 * (78 * C11 + .5 * (91 * C12 + .5 * (105 * C13 + .5 * (120 * C14 + .5 * (136 * C15)))))))))))))))) - .303578054397526 * (C + .5 * (4 * C1 + .5 * (10 * C2 + .5 * (20 * C3 + .5 * (35 * C4 + .5 * (56 * C5 + .5 * (84 * C6 + .5 * (120 * C7 + .5 * (165 * C8 + .5 * (220 * C9 + .5 * (286 * C10 + .5 * (364 * C11 + .5 * (455 * C12 + .5 * (560 * C13 + .5 * (680 * C14 + .5 * (816 * C15 + .5 * (969 * C16 + .5 * (1140 * C17)))))))))))))))))) + .0579778521589612 * (C + .5 * (5 * C1 + .5 * (15 * C2 + .5 * (35 * C3 + .5 * (70 * C4 + .5 * (126 * C5 + .5 * (210 * C6 + .5 * (330 * C7 + .5 * (495 * C8 + .5 * (715 * C9 + .5 * (1001 * C10 + .5 * (1365 * C11 + .5 * (1820 * C12 + .5 * (2380 * C13 + .5 * (3060 * C14 + .5 * (3876 * C15 + .5 * (4845 * C16 + .5 * (5985 * C17 + .5 * (7315 * C18 + .5 * (8855 * C19)))))))))))))))))))) - .00369074700296233 * (C + .5 * (6 * C1 + .5 * (21 * C2 + .5 * (56 * C3 + .5 * (126 * C4 + .5 * (252 * C5 + .5 * (462 * C6 + .5 * (792 * C7 + .5 * (1287 * C8 + .5 * (2002 * C9 + .5 * (3003 * C10 + .5 * (4368 * C11 + .5 * (6188 * C12 + .5 * (8568 * C13 + .5 * (11628 * C14 + .5 * (15504 * C15 + .5 * (20349 * C16 + .5 * (26334 * C17 + .5 * (33649 * C18 + .5 * (42504 * C19 + .5 * (53130 * C20 + .5 * (65780 * C21))))))))))))))))))))))

An Indicator Formula for the 5-Period version would be:

.157025236923261 * (C + 2 / 3 * (3 * C1 + 2 / 3 * (6 * C2 + 2 / 3 * (10 * C3 + 2 / 3 * (15 * C4 + 2 / 3 * (21 * C5 + 2 / 3 * (28 * C6 + 2 / 3 * (36 * C7 + 2 / 3 * (45 * C8 + 2 / 3 * (55 * C9 + 2 / 3 * (66 * C10 + 2 / 3 * (78 * C11 + 2 / 3 * (91 * C12 + 2 / 3 * (105 * C13 + 2 / 3 * (120 * C14 + 2 / 3 * (136 * C15 + 2 / 3 * (153 * C16 + 2 / 3 * (171 * C17 + 2 / 3 * (190 * C18 + 2 / 3 * (210 * C19 + 2 / 3 * (231 * C20 + 2 / 3 * (253 * C21 + 2 / 3 * (276 * C22 + 2 / 3 * (300 * C23 + 2 / 3 * (325 * C24 + 2 / 3 * (351 * C25 + 2 / 3 * (378 * C26))))))))))))))))))))))))))) - .0599773644076066 * (C + 2 / 3 * (4 * C1 + 2 / 3 * (10 * C2 + 2 / 3 * (20 * C3 + 2 / 3 * (35 * C4 + 2 / 3 * (56 * C5 + 2 / 3 * (84 * C6 + 2 / 3 * (120 * C7 + 2 / 3 * (165 * C8 + 2 / 3 * (220 * C9 + 2 / 3 * (286 * C10 + 2 / 3 * (364 * C11 + 2 / 3 * (455 * C12 + 2 / 3 * (560 * C13 + 2 / 3 * (680 * C14 + 2 / 3 * (816 * C15 + 2 / 3 * (969 * C16 + 2 / 3 * (1140 * C17 + 2 / 3 * (1330 * C18 + 2 / 3 * (1540 * C19 + 2 / 3 * (1771 * C20 + 2 / 3 * (2024 * C21 + 2 / 3 * (2300 * C22 + 2 / 3 * (2600 * C23 + 2 / 3 * (2925 * C24 + 2 / 3 * (3276 * C25 + 2 / 3 * (3654 * C26 + 2 / 3 * (4060 * C27 + 2 / 3 * (4495 * C28 + 2 / 3 * (4960 * C29 + 2 / 3 * (5456 * C30))))))))))))))))))))))))))))))) + .00763577116671079 * (C + 2 / 3 * (5 * C1 + 2 / 3 * (15 * C2 + 2 / 3 * (35 * C3 + 2 / 3 * (70 * C4 + 2 / 3 * (126 * C5 + 2 / 3 * (210 * C6 + 2 / 3 * (330 * C7 + 2 / 3 * (495 * C8 + 2 / 3 * (715 * C9 + 2 / 3 * (1001 * C10 + 2 / 3 * (1365 * C11 + 2 / 3 * (1820 * C12 + 2 / 3 * (2380 * C13 + 2 / 3 * (3060 * C14 + 2 / 3 * (3876 * C15 + 2 / 3 * (4845 * C16 + 2 / 3 * (5985 * C17 + 2 / 3 * (7315 * C18 + 2 / 3 * (8855 * C19 + 2 / 3 * (10626 * C20 + 2 / 3 * (12650 * C21 + 2 / 3 * (14950 * C22 + 2 / 3 * (17550 * C23 + 2 / 3 * (20475 * C24 + 2 / 3 * (23751 * C25 + 2 / 3 * (27405 * C26 + 2 / 3 * (31465 * C27 + 2 / 3 * (35960 * C28 + 2 / 3 * (40920 * C29 + 2 / 3 * (46376 * C30 + 2 / 3 * (52360 * C31 + 2 / 3 * (58905 * C32 + 2 / 3 * (66045 * C33 + 2 / 3 * (73815 * C34))))))))))))))))))))))))))))))))))) - .000324027609115692 * (C + 2 / 3 * (6 * C1 + 2 / 3 * (21 * C2 + 2 / 3 * (56 * C3 + 2 / 3 * (126 * C4 + 2 / 3 * (252 * C5 + 2 / 3 * (462 * C6 + 2 / 3 * (792 * C7 + 2 / 3 * (1287 * C8 + 2 / 3 * (2002 * C9 + 2 / 3 * (3003 * C10 + 2 / 3 * (4368 * C11 + 2 / 3 * (6188 * C12 + 2 / 3 * (8568 * C13 + 2 / 3 * (11628 * C14 + 2 / 3 * (15504 * C15 + 2 / 3 * (20349 * C16 + 2 / 3 * (26334 * C17 + 2 / 3 * (33649 * C18 + 2 / 3 * (42504 * C19 + 2 / 3 * (53130 * C20 + 2 / 3 * (65780 * C21 + 2 / 3 * (80730 * C22 + 2 / 3 * (98280 * C23 + 2 / 3 * (118755 * C24 + 2 / 3 * (142506 * C25 + 2 / 3 * (169911 * C26 + 2 / 3 * (201376 * C27 + 2 / 3 * (237336 * C28 + 2 / 3 * (278256 * C29 + 2 / 3 * (324632 * C30 + 2 / 3 * (376992 * C31 + 2 / 3 * (435897 * C32 + 2 / 3 * (501942 * C33 + 2 / 3 * (575757 * C34 + 2 / 3 * (658008 * C35 + 2 / 3 * (749398 * C36 + 2 / 3 * (850668 * C37 + 2 / 3 * (962598 * C38)))))))))))))))))))))))))))))))))))))))

An Indicator Formula for the 8-Period version would be:

.0465271736969798 * (C + 7 / 9 * (3 * C1 + 7 / 9 * (6 * C2 + 7 / 9 * (10 * C3 + 7 / 9 * (15 * C4 + 7 / 9 * (21 * C5 + 7 / 9 * (28 * C6 + 7 / 9 * (36 * C7 + 7 / 9 * (45 * C8 + 7 / 9 * (55 * C9 + 7 / 9 * (66 * C10 + 7 / 9 * (78 * C11 + 7 / 9 * (91 * C12 + 7 / 9 * (105 * C13 + 7 / 9 * (120 * C14 + 7 / 9 * (136 * C15 + 7 / 9 * (153 * C16 + 7 / 9 * (171 * C17 + 7 / 9 * (190 * C18 + 7 / 9 * (210 * C19 + 7 / 9 * (231 * C20 + 7 / 9 * (253 * C21 + 7 / 9 * (276 * C22 + 7 / 9 * (300 * C23 + 7 / 9 * (325 * C24 + 7 / 9 * (351 * C25 + 7 / 9 * (378 * C26 + 7 / 9 * (406 * C27 + 7 / 9 * (435 * C28 + 7 / 9 * (465 * C29 + 7 / 9 * (496 * C30 + 7 / 9 * (528 * C31 + 7 / 9 * (561 * C32 + 7 / 9 * (595 * C33 + 7 / 9 * (630 * C34 + 7 / 9 * (666 * C35 + 7 / 9 * (703 * C36 + 7 / 9 * (741 * C37 + 7 / 9 * (780 * C38 + 7 / 9 * (820 * C39 + 7 / 9 * (861 * C40 + 7 / 9 * (903 * C41 + 7 / 9 * (946 * C42 + 7 / 9 * (990 * C43)))))))))))))))))))))))))))))))))))))))))))) - .011847088584119 * (C + 7 / 9 * (4 * C1 + 7 / 9 * (10 * C2 + 7 / 9 * (20 * C3 + 7 / 9 * (35 * C4 + 7 / 9 * (56 * C5 + 7 / 9 * (84 * C6 + 7 / 9 * (120 * C7 + 7 / 9 * (165 * C8 + 7 / 9 * (220 * C9 + 7 / 9 * (286 * C10 + 7 / 9 * (364 * C11 + 7 / 9 * (455 * C12 + 7 / 9 * (560 * C13 + 7 / 9 * (680 * C14 + 7 / 9 * (816 * C15 + 7 / 9 * (969 * C16 + 7 / 9 * (1140 * C17 + 7 / 9 * (1330 * C18 + 7 / 9 * (1540 * C19 + 7 / 9 * (1771 * C20 + 7 / 9 * (2024 * C21 + 7 / 9 * (2300 * C22 + 7 / 9 * (2600 * C23 + 7 / 9 * (2925 * C24 + 7 / 9 * (3276 * C25 + 7 / 9 * (3654 * C26 + 7 / 9 * (4060 * C27 + 7 / 9 * (4495 * C28 + 7 / 9 * (4960 * C29 + 7 / 9 * (5456 * C30 + 7 / 9 * (5984 * C31 + 7 / 9 * (6545 * C32 + 7 / 9 * (7140 * C33 + 7 / 9 * (7770 * C34 + 7 / 9 * (8436 * C35 + 7 / 9 * (9139 * C36 + 7 / 9 * (9880 * C37 + 7 / 9 * (10660 * C38 + 7 / 9 * (11480 * C39 + 7 / 9 * (12341 * C40 + 7 / 9 * (13244 * C41 + 7 / 9 * (14190 * C42 + 7 / 9 * (15180 * C43 + 7 / 9 * (16215 * C44 + 7 / 9 * (17296 * C45 + 7 / 9 * (18424 * C46 + 7 / 9 * (19600 * C47 + 7 / 9 * (20825 * C48 + 7 / 9 * (22100 * C49 + 7 / 9 * (23426 * C50))))))))))))))))))))))))))))))))))))))))))))))))))) + .00100564021777412 * (C + 7 / 9 * (5 * C1 + 7 / 9 * (15 * C2 + 7 / 9 * (35 * C3 + 7 / 9 * (70 * C4 + 7 / 9 * (126 * C5 + 7 / 9 * (210 * C6 + 7 / 9 * (330 * C7 + 7 / 9 * (495 * C8 + 7 / 9 * (715 * C9 + 7 / 9 * (1001 * C10 + 7 / 9 * (1365 * C11 + 7 / 9 * (1820 * C12 + 7 / 9 * (2380 * C13 + 7 / 9 * (3060 * C14 + 7 / 9 * (3876 * C15 + 7 / 9 * (4845 * C16 + 7 / 9 * (5985 * C17 + 7 / 9 * (7315 * C18 + 7 / 9 * (8855 * C19 + 7 / 9 * (10626 * C20 + 7 / 9 * (12650 * C21 + 7 / 9 * (14950 * C22 + 7 / 9 * (17550 * C23 + 7 / 9 * (20475 * C24 + 7 / 9 * (23751 * C25 + 7 / 9 * (27405 * C26 + 7 / 9 * (31465 * C27 + 7 / 9 * (35960 * C28 + 7 / 9 * (40920 * C29 + 7 / 9 * (46376 * C30 + 7 / 9 * (52360 * C31 + 7 / 9 * (58905 * C32 + 7 / 9 * (66045 * C33 + 7 / 9 * (73815 * C34 + 7 / 9 * (82251 * C35 + 7 / 9 * (91390 * C36 + 7 / 9 * (101270 * C37 + 7 / 9 * (111930 * C38 + 7 / 9 * (123410 * C39 + 7 / 9 * (135751 * C40 + 7 / 9 * (148995 * C41 + 7 / 9 * (163185 * C42 + 7 / 9 * (178365 * C43 + 7 / 9 * (194580 * C44 + 7 / 9 * (211876 * C45 + 7 / 9 * (230300 * C46 + 7 / 9 * (249900 * C47 + 7 / 9 * (270725 * C48 + 7 / 9 * (292825 * C49 + 7 / 9 * (316251 * C50 + 7 / 9 * (341055 * C51 + 7 / 9 * (367290 * C52 + 7 / 9 * (395010 * C53 + 7 / 9 * (424270 * C54 + 7 / 9 * (455126 * C55 + 7 / 9 * (487635 * C56))))))))))))))))))))))))))))))))))))))))))))))))))))))))) - .0000284482892193895 * (C + 7 / 9 * (6 * C1 + 7 / 9 * (21 * C2 + 7 / 9 * (56 * C3 + 7 / 9 * (126 * C4 + 7 / 9 * (252 * C5 + 7 / 9 * (462 * C6 + 7 / 9 * (792 * C7 + 7 / 9 * (1287 * C8 + 7 / 9 * (2002 * C9 + 7 / 9 * (3003 * C10 + 7 / 9 * (4368 * C11 + 7 / 9 * (6188 * C12 + 7 / 9 * (8568 * C13 + 7 / 9 * (11628 * C14 + 7 / 9 * (15504 * C15 + 7 / 9 * (20349 * C16 + 7 / 9 * (26334 * C17 + 7 / 9 * (33649 * C18 + 7 / 9 * (42504 * C19 + 7 / 9 * (53130 * C20 + 7 / 9 * (65780 * C21 + 7 / 9 * (80730 * C22 + 7 / 9 * (98280 * C23 + 7 / 9 * (118755 * C24 + 7 / 9 * (142506 * C25 + 7 / 9 * (169911 * C26 + 7 / 9 * (201376 * C27 + 7 / 9 * (237336 * C28 + 7 / 9 * (278256 * C29 + 7 / 9 * (324632 * C30 + 7 / 9 * (376992 * C31 + 7 / 9 * (435897 * C32 + 7 / 9 * (501942 * C33 + 7 / 9 * (575757 * C34 + 7 / 9 * (658008 * C35 + 7 / 9 * (749398 * C36 + 7 / 9 * (850668 * C37 + 7 / 9 * (962598 * C38 + 7 / 9 * (1086008 * C39 + 7 / 9 * (1221759 * C40 + 7 / 9 * (1370754 * C41 + 7 / 9 * (1533939 * C42 + 7 / 9 * (1712304 * C43 + 7 / 9 * (1906884 * C44 + 7 / 9 * (2118760 * C45 + 7 / 9 * (2349060 * C46 + 7 / 9 * (2598960 * C47 + 7 / 9 * (2869685 * C48 + 7 / 9 * (3162510 * C49 + 7 / 9 * (3478761 * C50 + 7 / 9 * (3819816 * C51 + 7 / 9 * (4187106 * C52 + 7 / 9 * (4582116 * C53 + 7 / 9 * (5006386 * C54 + 7 / 9 * (5461512 * C55 + 7 / 9 * (5949147 * C56 + 7 / 9 * (6471002 * C57 + 7 / 9 * (7028847 * C58 + 7 / 9 * (7624512 * C59 + 7 / 9 * (8259888 * C60 + 7 / 9 * (8936928 * C61 + 7 / 9 * (9657648 * C62 + 7 / 9 * (10424128 * C63))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

To plot it in the same pane as Price History, use the formula as the Indicator Line Formula in a Custom PCF Channel Indicator. Then set the Width Multiplier to 0.00 and/or set the Channel Width Formula to something which always returns zero such as C - C.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
mfnl
Posted : Tuesday, April 3, 2012 8:29:17 AM
Registered User
Joined: 7/11/2011
Posts: 8

May be a stupid question. Sorry

How can I put this indicator in the same window with price? Not to separate window?

Bruce_L
Posted : Tuesday, April 3, 2012 8:34:10 AM


Worden Trainer

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

You can add a indicator to an existing pane in TC2000 version 12 by clicking on an indicator which is already in the pane and select Plot New Indicator here....

That said, I would not recommend plotting these as Custom PCF Indicators as there is no way to currently scale one with Price.

I would instead suggest that if you are going to plot these indicators in the same pane as price that you add a Custom PCF Channel Indicator instead. Use the Indicator Formula as the Indicator Line Formula and set the Width Multiplier to 0.00.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
mfnl
Posted : Tuesday, April 3, 2012 8:48:55 AM
Registered User
Joined: 7/11/2011
Posts: 8

Thank you for your help

VikinGo75
Posted : Thursday, April 5, 2012 3:23:07 PM
Registered User
Joined: 12/27/2011
Posts: 39

Thank you, Bruce. I'm trying to copy and paste one of those but i get a "formula error" message (argument missing near *). Why?

 

 

Bruce_L
Posted : Thursday, April 5, 2012 3:32:05 PM


Worden Trainer

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

I cannot reproduce this in my copy of TC2000. They copy (use right-click Copy or ctrl-c) and paste (using ctrl-v) just fine and calculate without any error messages.

My best guess as to why you are receiving the error message would be that you are somehow not copying and pasting the entire formula or are copying and pasting more than just the formula.

This assumes you aren't attempting to copy the pseudo formula which is labeled to indicate it will not work with in the program (as the fact that it will not work is quite accurate).



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
VikinGo75
Posted : Thursday, April 5, 2012 3:42:30 PM
Registered User
Joined: 12/27/2011
Posts: 39

For example i'm trying to copy and paste this:

 

.529822760510955 * (C + .5 * (3 * C1 + .5 * (6 * C2 + .5 * (10 * C3 + .5 * (15 * C4 + .5 * (21 * C5 + .5 * (28 * C6 + .5 * (36 * C7 + .5 * (45 * C8 + .5 * (55 * C9 + .5 * (66 * C10 + .5 * (78 * C11 + .5 * (91 * C12 + .5 * (105 * C13 + .5 * (120 * C14 + .5 * (136 * C15)))))))))))))))) - .303578054397526 * (C + .5 * (4 * C1 + .5 * (10 * C2 + .5 * (20 * C3 + .5 * (35 * C4 + .5 * (56 * C5 + .5 * (84 * C6 + .5 * (120 * C7 + .5 * (165 * C8 + .5 * (220 * C9 + .5 * (286 * C10 + .5 * (364 * C11 + .5 * (455 * C12 + .5 * (560 * C13 + .5 * (680 * C14 + .5 * (816 * C15 + .5 * (969 * C16 + .5 * (1140 * C17)))))))))))))))))) + .0579778521589612 * (C + .5 * (5 * C1 + .5 * (15 * C2 + .5 * (35 * C3 + .5 * (70 * C4 + .5 * (126 * C5 + .5 * (210 * C6 + .5 * (330 * C7 + .5 * (495 * C8 + .5 * (715 * C9 + .5 * (1001 * C10 + .5 * (1365 * C11 + .5 * (1820 * C12 + .5 * (2380 * C13 + .5 * (3060 * C14 + .5 * (3876 * C15 + .5 * (4845 * C16 + .5 * (5985 * C17 + .5 * (7315 * C18 + .5 * (8855 * C19)))))))))))))))))))) - .00369074700296233 * (C + .5 * (6 * C1 + .5 * (21 * C2 + .5 * (56 * C3 + .5 * (126 * C4 + .5 * (252 * C5 + .5 * (462 * C6 + .5 * (792 * C7 + .5 * (1287 * C8 + .5 * (2002 * C9 + .5 * (3003 * C10 + .5 * (4368 * C11 + .5 * (6188 * C12 + .5 * (8568 * C13 + .5 * (11628 * C14 + .5 * (15504 * C15 + .5 * (20349 * C16 + .5 * (26334 * C17 + .5 * (33649 * C18 + .5 * (42504 * C19 + .5 * (53130 * C20 + .5 * (65780 * C21))))))))))))))))))))))

but no way...

 

Bruce_L
Posted : Thursday, April 5, 2012 3:48:52 PM


Worden Trainer

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

It doesn't matter if I'm trying to use that formula as an Indicator Formula or as the Indicator Line Formula in a Custom PCF Channel Indicator. It copies and pastes just fine into TC2000 version 12.1 for me.

Please contact technical support.

All e-mail communication sent to support@worden.com during business hours (Monday through Friday 9AM-11PM and Saturday and Sunday 9AM-3PM ET) should be answered within 20 minutes of arrival.

For an even quicker response to tech support questions, we recommend calling our voice line at (919) 408-0542 (there is no phone support on Sundays, some Market Holidays or after 9PM ET on weekdays).

You can also contact us using Live Chat Support during business hours.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
haschade
Posted : Tuesday, April 10, 2012 8:45:48 AM
Registered User
Joined: 8/21/2007
Posts: 181

Bruce,

Is it possible to create the Tilson T-3 indicator in StockFinder?  Ideally with the ability to set the period directly (rather than hard coded)?

TIA

Bruce_L
Posted : Tuesday, April 10, 2012 10:11:06 AM


Worden Trainer

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

The following RealCode Indicator is a parent indicator which is based on closing prices. It is not a child indicator which could be applied to other indicators like a moving average:

'|******************************************************************
'|*** StockFinder RealCode Indicator - Version 5.0 www.worden.com 
'|*** Copy and paste this header and code into StockFinder *********
'|*** Indicator:T-3 Indicator
'|******************************************************************
'# Cumulative
'# Period = UserInput.Single = 3
'# VolumeFactor = UserInput.Single = 0.618
Static Factors(3) As Double
Static EMA(5) As Double
Static termRatio As Double
Static sumWeight As Double
Static Weight As Double
If isFirstBar Then
	Factors(0) = (1 + VolumeFactor) ^ 3
	Factors(1) = -3 * ((1 + VolumeFactor) ^ 2) * VolumeFactor
	Factors(2) = 3 * (1 + VolumeFactor) * (VolumeFactor ^ 2)
	Factors(3) = -VolumeFactor ^ 3
	For i As Integer = 0 To 5
		EMA(i) = Price.Last
	Next
	termRatio = (Period - 1) / (Period + 1)
	sumWeight = termRatio + 1
Else
	Weight = 1 / sumWeight
	EMA(0) = EMA(0) * (1 - Weight) + Weight * Price.Last
	EMA(1) = EMA(1) * (1 - Weight) + Weight * EMA(0)
	EMA(2) = EMA(2) * (1 - Weight) + Weight * EMA(1)
	EMA(3) = EMA(3) * (1 - Weight) + Weight * EMA(2)
	EMA(4) = EMA(4) * (1 - Weight) + Weight * EMA(3)
	EMA(5) = EMA(5) * (1 - Weight) + Weight * EMA(4)
	sumWeight = sumWeight * termRatio + 1
End If
Plot = Factors(0) * EMA(2) + _
	Factors(1) * EMA(3) + _
	Factors(2) * EMA(4) + _
	Factors(3) * EMA(5)


-Bruce
Personal Criteria Formulas
TC2000 Support Articles
haschade
Posted : Wednesday, April 11, 2012 5:09:52 AM
Registered User
Joined: 8/21/2007
Posts: 181

Many thanks Bruce.

Is it possible to be made into a child indicator?

Bruce_L
Posted : Wednesday, April 11, 2012 7:54:59 AM


Worden Trainer

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

No, it is not.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
haschade
Posted : Wednesday, April 11, 2012 4:06:28 PM
Registered User
Joined: 8/21/2007
Posts: 181

Thanks!  Cheers

VikinGo75
Posted : Thursday, April 12, 2012 12:41:10 PM
Registered User
Joined: 12/27/2011
Posts: 39

Now it works, Bruce. Thank you.

However, I would like to see the T-3 as a moving average (like the ema13 or sma20, for example), not an indicator (my first post was not correct at all).

Could you post the formula for that?

TIA, Bruce.

Bruce_L
Posted : Thursday, April 12, 2012 12:45:11 PM


Worden Trainer

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

It cannot be created as a child indicator in TC2000 any more than it can be created as a child indicator in StockFinder.

To plot it in the same pane as Price History, use the formula as the Indicator Line Formula in a Custom PCF Channel Indicator. Then set the Width Multiplier to 0.00 and/or set the Channel Width Formula to something which always returns zero such as C - C.



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