组合抄底集大成的指标 (源码,有图,副图)
指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2011-10-02 06:05:00
公式简介:
本指标包含了陆绍春老师的‘出局减仓’‘macd底背离’‘抄底特准’‘红柱抄底’,改编的起因是觉得在一个软件图里面罗列这么多指标,想再看其他的指标不方便,就想着能不能把这些指标综合在一个指标里;本身没有任何技术含量,因为所有的思路都来自陆绍春老师,唯一的改动是‘出局减仓’的出局信号,陆老师的思路是CROSS(动力线,卖出线),但遇到强势股会提前下马,我改为CROSS(卖出线,动力线);
请大家看下面的图,我做一个简单介绍:0~25位置的绿柱指的是‘抄底特准’;25~50位置的红柱指的是红柱抄底’;50~75位置的黄柱指的是MACD底背离;80位置的绿箭头指的是‘出局减仓’指标的减仓信号;100位置的绿箭头指的是出局减仓’指标的出局信号;
为了改编这个指标,我在陆绍春老师的帖子里爬楼爬到五百层,爬得泪流满面,筋疲力竭;请各位股友看在我爬楼爬得可怜的份上赏点理想币吧。。。。。。谢谢大家!!
DIF1:=EMA(CLOSE,7)-EMA(CLOSE,19),COLORWHITE;
DEA1:=EMA(DIF1,9);
MACD1:=(DIF1-DEA1)*100,COLORSTICK;
STICKLINE(MACD1>REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORRED;
STICKLINE(MACD1<=REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORYELLOW;
STICKLINE(MACD1<REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLOR00FF00;
STICKLINE(MACD1>=REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLORMAGENTA;
STICKLINE(C>0,0,0,50,1),COLORBLUE;
RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K日:SMA(RSV1,3,1),COLORWHITE;
D日:SMA(K日,3,1),COLORYELLOW;
J日:3*K日-2*D日,COLORFF00FF;
底部:0,COLORF00FF0,LINETHICK2;
DRAWICON(CROSS(J日,底部),底部,1);
VAR1:=REF(CLOSE,1);
VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;
特准:STICKLINE(FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5),0,25,1,0),LINETHICK2,COLOR00FF00;
BIAS1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
红柱抄底:STICKLINE(CROSS(BIAS,乖离) AND 乖离<-9.5,25,50,1,0),COLORRED;
DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIFF,9),COLORFFFF00;
MACD:=(DIFF-DEA)*2;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
MACD底背离:STICKLINE(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),50,75,1,0),COLORYELLOW;
VAR6:=LLV(LOW,10);
VAR8:=HHV(HIGH,25);
减仓线:=3.2 ;
卖出线:=3.5;
动力线:=EMA((CLOSE-VAR6)/(VAR8-VAR6)*4,4);
DRAWICON(CROSS(动力线,减仓线),80,2);
DRAWICON(CROSS(卖出线,动力线),100,2);
DRAWTEXT(CROSS(卖出线,动力线),120,'出局'),COLORRED;
34楼冠宇股友检测出移动函数DCLOSE,下面是原帖
陆绍春
理想初一级同学 190楼
只看该作者
发表于 2010-8-29 09:39
回复 189楼 呜呜祖拉 的帖子
会有漂移,但一般是在尾盘买,也就是3:55-3:57都在的话,也后同样都在,所以我一直都强调在尾盘买进,也就是考虑到会漂移这个问题了.
你好,这是原帖里陆绍春老师对MACD引用DCLOSE函数的回复,DCLOSE是个移动函数,但是和普通的未来函数有区别,可以把公式里MACD修改为
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);就是把第一个公式的DCLOSE改为了CLOSE
下面是对本指标的再次修改:
DIF1:=EMA(CLOSE,7)-EMA(CLOSE,19),COLORWHITE;
DEA1:=EMA(DIF1,9);
MACD1:=(DIF1-DEA1)*100,COLORSTICK;
STICKLINE(MACD1>REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORRED;
STICKLINE(MACD1<=REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORYELLOW;
STICKLINE(MACD1<REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLOR00FF00;
STICKLINE(MACD1>=REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLORMAGENTA;
STICKLINE(C>0,0,0,50,1),COLORBLUE;
RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K日:SMA(RSV1,3,1),COLORWHITE;
D日:SMA(K日,3,1),COLORYELLOW;
J日:3*K日-2*D日,COLORFF00FF;
底部:0,COLORF00FF0,LINETHICK2;
DRAWICON(CROSS(J日,底部),底部,1);
VAR1:=REF(CLOSE,1);
VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;
特准:STICKLINE(FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5),0,25,1,0),LINETHICK2,COLOR00FF00;
BIAS1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
红柱抄底:STICKLINE(CROSS(BIAS,乖离) AND 乖离<-9.5,25,50,1,0),COLORRED;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9),COLORFFFF00;
MACD:=(DIFF-DEA)*2;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
MACD底背离:STICKLINE(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),50,75,1,0),COLORYELLOW;
VAR6:=LLV(LOW,10);
VAR8:=HHV(HIGH,25);
减仓线:=3.2 ;
卖出线:=3.5;
动力线:=EMA((CLOSE-VAR6)/(VAR8-VAR6)*4,4);
DRAWICON(CROSS(动力线,减仓线),80,2);
DRAWICON(CROSS(卖出线,动力线),100,2);
DRAWTEXT(CROSS(卖出线,动力线),120,'出局'),COLORRED;
以下是17楼金重股友对本指标的完善,根据量能加入了超跌低买信号;感谢这位故友,理想因为大家的无私分享而精彩。再修改一下,让高卖信号也出来。
DIF1:=EMA(CLOSE,7)-EMA(CLOSE,19),COLORWHITE;
DEA1:=EMA(DIF1,9);
MACD1:=(DIF1-DEA1)*100,COLORSTICK;
STICKLINE(MACD1>REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORRED;
STICKLINE(MACD1<=REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORYELLOW;
STICKLINE(MACD1<REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLOR00FF00;
STICKLINE(MACD1>=REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLORMAGENTA;
STICKLINE(C>0,0,0,50,1),COLORBLUE;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,5,1);
D:SMA(K,3,1);
J:3*K-2*D;
VARB2:=(RSV/2+22)*1;
量:=EMA(VOL,13);
资金:=EMA(AMOUNT,13);
过滤:=((资金 /量) / 100);
提纯:=(((CLOSE -过滤) / 过滤) * 100);
黄金:=((提纯 < (0)) AND ZXNH),COLORRED;
低买:IF(黄金 AND RSV<VARB2-2,40,0),COLORCYAN,LINETHICK2;
高卖:IF(黄金 AND RSV>VARB2,80,120),COLORGREEN,LINETHICK2;
上涨分界:25;
底部:0,COLORF00FF0,LINETHICK2;
DRAWICON(CROSS(J,底部),底部,1);
VAR1:=REF(CLOSE,1);
VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;
特准:STICKLINE(FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5),0,25,1,0),LINETHICK2,COLOR00FF00;
BIAS1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
红柱抄底:STICKLINE(CROSS(BIAS,乖离) AND 乖离<-9.5,25,50,1,0),COLORRED;
DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIFF,9),COLORFFFF00;
MACD:=(DIFF-DEA)*2;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
MACD底背离:STICKLINE(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),50,75,1,0),COLORYELLOW;
VAR6:=LLV(LOW,10);
VAR8:=HHV(HIGH,25);
减仓线:=3.2 ;
卖出线:=3.5;
动力线:=EMA((CLOSE-VAR6)/(VAR8-VAR6)*4,4);
DRAWICON(CROSS(动力线,减仓线),80,2);
DRAWICON(CROSS(卖出线,动力线),100,2);
DRAWTEXT(CROSS(卖出线,动力线),120,'出局'),COLORRED;
不好意思,经26楼股友提醒,发现金重网友的修改版引用了通达信直线拟合指标ZXNH,下面是对直线拟合ZXNH指标的介绍,请大家根据自己喜好使用那一版,再次对金重股友表示感谢。
ZXNH——直线拟合指标(图表型)
1、直线拟合指标是寻找阶段内代表性高点、低点的工具;
2、直线拟合本身没有预测功能,即不能利用直线拟合指标
直接研判,但可以利用直线拟合指标辅助判断顶背离、底背离等。
CYS与ZXNH:注:ZXNH可能含有未来涵数,少用为宜。
使用方法:1、在考虑出货时可参考ZXNH;其显现提示时最晚第二天要出掉。
2、抄底买入时,ZXNH有提示的同时,CYS要超跌,即其值不得小于-15;同时,也得结合大势。
3、并结合K线形态。
注:ZXNH可能含有未来涵数,少用为宜。
[url=http://www.goodgupiao.com/gupiaogongshi/15778.html][B]组合抄底集大成的指标 (源码,有图,副图)[/B][/url]