周末折腾一组公式:叫融胜栖风瞬杀庄
通达信公式编辑器5.0版本适用
到公式区看了几个帖子大有收获,瞬杀庄老师的改改改——改出新思路!!!!!由有未来改到无未来,秒值得称赞,高。栖风老师的中线极品不错不错,好。
更绝的是融胜融老大的两条线更绝。昨天解盘的时候贴出的源码,看似简单但很牛,绝。把三位老师的公式给一组装,添加美化成一组模板,不到之处请三位老师多包涵,模板的名字叫融胜栖风瞬杀庄。供大家分享。
融栖风瞬杀庄
DRAWGBK(C>0,RGB(00,00,055),RGB(00,00,90),0,' ',0);
DRAWKLINE(H,O,L,C);
KDJ9底:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K9底:=SMA(KDJ9底,3,1);
D9底:=SMA(K9底,3,1);
J9底:=3*K9底-2*D9底;
STICKLINE(K9底<30,OPEN,CLOSE,3,0),COLORFF0000;
STICKLINE(K9底<30,OPEN,CLOSE,2.5,0),COLORFF1100;
STICKLINE(K9底<30,OPEN,CLOSE,2,0),COLORFF2200;
STICKLINE(K9底<30,OPEN,CLOSE,1.5,0),COLORFF3300;
STICKLINE(K9底<30,OPEN,CLOSE,1,0),COLORFF4400;
STICKLINE(K9底<30,OPEN,CLOSE,0.5,0),COLORFF5500;
STICKLINE(K9底<30,H,L,0,0),COLORFF6600;
M1:EMA(C,8),COLORLIRED;
M2:EMA(C,24),COLORBROWN,DOTLINE;
IF(M1>M2,M1,DRAWNULL),COLORRED,LINETHICK1;
IF(M2>M1,M2,DRAWNULL),COLORGREEN,LINETHICK1;
{轨道}
CC11:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD11:=DMA(CLOSE,CC11);
上:=(1+7/100)*DD11,COLORGRAY;
下:=(1-7/100)*DD11,COLORGRAY;
融中轨:(上+下)/2,COLORYELLOW,DOTLINE;
安全线:=EMA(CLOSE,55),COLORRED;
N:=3;M:=13;P1:=50;P2:=60;
VAR1:=(C+H+O+L)/4;
卖出:MA(VAR1,N)*(1+P1/1000),COLORLIGRAY;
买入:MA(VAR1,M)*(1-P2/1000),COLOR408000,LINETHICK2;
幅度:100*(卖出-买入)/买入,NODRAW;
MA1:=MA(VAR1,3);
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLOR0000EE;
STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLOR0000EE;
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLOR00AA00;
STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLOR0000EE;
STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLOR008800;
STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLOR00AB00;
STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),COLOR00DD00;
STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,0),COLOR00FF00;
STICKLINE(买入>HIGH,OPEN,CLOSE,3,0),COLOR00AB00;
STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLOR00AB00;
DRAWTEXT(CROSS(LOW,买入),LOW*0.98,'B'),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(卖出,HIGH),HIGH*1.02,'S'),COLORGREEN;
{逃顶}
LC1:=REF(CLOSE,1);
RSI51:=SMA(MAX(CLOSE-LC1,0),5,1)/SMA(ABS(CLOSE-LC1),5,1)*100;
逃命:=CROSS(80,RSI51);
DRAWICON(逃命,H*1.015,15);
TJ1:=REF("CCI.CCI",1)>90 AND "CCI.CCI"<REF("CCI.CCI",1);
TJ2:=REF("KDJ.J"(9,3,3),1)>90 AND "KDJ.J"(9,3,3)<REF( "KDJ.J"(9,3,3),1);
TJ3:=REF("RSI.RSI1",1)>70 AND "RSI.RSI1"<REF("RSI.RSI1",1);
TJ4:=COUNT(TJ1,5) AND COUNT(TJ2,5) AND COUNT(TJ3,5);
大顶:=CROSS(TJ4,0.5);
DRAWICON(大顶,H*1.001,2);
TJ5:=REF("CCI.CCI",1)<-100 AND "CCI.CCI">REF("CCI.CCI",1);
TJ6:=REF("KDJ.J"(9,3,3),1)<20 AND "KDJ.J"(9,3,3)>REF( "KDJ.J"(9,3,3),1);
TJ7:=REF("RSI.RSI1",1)<20 AND "RSI.RSI1">REF("RSI.RSI1",1);
TJ8:=COUNT(TJ5,5) AND COUNT(TJ6,5) AND COUNT(TJ7,5);
大底:=CROSS(TJ8,0.5);
DRAWICON(大底,L*0.991,18);
DRAWTEXT_FIX(1,0.00,0.00,0,'主题投资:')COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.00,0,EXTERNSTR(0,1))COLORFF9900;
DRAWTEXT_FIX(1,0.00,0.04,0,'主营业务:')COLORFF00FF;
DRAWTEXT_FIX(1,0.07,0.04,0,EXTERNSTR(0,2))COLORFF00FF;
DRAWTEXT_FIX(1,0.50,0.995,0,'☆★☆★新股民567专用★☆★☆'),COLOR8082C7;
昨天大盘为了给新一届领导面子急拉狂奔也没过MA1 。
下面是给三位老师改型的,主图超跌青色和顶部红色更清晰,另外加了融老大的中轨线,多加了抄底逃顶的图标符号提示,副图添加了(那个老师的忘了)全仓买,根据个人喜好改了线型染色感觉不是很刺眼了,只要副图的三个底部信号和主图的信号出现,确认站稳融中轨线,ma1 ma2线之上可买入持股。
|