Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
QUOTE (winthorpe) (1) for HMA8 "crossing above" HMA13 on the daily time frame
(208 * C + 250 * C1 + 157 * C2 + 64 * C3 - 29 * C4 - 50 * C5 - 35 * C6 - 20 * C7 - 5 * C8) / 540 > (351 * C + 516 * C1 + 518 * C2 + 380 * C3 + 242 * C4 + 104 * C5 - 34 * C6 - 94 * C7 - 102 * C8 - 84 * C9 - 66 * C10 - 48 * C11 - 30 * C12 - 12 * C13 - 3 * C14) / 1638 AND (208 * C1 + 250 * C2 + 157 * C3 + 64 * C4 - 29 * C5 - 50 * C6 - 35 * C7 - 20 * C8 - 5 * C9) / 540 <= (351 * C1 + 516 * C2 + 518 * C3 + 380 * C4 + 242 * C5 + 104 * C6 - 34 * C7 - 94 * C8 - 102 * C9 - 84 * C10 - 66 * C11 - 48 * C12 - 30 * C13 - 12 * C14 - 3 * C15) / 1638
QUOTE (winthorpe) (2) for HMA8 "crossing below"HMA13 on the daily time frame
(208 * C + 250 * C1 + 157 * C2 + 64 * C3 - 29 * C4 - 50 * C5 - 35 * C6 - 20 * C7 - 5 * C8) / 540 < (351 * C + 516 * C1 + 518 * C2 + 380 * C3 + 242 * C4 + 104 * C5 - 34 * C6 - 94 * C7 - 102 * C8 - 84 * C9 - 66 * C10 - 48 * C11 - 30 * C12 - 12 * C13 - 3 * C14) / 1638 AND (208 * C1 + 250 * C2 + 157 * C3 + 64 * C4 - 29 * C5 - 50 * C6 - 35 * C7 - 20 * C8 - 5 * C9) / 540 >= (351 * C1 + 516 * C2 + 518 * C3 + 380 * C4 + 242 * C5 + 104 * C6 - 34 * C7 - 94 * C8 - 102 * C9 - 84 * C10 - 66 * C11 - 48 * C12 - 30 * C13 - 12 * C14 - 3 * C15) / 1638
QUOTE (winthorpe) (3) an example of conditonal PCF of HMA3 "being above" HMA8 on daily time frame
(9 * C - 2 * C1 - C2) / 6 > (208 * C + 250 * C1 + 157 * C2 + 64 * C3 - 29 * C4 - 50 * C5 - 35 * C6 - 20 * C7 - 5 * C8) / 540
The PCF Formula Descriptions topic lists all of the syntax which is valid in the Personal Criteria Formula Language and the Handy PCF example formulas to help you learn the syntax of PCFs! topic has basic examples of this syntax in use.
The Personal Criteria Formulas has links to topics I personally use relatively frequently.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Gold Customer
Joined: 7/25/2006 Posts: 31
|
Bruce,
Could you post the formula for a 20 Week Hull Moving Average like the 20 Day HMA you posted on 05/10/10? Or would just changing the time frame in the PCF editor to weekly work?
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
If you are using TC2000 version 12.4, you can just change the Time Frame setting of the formula.
Note that this would not retroactively change the time frames in places where you have already used the formula. You would need to remove and re-add things like WatchList Columns or EasyScan Conditions in order for any changes to the formula to be reflected.
Although, if the only thing being changed is the time frame, you can set the time frame of WatchList Columns and EasyScan Conditions independently from the formula on which they are based.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 1/8/2014 Posts: 35
|
Bruce,
Could I get a 60-period Hull? And, thanks much for all your work providng formulas.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following Indicator Formula for a 60-period Hull Moving Average.
(38220 * C + 69489 * C1 + 94020 * C2 + 112026 * C3 + 123720 * C4 + 129315 * C5 + 129024 * C6 + 123060 * C7 + 117096 * C8 + 111132 * C9 + 105168 * C10 + 99204 * C11 + 93240 * C12 + 87276 * C13 + 81312 * C14 + 75348 * C15 + 69384 * C16 + 63420 * C17 + 57456 * C18 + 51492 * C19 + 45528 * C20 + 39564 * C21 + 33600 * C22 + 27636 * C23 + 21672 * C24 + 15708 * C25 + 9744 * C26 + 3780 * C27 - 2184 * C28 - 8148 * C29 - 14112 * C30 - 18368 * C31 - 21160 * C32 - 22732 * C33 - 23328 * C34 - 23192 * C35 - 22568 * C36 - 21700 * C37 - 20832 * C38 - 19964 * C39 - 19096 * C40 - 18228 * C41 - 17360 * C42 - 16492 * C43 - 15624 * C44 - 14756 * C45 - 13888 * C46 - 13020 * C47 - 12152 * C48 - 11284 * C49 - 10416 * C50 - 9548 * C51 - 8680 * C52 - 7812 * C53 - 6944 * C54 - 6076 * C55 - 5208 * C56 - 4340 * C57 - 3472 * C58 - 2604 * C59 - 1736 * C60 - 1085 * C61 - 620 * C62 - 310 * C63 - 124 * C64 - 31 * C65) / 1588440
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 10/27/2014 Posts: 1
|
Hello Bruce, thank you for your time on this! May I kindly ask if I can have the 2-period HMA, 10-period HMA and 15-period HMA formulas please?
Also regarding the ROC indicator to replace the color change in normal HMA indicators, does it mean that if the histogram crosses the 0 line from positive to negative (and vice versa), it signifies a change in color?
|
|
Guest-1 |