Not exactly what I was hoping for but thanks anyway.
Bernie
|
Here’s a MACD with a few subtle changes:
1) The price data used is (H+L+C)/3 rather than the close. I find this makes a subtle improvement in the display of divergences.
2) You can plot a second long time frame MACD line on the same chart (hidden by default).
3) The histogram bars are colored based on the relationship to the previous bar vice the standard above/below zero line coloring.
4) The color of the main MACD line is white when the slope is positive and purple when negative.
Can the following Think Script be converted to anything that telechart can use?
input ShortTimeFrameFastLength = 7 ; |
input ShortTimeFrameSlowLength = 28 ; |
input LongTimeFrameFastLength = 28 ; |
input LongTimeFrameSlowLength = 112 ; |
def fastAvg = ExpAverage(data = hlc3 , length = ShortTimeFrameFastLength); |
def slowAvg = ExpAverage(data = hlc3 , length = ShortTimeFrameSlowLength); |
plot STFValue = fastAvg - slowAvg; |
STFValue. setLineWeight ( 2 ); |
DEF STFslope = (STFValue-STFValue[ 1 ]); |
DEF STFslopeColor = if (STFslope > 0.0 , 9 , 0 ); |
STFValue.AssignValueColor( getColor (STFSlopeColor)); |
plot STFAvg = ExpAverage(data = STFValue, length = STFMACDLength); |
STFAvg.SetDefaultColor(GetColor( 8 )); |
def LfastAvg = ExpAverage(data = hlc3 , length = LongTimeFrameFastLength); |
def LslowAvg = ExpAverage(data = hlc3 , length = LongTimeFrameSlowLength); |
plot LTFValue = LfastAvg - LslowAvg; |
LTFValue. setDefaultColor ( color.green ); |
plot Diff = STFvalue - STFavg; |
diff.AssignValueColor( if diff >= diff[ 1 ] then Color.UPTICK else Color.DOWNTICK); |
Diff.SetPaintingStrategy(PaintingStrategy.HISTOGRAM); |
Diff.SetDefaultColor(GetColor( 5 )); |
ZeroLine.SetDefaultColor(GetColor( 0 )); |
|
QUOTE (alindsley) theBernie as I began reading back from the beginning of this thread, and followed some of the links given, I made a
- PCF for double bottoms - 2 months 100*MINL21/MINL21.21 .
Adding that to an easyscan
I then added two other conditions
- Volume 90-day >1000000 and
- Price per share >3.00
I like the double bottoms where the 2nd bottom falls below the first bottom a little bit. It amazed me then how many nice double bottoms which appear in TC2000 from this easyscan. Of course I only ran it on Friday but was happy with the results. I ran that scan on the Russell 3000. Later on my Kirkpatrick easyscan watchlist.
One could easily change the pcf for 11 days as truetrend suggests if desired.
Is it to simple to believe that 2 months 100*MaxH21/MaxH21.21 would produce double tops?
|
Bruce;
Would you know if there is a way to duplicate this scan in TC2000 v11?
Bernie
|
Can these formulas be improved on?
Bernie
|
Thbe following PCF's do a fair job representing bottoms.
PCF1: (MAXC10>(MINL10.20+((MAXH10.20-MINL10.20)*.1))AND
MINC10<(MINL10.20+((MAXH10.20-MINL10.20)*.2)))
PCF2: ((MINL10>MINL10.20*.96) AND (MINL10<MINL10.20*1.04))
PCF3: (C<MAXC10.10 AND C>MAXC10.10*.95)
How can these be converted to do the same for tops?
Thanks for the help.
Bernie
|
Bruce;
When I try to load this in Stockfinder 5, it attempts to download Stockfinder 4. Do you know what the problem is?
Attachments:
Zero Lag - Error Correcting.sfIndRC - 8 KB, downloaded 12 time(s).
|
Thanks Bruce. If I wanted to use a 5 period, would I simply change all the 10's to 5?
Bernie
|
Bruce;
You did a thing in stockfinder called Faster with Zero Lagging. It had a 10 period and was a TEMA along with Hiekin Ashi.
Bernie
|
Bruce had created a formula called Zero Lag that he worked out from a Stock & Commodoties article.
I wonder if that Zero Lag indicator can be programmed to use in Telechart? It would be more useful to me there.
Thanks for the help.
Bernie
|