当前位置: 网站首页 > 股票软件公式 > 同花顺公式 > 文章 当前位置: 同花顺公式 > 文章

同花顺公式源码:金波段,自定义多空趋势,突破和撑压

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

1、金波段

本指标含未来函数,出现买点应结合其它指标使用。( 股民学院: http://www.58188.com )

F1:=ZIG(3,5);
VERTLINE(F1<REF(F1,1),2),coloraa8800;
Var10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
Var11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
Var12:=ZIG(3,6)=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
Var13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
Var14:=ZIG(3,22)=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
Var15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
Var16:=ZIG(3,51)=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
Var17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
Var18:=ZIG(3,72)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
Var19:=EMA(CLOSE,2)-EMA(CLOSE,150);
Var1A:=EMA(Var19,100);
Var1B:=2*(Var19-Var1A);
Var1C:=POW(Var1B,3)*0.1+POW(Var1B,1);
Var1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
Var1E:=EMA(Var1D*0.97,3);
Var1F:=(HIGH+LOW+CLOSE)/3;
买点1:=Var10;
买点2:=(Var11+Var13+Var15+Var17);
VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,30);
VAR4:=MA(CLOSE,60);
VAR5:=EMA(COST(85),7);
VAR6:=EMA(COST(15),7);
VAR7:=SUM(CLOSE*VOL*100,4)/SUM(VOL*100,4);
VAR8:=INTPART(VAR7*100)/100;
VAR9:=SUM(CLOSE*VOL*100,7)/SUM(VOL*100,7);
VARA:=INTPART(VAR9*100)/100;
VARB:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);
VARC:=INTPART(VARB*100)/100;
VARD:=EMA(CLOSE,5)-EMA(CLOSE,10);
VARE:=EMA(VARD,9);
VAR13:=REF(VARE,1);
VAR14:=VARE;
VAR15:=VAR14-VAR13;
VAR16:=REF(VARD,1);
VAR19:=OPEN;
买点3:=IF(VAR19<=VAR1 AND VAR19<=VAR2 AND VAR19<=VAR3 AND VAR1A>=VAR1 AND VAR1A>=VARC AND VAR15>0 AND VAR18>0,0.5,0);
VERLINE(买点3>0 OR 买点1>0 OR 买点2>0, 2),Color0000FF;
VAR1:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
VAR2:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
VAR3:=BARSCOUNT(CLOSE);
VAR4:=VAR1<20 AND VAR2<23 AND VAR3>35;
VAR5:=VAR4 AND COUNT(VAR4,1)=1;
VAR6:=EMA(CLOSE,21)-EMA(CLOSE,8);
VAR7:=EMA(VAR6,5);
VAR8:=TROUGHBARS(3,6,1)<4 AND CROSS(VAR6,VAR7);
VAR9:=(HIGH+LOW+CLOSE)/3;
VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
VAR11:=(VAR9-MA(VAR9,14))/(0.015*AVEDEV(VAR9,14));
VAR18:=IF(TROUGHBARS(3,8,1)=0 AND HIGH>LOW+0.04,4,0);
DRAWTEXT(VAR18>0,1.6,'★买入'), ,colorliblue;
DRAWICON(VAR18>0,1.4,1);
见底:=VAR10;
底1:=EXIST(见底,2);
底:IF(见底>0 OR 底1>0,4,0),VOLSTICK;
DRAWTEXT(VAR11<-110 AND 见底>0,3,'见底'), ,coloryellow;
DRAWTEXT(VAR11<-110  AND VAR8,3.5,'★组合选股获利5%以上'), , colorred;
DRAWTEXT( VAR5>0 AND VAR8,3.5 ,'组合5分钟线选股思路获利5%以上'), , colorred;
DRAWICON(见底>0,3.9,1);
XX:=EMA(CLOSE,30)-EMA(CLOSE,17);
AA:=EMA(XX,5);
YY:=EMA(XX,13);
短:=TROUGHBARS(3,10,1)<1 AND CROSS(XX,AA);
DRAWICON(短>0,1.8,18);
DRAWTEXT(短>0,1.8,'慧眼'),colorwhite;
枪:=TROUGHBARS(3,5,1)<1 AND XX<YY;
短1:=IF(枪>0,0.4,0),STICK,COLORF0F000,LINETHICK4;
DRAWICON(短1>0,1.4,1 );
DRAWTEXT(短1>0,2.1,'套利'),colorliblue;
短2:=CROSS(XX,AA) AND TROUGHBARS(3,7,1)<1;
DRAWICON(短2>0,1.4,1 );
DRAWTEXT(短2,2.5,'小牛'),colorwhite;
狙击:EXIST(短 OR 短1 OR 短2 OR(VAR11<-110  AND VAR8) OR VAR18,2),colorwhite,LINETHICK9;
VAR12:=PEAKBARS(3,15,1)<10;
VAR13:=IF(VAR12=1,2,0);
顶:= IF(VAR13=2,2,0);
逃:IF(顶>REF(顶,1),3,0),colorred,LINETHICK2;
DRAWTEXT(逃=3,3,'逃!'),colorred;
RSV:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*5;
FASTK:=SMA(RSV,3,1);
金:SMA(FASTK,3,1),colorligreen,coloryellow;
阴阳:SMA(金,5,1),colorlicyan,colormagenta;
VAR14:=TROUGHBARS(3,15,1)<10;
VAR15:=IF(VAR14=1,50,0);
底部:=IF(VAR15=50,10,0);
机构介入:底部/20,LINETHICK2 ,colorblue;
VAR16:=EMA(EMA(CLOSE,13),13);
控盘:= (VAR16-REF(VAR16,1))/REF(VAR16,1)*1000,COLORFFCCCC,POINTDOT;
无庄控盘:控盘<0,LINESTICK;
VAR17:=100*WINNER(CLOSE*0.95);
主力出货: 控盘<REF(控盘,1) AND 控盘>0,colorgreen;
高度控盘: VAR17>50 AND COST(85)<CLOSE AND 控盘>0,colorlimagenta;
A1:=REF(C,1);
A2:=DCLOSE;
A3:=(A2-A1)/A1*100;
AA1:=(A3-REF(A3,1));
AA2:=9.8;
选股1:=CROSS(AA1,AA2);
A11:=REF(V,1);
A12:=DVOL;
A13:=A12/A11;
AA3:=(A13-REF(A13,1));
AA4:=500;
选股2:=CROSS(AA3,AA4);
抢劫:选股1 AND 选股2;
DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.028,'★绝佳') ,LINETHICK1,colorred;
RR8:=MA(CLOSE,27);
RR9:=(CLOSE-RR8)/RR8*100;
RR81:=MA(CLOSE,5);
RR91:=(CLOSE-RR81)/RR81*100;
RR8:=MA(CLOSE,27);
RR9:=(CLOSE-RR8)/RR8*100;
超跌买点:IF(MA(RR9,2)<-20 AND BARSLAST(CROSS(-10,MA(RR9,2))=1)>3 AND CROSS(MA(RR9,2)-REF(MA(RR9,2),1),0),-0.55,0);
RR8:=MA(CLOSE,27);
RR9:=(CLOSE-RR8)/RR8*100;
RRA:=MA(RR9,2);
RRB:=BARSLAST(CROSS(-10,RRA)=1);
RRD:=RRA<-10 AND RRB>3;
黄金坑:IF(RRD,-0.50,0),coloryellow,LINETHICK2;
VAR3:=PEAKBARS(3,5,1)<10;
VAR5:=IF(VAR3=1,2,0);
顶:= IF(VAR5=2,2,0);
顶A:IF(顶>REF(顶,1),3,0),colorgreen, LINETHICK2;
DRAWTEXT(顶A=3,4,'逃顶'),COLOR00FF00
 



