Registered User Joined: 1/29/2011 Posts: 2
|
I found this description of Carter's Trend Indicator using Heiken=Ashin:
"Basically using Hiken Ashi bars if the 5th bar of the last 5 bars closes above the 50% line of the previous 5 bar average, it stays the same color. If the 5th bar closes below the the 50% average it changes color."
If this is enough information and it is possible in V12.2 I would appreciate your writing a Custom %True Indicator that it points true when the "5th bar of the last 5 bars closes above the 50% line of the previous 5 bar average" condition exists.
|
|
Registered User Joined: 1/29/2011 Posts: 2
|
I worked with it a little. Is this the correct PCF condition: c >=.5 * ((O1 + H1 + L1 + C1 + O2 + H2 + L2 + C2 +O1 + H1 + L1 + C1 +O4 + H4 + L4 + C4) /16)
It isn't giving the %True representation that I expected but that is another story. I'll keep working on it.
Thanks,
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I'm not quite sure what the "50% line of the previous 5 bar average" means. A Condition Formula which returns true when the HaClose is above the 50% line of the entire range of the five previous HaCandles could be written as:
(O + H + L + C) / 4 > ((4 * MAXH5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 + ABS(4 * MAXH5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) + ABS(4 * MAXH5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 + ABS(4 * MAXH5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) + XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) + 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6)) + ABS(4 * MAXH5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 + ABS(4 * MAXH5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) + ABS(4 * MAXH5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 + ABS(4 * MAXH5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) - XAVGO3.4 - XAVGH3.4 - XAVGL3.4 - XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6)))) + (4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) - ABS(4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) + XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) + 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6)) - ABS(4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) - ABS(4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) - XAVGO3.4 - XAVGH3.4 - XAVGL3.4 - XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6))))) / 64
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 7/7/2008 Posts: 115
|
Hi Bruce,
1.
Can you please help in creating above formula but this time, the Condition Formula should returns true when the HaClose is below or equal the 50% line of the entire range of the five previous HaCandles.
In short, I am looking for consolidation period before the range expansion occurs.
2.
Same formula aboave but in reverse direction - Condition Formula which returns true when the HaClose is below the 50% line of the entire range of the five previous HaCandles
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I think I'm missing something because your descriptions seemed almost identical to me even though the second says it is the reverse direction (both are pretty much the reverso feth formula in my Wednesday, August 29, 2012 10:32:01 AM ET post).
The first formula would be as follows.
(O + H + L + C) / 4 <= ((4 * MAXH5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 + ABS(4 * MAXH5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) + ABS(4 * MAXH5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 + ABS(4 * MAXH5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) + XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) + 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6)) + ABS(4 * MAXH5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 + ABS(4 * MAXH5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) + ABS(4 * MAXH5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 + ABS(4 * MAXH5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) - XAVGO3.4 - XAVGH3.4 - XAVGL3.4 - XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6)))) + (4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) - ABS(4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) + XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) + 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6)) - ABS(4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) - ABS(4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) - XAVGO3.4 - XAVGH3.4 - XAVGL3.4 - XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6))))) / 64
And the second formula would be as follows (it just gets rid of the = sign).
(O + H + L + C) / 4 < ((4 * MAXH5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 + ABS(4 * MAXH5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) + ABS(4 * MAXH5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 + ABS(4 * MAXH5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) + XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) + 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6)) + ABS(4 * MAXH5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 + ABS(4 * MAXH5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) + ABS(4 * MAXH5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 + ABS(4 * MAXH5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) - XAVGO3.4 - XAVGH3.4 - XAVGL3.4 - XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6)))) + (4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) - ABS(4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) + XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) + 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6)) - ABS(4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) - ABS(4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) - XAVGO3.4 - XAVGH3.4 - XAVGL3.4 - XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6))))) / 64
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 7/7/2008 Posts: 115
|
Thanks for prompt response.
2. Appears to be correct.
1. May be I was not able to articulate properly what I am looking for....
I am looking for consolidationg period meaning a Condition Formula which returns true when HaClose remains within 10% of 50% line of the entire range of the five previous HaCandles
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Maybe something like the following?
(O1 + H1 + L1 + C1 + O2 + H2 + L2 + C2 + ABS(O1 + H1 + L1 + C1 - O2 - H2 - L2 - C2) + 2 * (O3 + H3 + L3 + C3) + ABS(O1 + H1 + L1 + C1 + O2 + H2 + L2 + C2 + ABS(O1 + H1 + L1 + C1 - O2 - H2 - L2 - C2) - 2 * (O3 + H3 + L3 + C3)) + 2 * (O4 + H4 + L4 + C4 + O5 + H5 + L5 + C5 + ABS(O4 + H4 + L4 + C4 - O5 - H5 - L5 - C5)) + ABS(O1 + H1 + L1 + C1 + O2 + H2 + L2 + C2 + ABS(O1 + H1 + L1 + C1 - O2 - H2 - L2 - C2) + 2 * (O3 + H3 + L3 + C3) + ABS(O1 + H1 + L1 + C1 + O2 + H2 + L2 + C2 + ABS(O1 + H1 + L1 + C1 - O2 - H2 - L2 - C2) - 2 * (O3 + H3 + L3 + C3)) - 2 * (O4 + H4 + L4 + C4 + O5 + H5 + L5 + C5 + ABS(O4 + H4 + L4 + C4 - O5 - H5 - L5 - C5)))) / 32 - (4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) - ABS(4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) + XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) + 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6)) - ABS(4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) - ABS(4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) - XAVGO3.4 - XAVGH3.4 - XAVGL3.4 - XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6)))) / 32 <= .6 * ((4 * MAXH5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 + ABS(4 * MAXH5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) + ABS(4 * MAXH5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 + ABS(4 * MAXH5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) + XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) + 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6)) + ABS(4 * MAXH5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 + ABS(4 * MAXH5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) + ABS(4 * MAXH5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 + ABS(4 * MAXH5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) - XAVGO3.4 - XAVGH3.4 - XAVGL3.4 - XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6)))) - (4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) - ABS(4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) + XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) + 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6)) - ABS(4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) - ABS(4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) - XAVGO3.4 - XAVGH3.4 - XAVGL3.4 - XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6))))) / 32 AND (O1 + H1 + L1 + C1 + O2 + H2 + L2 + C2 - ABS(O1 + H1 + L1 + C1 - O2 - H2 - L2 - C2) + 2 * (O3 + H3 + L3 + C3) - ABS(O1 + H1 + L1 + C1 + O2 + H2 + L2 + C2 - ABS(O1 + H1 + L1 + C1 - O2 - H2 - L2 - C2) - 2 * (O3 + H3 + L3 + C3)) + 2 * (O4 + H4 + L4 + C4 + O5 + H5 + L5 + C5 - ABS(O4 + H4 + L4 + C4 - O5 - H5 - L5 - C5)) - ABS(O1 + H1 + L1 + C1 + O2 + H2 + L2 + C2 - ABS(O1 + H1 + L1 + C1 - O2 - H2 - L2 - C2) + 2 * (O3 + H3 + L3 + C3) - ABS(O1 + H1 + L1 + C1 + O2 + H2 + L2 + C2 - ABS(O1 + H1 + L1 + C1 - O2 - H2 - L2 - C2) - 2 * (O3 + H3 + L3 + C3)) - 2 * (O4 + H4 + L4 + C4 + O5 + H5 + L5 + C5 - ABS(O4 + H4 + L4 + C4 - O5 - H5 - L5 - C5)))) / 32 - (4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) - ABS(4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) + XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) + 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6)) - ABS(4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) - ABS(4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) - XAVGO3.4 - XAVGH3.4 - XAVGL3.4 - XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6)))) / 32 >= .4 * ((4 * MAXH5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 + ABS(4 * MAXH5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) + ABS(4 * MAXH5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 + ABS(4 * MAXH5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) + XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) + 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6)) + ABS(4 * MAXH5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 + ABS(4 * MAXH5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) + ABS(4 * MAXH5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 + ABS(4 * MAXH5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) - XAVGO3.4 - XAVGH3.4 - XAVGL3.4 - XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6)))) - (4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) - ABS(4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) + XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) + 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6)) - ABS(4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) + 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3) - ABS(4 * MINL5.1 + XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2 - ABS(4 * MINL5.1 - XAVGO3.2 - XAVGH3.2 - XAVGL3.2 - XAVGC3.2) - 2 * (XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3)) - XAVGO3.4 - XAVGH3.4 - XAVGL3.4 - XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5 + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6) + ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 + XAVGO3.5 + XAVGH3.5 + XAVGL3.5 + XAVGC3.5 - ABS(XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4 - XAVGO3.5 - XAVGH3.5 - XAVGL3.5 - XAVGC3.5) - 2 * (XAVGO3.6 + XAVGH3.6 + XAVGL3.6 + XAVGC3.6))))) / 32
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 7/7/2008 Posts: 115
|
Thank you again for a quick turn around.
1.
This looks like quite a complex formula and does seem to work, however what do I change to make it condition formula which returns true when HaClose remains within 50% of 50% line of the entire range of the five previous HaCandles
The reason to change from 10% to 50% - seems like it is extremely rare occurrence and hence very limited candidates.
2.
How can I implement same condition using normal candlestick and NOT Heiken-Ashin
Thank you for your time.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
There is a <= .6 AND a >= .4 at different points in the formula. This checks for the highest closing price being less than or equal to .6 times the range above the low of the range and the lowest closing price being greater than or equal to .4 times the range above the low of the range.
This is 10% of the range above or below the midpoint of the range or 20% of the range total. Changing this to 50% of the range above or below the range would return true for everything because 50% + 50% = 100%.
If you want to be 25% above and below the range for a total of 50% of the range you would change the <= .6 to <= .75 and the >= .4 to >= .25 instead.
The formula is actually quite short without using Heiken-Ashi.
MAXC5.1 - MINL5.1 <= .6 * (MAXH5.1 - MINL5.1) AND MINC5.1 - MINL5.1 >= .4 * (MAXH5.1 - MINL5.1)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 7/7/2008 Posts: 115
|
awesome.... :-)
Thanks again for explaination and help.
|
|
Registered User Joined: 1/12/2011 Posts: 183
|
I spent a lot of time on this in the past and got something that is quite close to John Carter's TTM Trend indicator. I call it HA_Trend. I place these two conditions together as a single row of dots at the bottom of my price pane with a different color for each condition.
My understanding from listening to an audio description of the indicator is that it is based on the previous 6-days of data. I played with multiple time frames until i found just the right settings that worked best.
Trend-Up
(AVGH6.1 + AVGL6.1) / 2 < (((((O6 + C6) / 2) + H5 + L5 + C5) / 4) + ((((O5 + C5) / 2) + H4 + L4 + C4) / 4) + ((((O4 + C4) / 2) + H3 + L3 + C3) / 4) + ((((O3 + C3) / 2) + H2 + L2 + C2) / 4) + ((((O2 + C2) / 2) + H1 + L1 + C1) / 4) + ((((O1 + C1) / 2) + H + L + C) / 4)) / 6
Trend-Down
(AVGH6.1 + AVGL6.1) / 2 > (((((O6 + C6) / 2) + H5 + L5 + C5) / 4) + ((((O5 + C5) / 2) + H4 + L4 + C4) / 4) + ((((O4 + C4) / 2) + H3 + L3 + C3) / 4) + ((((O3 + C3) / 2) + H2 + L2 + C2) / 4) + ((((O2 + C2) / 2) + H1 + L1 + C1) / 4) + ((((O1 + C1) / 2) + H + L + C) / 4)) / 6
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You Trend-Up and Trend-Down formulas are very nice. They can be shortened up a bit by using AVG on both sides of the inequality instead of just on the left side.
Trend-Up
4 * (AVGH6.1 + AVGL6.1) < AVGO6.1 + AVGC6.1 + 2 * (AVGH6 + AVGL6 + AVGC6)
Trend-Down
4 * (AVGH6.1 + AVGL6.1) > AVGO6.1 + AVGC6.1 + 2 * (AVGH6 + AVGL6 + AVGC6)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 1/12/2011 Posts: 183
|
Thanks Bruce. I don't have a strong foundation in math so I tend to lay things out in a manner that I can easily understand. Clearly it was a mess however and more verbose than necessary.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I think it is great you created the HA_Trend formulas and the formulas work fine as written. Thank you.
I just shortened them up a bit to make them a bit easier for me to understand. It should also make them just a tiny bit faster in TC2000.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 1/12/2011 Posts: 183
|
An additional note on this topic. If you save my Heiken-Ashi Trend Up formula in your library, you can then add it as a watchlist column with a refresh granularity of 1 minute.
I have this set up in 7 time frames, in 7 columns, from left to right. 5-min, 15-min, 30-min, 1 hr, 2 hr, 4hr, and Daily.
I use a blue dot for Trend-Up and then simply select the "When False" option to show a red dot.
This is EXTREMELY POWERFUL, and a key part of my trading strategy. After a stock makes a bottom, for example, you can see the blue dots populate from left to right as the stock lifts off from the bottom. But it does it in such a way that you know there is a reasonably solid chance of a trend persisting at least a few bars for each time frame that turns blue due to the nature of the indicator calculation that tends to only trigger with a reasonable liklehood of continuing, AND not react to quick shakeouts.
I hope others get some value from this and give it a try.
|
|
Registered User Joined: 7/29/2010 Posts: 417
|
Telework,
Many thanks for sharing this.
"I place these two conditions together as a single row of dots at the bottom of my price pane with a different color for each condition."
I am trying to replicate this and don't know how to do this.
Thank you for any help.
Don
|
|
Registered User Joined: 7/29/2010 Posts: 417
|
"I place these two conditions together as a single row of dots at the bottom of my price pane with a different color for each condition."
I scaled Trend Up/Down together with a custom scaling of top 100 and bottom 50 which creates a single row of colored dots for the indicator. The dots are blue for Trend Up and red for Trend Down.
Is this correct?
Thank you for any insight..
Don
|
|
Registered User Joined: 1/28/2005 Posts: 6,049
|
donv98 you can try this:
ABS( Trend UP PCF Here )-.5
Plotted as a histogram it can be GREEN when true and RED when false.
Since it covers both you dont need the trend down one.
Thanks
|
|
Registered User Joined: 1/28/2005 Posts: 6,049
|
You would use a regular PCF not a %True.
Thanks
|
|
Registered User Joined: 7/29/2010 Posts: 417
|
Diceman,
Thank you for posting this alternative.
I wasn't aware of this.
Very helpful.
Don
|
|
Registered User Joined: 2/19/2014 Posts: 12
|
Telework can you share a screenshot to illustrate how you use HA trend up.
would like to use it as well
thanks for sharing
|
|
Registered User Joined: 1/12/2011 Posts: 183
|
Here is a screenshot of how I have it implemented. It is a matrix of three rows of dots, each a different indicator.
Top row = HA_Trend
Middle row = Elder Impulse System
Bottom row = Gann Trend
Also, take a look at this recent post that has a couple more ways to implement the indicator. http://forums.worden.com/default.aspx?g=posts&t=64383
|
|
Registered User Joined: 2/19/2014 Posts: 12
|
Thanks, also for the other reference. Great work !
|
|
Guest-1 |