风靡一时的操盘手"小护士"公式 指标 选股 源码[大智慧公式]
指标公式源码分析及使用说明:
源码:
10,dotline,color888888,PRECIS0;
80,dotline,color888888,PRECIS0;
qw1:=(HIGH+LOW+CLOSE*2)/4;
qw3:=EMA(qw1,10);
qw4:=STD(qw1,10);
qw5:=(qw1-qw3)*100/qw4;
qw6:=EMA(qw5,5);
rk7:=EMA(qw6,10);
涨:EMA(qw6,10)+100/2-5,linethick1,colorred,PRECIS2;
跌:EMA(涨,4),linethick1,colorFFFF34,PRECIS2;
多线:IF(cross(涨,跌) and 跌<-10,30,0),linethick1,COLORFF00FF,PRECIS2;
空线:IF(cross(跌,80),70,100),colorff9900,PRECIS2;
买1:ema(跌,4),colorwhite,PRECIS2;
买2:ema(买1,4),colorgreen,PRECIS2;
买m3:=ema(买2,4);
买m4:=ema(买m3,4);
STICKLINE(涨<REF(涨,1),涨,MA(涨,3),0,0 ),colorwhite,PRECIS0;
STICKLINE(涨<REF(涨,1),涨,MA(涨,3),8,0 ),COLOR008800,PRECIS0;
STICKLINE(涨<REF(涨,1),涨,MA(涨,3),7,0 ),COLOR009900,PRECIS0;
STICKLINE(涨<REF(涨,1),涨,MA(涨,3),6,0 ),COLOR00AA00,PRECIS0;
STICKLINE(涨<REF(涨,1),涨,MA(涨,3),5,0 ),COLOR00BB00,PRECIS0;
STICKLINE(涨<REF(涨,1),涨,MA(涨,3),4,0 ),COLOR00CC00,PRECIS0;
STICKLINE(涨<REF(涨,1),涨,MA(涨,3),3,0 ),COLOR00DD00,PRECIS0;
STICKLINE(涨<REF(涨,1),涨,MA(涨,3),2,0 ),COLOR00EE00,PRECIS0;
STICKLINE(涨<REF(涨,1),涨,MA(涨,3),1,0 ),COLOR00FF00,PRECIS0;STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),0,0) ,COLOR00BBFF,PRECIS0;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),8,0) ,COLOR0011FF,PRECIS0;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),7,0) ,COLOR0022FF,PRECIS0;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),6,0) ,COLOR0044FF,PRECIS0;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),5,0) ,COLOR0066FF,PRECIS0;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),4,0) ,COLOR0088FF,PRECIS0;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),3,0) ,COLOR0099FF,PRECIS0;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),2,0) ,COLOR00AAFF,PRECIS0;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),1,0) ,COLOR00BBFF,PRECIS0;
DRAWICON(多线,30,1);
DRAWICON(cross(跌,80),70,2);
DRAWTEXT(cross(涨,跌) and 跌<20 and 跌>-10,40,'买入'),colorccff99;
DRAWTEXT(多线>0,-20,'看涨'),color0000ff;
cxh811:=SUMBARS(VOL,FINANCE2(7)*100);
cxh822:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
cxh883:=(CLOSE-cxh822)/cxh822*100;
cxh884:=HHV(cxh883,cxh811);
cxh885:=LLV(cxh883,cxh811);
cxh886:=(cxh883-cxh885)/(cxh884-cxh885)*100;
K:=SMA(cxh886,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
MA1:=MA(J,3);
STICKLINE(filter(J>MA1 AND J<=3,5)=1 and 跌<0,涨,涨+20,6,0),coloryellow,PRECIS0;
DRAWTEXT(filter(J>MA1 AND J<=3,5)=1 and 跌<0,60,'考虑买进'),colorffffff;
cxh1:=MA(CLOSE,152);
cxh2:=MA(CLOSE,194);
cxh3:=cxh2+2*STD(CLOSE,170);
cxh4:=cxh1+2*STD(CLOSE,170);
顶:(CLOSE>cxh3)*13*10,colorblue,linethick2,PRECIS0;
cxh6:=EMA(HHV(HIGH,500),21);
cxh7:=EMA(HHV(HIGH,250),21);
cxh8:=EMA(HHV(HIGH,90),21);
cxh9:=EMA(LLV(LOW,500),21);
cxhA:=EMA(LLV(LOW,250),21);
cxhB:=EMA(LLV(LOW,90),21);
cxhC:=EMA((cxh9*0.96+cxhA*0.96+cxhB*0.96+cxh6*0.558+cxh7*0.558+cxh8*0.558)/6,21);
cxhD:=EMA((cxh9*1.25+cxhA*1.23+cxhB*1.2+cxh6*0.55+cxh7*0.55+cxh8*0.65)/6,21);
cxhE:=EMA((cxh9*1.3+cxhA*1.3+cxhB*1.3+cxh6*0.68+cxh7*0.68+cxh8*0.68)/6,21);
cxhF:=EMA((cxhC*3+cxhD*2+cxhE)/6*1.738,21);
cxh10:=REF(LOW,1);
cxh11:=SMA(ABS(LOW-cxh10),3,1)/SMA(MAX(LOW-cxh10,0),3,1)*100;
cxh12:=EMA(IF(CLOSE*1.35<=cxhF,cxh11*10,cxh11/10),3);
cxh13:=LLV(LOW,30);
cxh14:=HHV(cxh12,30);
cxh15:=IF(MA(CLOSE,58),1,0);
cxh16:=EMA(IF(LOW<=cxh13,(cxh12+cxh14*2)/2,0),3)/618*cxh15;
cxh17:=IF(cxh16>50,50,cxh16)/3.82*6;
cxh18:=HHV(HIGH,30);
cxh19:=LLV(LOW,30);
NL:=EMA((CLOSE-cxh19)/(cxh18-cxh19)*100,5)/8*10;
cxh1A:=(EMA(AMOUNT,5)/EMA(VOL,5)/100-EMA(AMOUNT,125)/EMA(VOL,125)/100)/(EMA(AMOUNT,5)/EMA(VOL,5)/100)<-0.4;
cxh1B:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
cxh1C:=SMA(cxh1B,3,1);
cxh1D:=SMA(cxh1C,3,1);
cxh1E:=(-100)*(HHV(HIGH,52)-CLOSE)/(HHV(HIGH,52)-LLV(LOW,52));
cxh1F:=COUNT(cxh1A,5)>=1 AND (cxh1E<-99.9 OR cxh1D<15 AND cxh1C<12);
cxh20:=VOL/FINANCE2(7);
cxh21:=100*WINNER(CLOSE);
cxh22:=MA(cxh21,3);
cxh23:=MA(cxh20,34);
cxh24:=cxh22<cxh23*100 AND cxh21<cxh20;
cxh25:=SUM(IF(CLOSE>REF(CLOSE,1),1,0),0);
cxh26:=SUMBARS(VOL,CAPITAL);
cxh27:=IF(CLOSE>LLV(CLOSE,cxh26),1,-1)*IF(cxh25>LLV(cxh25,cxh26),1,-1);
cxh28:=COUNT(IF(cxh27=-1,1,0)=1,8)>2;
cxh29:=(CLOSE-DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,13)/(AMOUNT/VOL/100)/100)))/DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,13)/(AMOUNT/VOL/100)/100))*100<-18;
cxh2A:=(CLOSE-MIN(REF(CLOSE,5)*0.865,REF(CLOSE,21)*0.772))/CLOSE<0.01;
cxh2B:=cxh28 AND cxh29 AND cxh2A;
cxh2C:=VOL/CAPITAL>=0.02 AND VOL/CAPITAL<=0.2 AND OPEN=1.105;
cxh2D:=cxh2C AND COUNT(cxh2C,5)=1;
cxh2E:=cxh2B OR cxh2C;
cxh2F:=REF(CLOSE,1);
cxh30:=SMA(MAX(CLOSE-cxh2F,0),7,1)/SMA(ABS(CLOSE-cxh2F),7,1)*100;
cxh31:=SMA(MAX(CLOSE-cxh2F,0),13,1)/SMA(ABS(CLOSE-cxh2F),13,1)*100;
cxh32:=cxh30<20 AND cxh31<25;
cxh33:=cxh32;
cxh34:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),0-VOL,0)),0);
cxh35:=IF(CLOSE>LLV(CLOSE,cxh26),1,-1);
cxh36:=IF(cxh34>LLV(cxh34,cxh26),1,-1);
cxh37:=cxh35*cxh36;
cxh38:=IF(cxh37=-1,1,0);
cxh39:=cxh38 AND CLOSE=LLV(CLOSE,120) AND cxh21<cxh20;
cxh3A:=IF(FILTER(cxh1F AND cxh24 AND cxh2E AND cxh33 AND cxh39>0,4),70,0);
DRAWTEXT(FILTER(cxh24 AND cxh2E AND cxh33 OR cxh33 AND cxh39,1),cxh2*4-13,'抄底'),colorred;
STICKLINE(IF(cxh24 AND cxh2E AND cxh33 OR cxh33 AND cxh39,35,0),0,cxh2*4-4,15,0),PRECIS0;
cxh3B:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
cxh3C:=SMA(cxh3B,3,1);
cxh3D:=SMA(cxh3C,3,1);
cxh3E:=SMA(cxh3D,3,1);
cxh3F:=CROSS(cxh3D,cxh3E) AND cxh3D<20;
cxh40:=CROSS(cxh3E,cxh3D) AND cxh3D>80;
cxh41:=5;
DRAWTEXT(CROSS(cxh41,NL),30,'做底'),colorwhite;
cxh42:="RSI#WEEK"(12,12,12);
cxh43:="RSI#WEEK"(55,55,55);
cxh44:=REF(CLOSE,1);
cxh45:=SMA(MAX(CLOSE-cxh44,0),6,1)/SMA(ABS(CLOSE-cxh44),6,1)*100;
cxh46:=FILTER(cxh40,5)=1 AND BARSLAST(CROSS(cxh42,cxh43) AND cxh42<=60)>=20;
STICKLINE(CROSS(cxh42,cxh43) AND cxh42<=60,0,cxh2*15+5,3,0),colormagenta,PRECIS0;
DRAWTEXT(CROSS(cxh42,cxh43) AND cxh42<=60,(cxh2*12+3)/1,'加仓'),colormagenta;
STICKLINE(CROSS(84,cxh45),0,cxh2*15+3,5,1),colorgreen,PRECIS0;
STICKLINE(cxh46,cxh2*15+10,10,6,
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容