2、自定义多空趋势

MA5:=MA(C,5);

MA13:=MA(C,13);
MA21:=MA(C,21);
MA55:=MA(C,55);
VAR1:=MA(BARSLAST(LOW=LLV(LOW, 10))*IF(CLOSE>OPEN, VOL, 1), 4);
Var2:=MA(BARSLAST(HIGH=HHV(HIGH, 14))*IF(CLOSE<OPEN, VOL, 1), 3);
Var3:=VAR1;
DIFF:=EMA(CLOSE,9)-EMA(CLOSE,17);
DEA:=EMA(DIFF,8),COLOrffaa00;
AD2:=CLOSE/REF(CLOSE,1)>1.09;
TJ2:=COUNT(AD2,2)<=0;
AAS:=IF((MA5>=MA13 OR ABS(MA5-MA13)<0.02) AND MA13>=MA21 AND C>MA55 ,1,0) AND DEA<0.6 AND C>=O  AND C>MA5   AND  CLOSE/REF(CLOSE,1)>1.03;
AAF:=IF((MA5>=MA13 OR ABS(MA5-MA13)<0.02) AND MA13>=MA21 AND C>MA55,1,0) AND DIFF>REF(DIFF,1) AND REF(DIFF,1)<=REF(DIFF,2) AND C>=O AND DEA<1 AND C>MA5 AND TJ2 AND  CLOSE/REF(CLOSE,1)>1.03;
XG:=AAS OR AAF  ;
VVS:=IF(MA5>=MA13 OR ABS(MA5-MA13)<0.02 AND C>MA55,1,0)  AND C>=O   AND DEA<0.06   AND DEA>-0.06AND VOL>REF(VOL,1)*1.5 AND C>MA5;
ZG:=VVS   AND TJ2;
多:EMA(Var3,5),colorred ,linethick1;
空:IF(VAR1>=0, VAR2, 0),colorgreen,linethick1;
趋势:EMA(多,18),colorliblue,linethick1;
STICKLINE(FILTER(XG,10),IF(多>空,空,多),IF(多>空,多,空),1,0),colormagenta;
DRAWTEXT (FILTER(XG,10),IF(多>空,多,空),'买入点'),colormagenta;
STICKLINE(FILTERX(ZG,10),IF(多>空,空,多),IF(多>空,多,空),1,0),colorblue;

DRAWTEXT (FILTERX(ZG,10),IF(多>空,多,空),'关注'),colorblue;


3、突破和撑压

DRAWKLINE(H,O,L,C);

zsx1:=LLV(CLOSE,13);
zq:=BARSLAST(CLOSE=ZSx1);
gg:=HHV(CLOSE,zq);
IF(gg>REF(gg,1))
zj:=(gg-REF(gg,1));
ELSE zj:=0;
IF(zq=0)
撑压点:zsx1,colorwhite;
ELSE 撑压点:REF(撑压点,1)+zj;
DRAWTEXT(撑压点>REF(撑压点,1),撑压点,'↖突破'),coloryellow;
前期高点:IF(HHV(H,55),CONST(HHV(H,13)),DRAWNULL),colorgreen,LINETHICK1;
前期低点:IF(LLV(L,2),CONST(LLV(L,21)),DRAWNULL),colorred,LINETHICK1;
短期企稳机构做盘建仓成本线:MA(REF(LLV(C,30),1),2),colorblue,LINETHICK2;
穿牛熊:HHV(MA(H,8),13),colorwhite,LINETHICK1;
牛:IF(C>穿牛熊,穿牛熊,DRAWNULL),colormagenta,LINETHICK2;
熊:IF(C<穿牛熊,穿牛熊,DRAWNULL),colorcyan,LINETHICK1;
Var10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
Var11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
Var13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
Var15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
Var17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
Var18:=ZIG(3,72)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
Var19:=EMA(CLOSE,2)-EMA(CLOSE,150);
Var1A:=EMA(Var19,100);
买点1:=Var10;
买点2:=(Var11+Var13+Var15+Var17);
VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,30);
VARB:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);
VARC:=INTPART(VARB*100)/100;
买点3:=IF(VAR19<=VAR1 AND VAR19<=VAR2 AND VAR19<=VAR3 AND VAR1A>=VAR1 AND VAR1A>=VARC AND VAR15>0 AND VAR18>0,0.5,0);
VERLINE(买点3>0 OR 买点1>0 OR 买点2>0, 4),Color0000FF;
DRAWICON(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),L*0.99,7);
DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),H*1.018,8);
趋势线:MA(CLOSE,20),colorlired,LINETHICK1;
强:IF(C>趋势线,趋势线,DRAWNULL),colorred,LINETHICK2;
弱:IF(C<趋势线,趋势线,DRAWNULL),colorgreen,LINETHICK2;
F1:=ZIG(3,15);
VERTLINE(F1<REF(F1,1),2),coloraa8800;
b:=TROUGHBARS(2,5,1)=0;
DRAWNUMBER(b,L*0.986,TOSTRING(LOW,2)),colormagenta;//画数字
b2:=TROUGHBARS(2,5,1)=1;
DRAWNUMBER(b2,L*1.016,TOSTRING(LOW,2));//画数字
AA:=ZIG(3,2);
DRAWNUMBER(AA=HHV(C,10),H*0.96,H),colorligreen;
DRAWNUMBER(AA=LLV(C,10),L*0.93,L),COLOR00EEFF;
BB:=ZIG(3,5);
DRAWNUMBER(BB=HHV(C,10),H*1.025,H),colorcyan;


上一篇:同花顺精选下载组合公式26个

下一篇:同花顺精选下载组合公式15个