MACD指标
DIFF : EMA(CLOSE,SHORT) — EMA(CLOSE,LONG);
DEA : EMA(DIFF,M);
MACD : 2*(DIFF—DEA);
Zero : 0;
KDJ指标
RSV=(CLOSE—LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
a=SMA(RSV,M1,1);
b=SMA(a,M2,1);
e=3*a—2*b;
K:a;
D:b;
J:e;
1 / 85
精准买卖
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)—EMA(V1,34);
V3:=EMA(V2,5); V4:=2*(V2-V3)*5。5;
主力撤: IF(V4〈=0,V4,0),colorblue;
主力进: IF(V4>=0,V4,0),COLORFF00FF;
V5:=(HHV(INDEXH,8)—INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5—2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)—LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9—VA)/2;
2 / 85
大盘资金进场:IF(VB>=0,VB,0),colorred;
大盘资金撤走:IF(VB〈=0,VB,0),colorgreen;
V11:=3*SMA((C—LLV(L,55))/(HHV(H,55)—LLV(L,55))*100,5,1)—2*SMA(SMA((C—LLV(L,55))/(HHV(H,55)—LLV(L,55))*100,5,1),3,1);
趋势线: EMA(V11,3);
V12:=(趋势线—REF(趋势线,1))/REF(趋势线,1)*100;
准备现金: STICKLINE(趋势线<=13,0,20,5,0),COLORCC9900;
AA:=(趋势线<=13) AND FILTER((趋势线〈=13),15);
DRAWTEXT (AA,30,'准备现金'),COLORCC9900;
买入股票: STICKLINE(趋势线〈=13 AND V12>13,0,50,5,0),COLOR0099FF;
BB:= (趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10) ;
DRAWTEXT (BB,60,’买入股票’),COLOR0099FF;
卖临界: STICKLINE(趋势线>90 AND 趋势线〉REF(趋势线,1),100,95,15,1),COLORFFFF00;
3 / 85
见顶清仓:FILTER(趋势线>90 AND 趋势线〈REF(趋势线,1) AND 主力进〈REF(主力进,1),8);
DRAWTEXT( 见顶清仓,90,’逃顶’),coloryellow;
CC:=(趋势线>=90 AND V12) AND FILTER((趋势线〉=90 AND V12),10);
STICKLINE(大盘资金进场 AND 趋势线〈13,0,30,10,0),colorred;
STICKLINE(大盘资金撤走 AND 趋势线〉90,0,30,10,0),colorgreen;
STICKLINE(主力进 AND 趋势线<13,0,40,10,0),COLORFF00FF;
STICKLINE(主力撤 AND 趋势线〉90,0,40,10,0),colorblue;
短线窥测
VAR1:=(CLOSE+HIGH+LOW)/3;
VAR2:=EMA(VAR1,10);
VAR3:=REF(VAR2,1);
绿探底震仓:IF(VAR2,10,DRAWNULL),colorgreen,LINETHICK9;
红买: IF(VAR2〉VAR3,10,DRAWNULL), colorred,LINETHICK9;
4 / 85
蓝卖: IF(VAR2〈VAR3,10,DRAWNULL),COLORFFFF00,LINETHICK9;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
上穿买:SMA(RSV,3,1),colorred;
下穿卖:SMA(上穿买,3,1),COLORFFFF00;
缠背驰
var1:=MA(C,p1)—MA(C,P2);
IF((var1>=0),var1,0),STICK,colorred;
IF((var1<0),var1,0),STICK,colorgreen;
正:=IF((var1〉=0),var1,0),colorred;
负:=IF((var1〈0),var1,0),colorgreen;
zheng:=0;
fu:=0;
var2:=0;
5 / 85
i:=0;
IF (var1>0) THEN BEGIN
var2:=var1;
WHILE (var2〉0) DO BEGINzheng:=zheng+var2;
i:=i+1;
var2:=REF(var1,i);
IF (i〉P3) THEN BREAK;
END
END
ELSE
BEGIN
var2:=var1;
6 / 85
WHILE (var2<0) DO
BEGIN
fu:=fu+var2;
i:=i+1;
var2:=REF(var1,i);
IF (i>P3) THEN BREAK;
END
END
{涨势面积和:zheng;}
涨势平均力度:zheng*p4/i,coloryellow;
{跌势面积和:fu;}
跌势平均力度:fu*p4/i,colorwhite;
中轴:0;
7 / 85
指点未来
VAR1:=((CLOSE - LLV(LOW,15))/(HHV(HIGH,15) - LLV(LOW,15)))*(100);
VAR2:=REVERSE(VAR1);
VAR3:=SMA(VAR1,5,1);
K:=SMA(VAR3,3,1);
D:=SMA(K,3,1);
85,STICK,Linethick7,ColorFF0000;
DRAWTEXT(CROSS(K,D) AND (D 〈 18),15,’买'),Color00FF00;
DRAWTEXT(CROSS(D,K) AND (D 〉 75),85,'卖’),ColorFFFFFF;
STICKLINE((K >= D),K,D,6,0),Color0000A8;
STICKLINE((K 〉= D),K,D,5,0),Color0000C0;
STICKLINE((K 〉= D),K,D,4,0),Color0000E0;
STICKLINE((K 〉= D),K,D,3,0),Color0000F0;
8 / 85
STICKLINE((K 〉= D),K,D,2,0),Color0000D0;
STICKLINE((K 〉= D),K,D,1,0),Color8080FF;
STICKLINE((K 〈= D),K,D,6,0),Color008800;
STICKLINE((K 〈= D),K,D,5,0),Color009900;
STICKLINE((K 〈= D),K,D,4,0),Color00AA00;
STICKLINE((K 〈= D),K,D,3,0),Color00BB00;
STICKLINE((K <= D),K,D,2,0),Color00CC00;
STICKLINE((K <= D),K,D,1,0),Color00DD00;
见好就收波段操作
input:N(1,110,15);
生命线:98,linethick1,coloryellow;
生命禁区:95,linethick1,colorred;
股价泥潭:20,linethick1,colorblue;
9 / 85
生死线:50,linethick2,colorwhite;
C0:=(H+L+C)/3;
a1:=HHV(C0,n);
a2:=LLV(C0,n);
a3:=a1—a2;
a4:=EMA((C0—a2)/a3,2)*100;
b1:=HHV(C0,4*n);
b2:=LLV(C0,4*n);
b3:=b1—b2;
b4:=EMA((C0—b2)/b3,2)*100;
C1:=HHV(C0,16*n);C2:=LLV(C0,16*n);C3:=C1-C2;
C4:=EMA((C0—C2)/C3,2)*100;
短期:a4,colorgreen,linethick1;
10 / 85
中期:b4,coloryellow,linethick2;
长期:C4,colorred,linethick3;
DRAWICON(CROSS(生命禁区,短期) AND REF(短期,1)>短期,短期*1。1,11);
DRAWTEXT(CROSS(生命禁区,短期) AND REF(短期,1)〉短期,短期*1.1,’←卖’), colorcyan;
DRAWICON(CROSS(生命线,短期) AND REF(短期,1)〉短期,短期*1.2,12);
DRAWTEXT(CROSS(生命线,短期) AND REF(短期,1)>短期,短期*1。2,’←卖'), colorcyan;
DRAWTEXT(CROSS(短期,生命禁区),85,’警惕!! '),colorwhite;
DRAWTEXT(CROSS(中期,生命禁区),95,'减磅’),ColorFF6800;
DRAWTEXT(CROSS(长期,生命禁区),100,’出局'),colormagenta;
DRAWICON(CROSS(短期,生命禁区),85,4);
DRAWICON(CROSS(中期,生命禁区),95,8);
DRAWICON(CROSS(长期,生命禁区),100,3);
11 / 85
———--——-—-—----—-—-—--————---—--————-———--—-—--—--—-—-———--——---—-———-————
吸筹快慢
N:=9;M1:=3;M2:=3;P:=9;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)—LLV(LOW,N))*100;
K:=SMA(RSV,M1,1),colorred,LINETHICK2;
D:=SMA(K,M2,1),COLOR00FF00;
JJ:=P*(3*D—2*K),COLOR00FF00;
J:=((3 * K) - (2 * D));
MAIRU:= CROSS(K,D) AND K<20;
MAICHU:= CROSS(D,K) AND D>80;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW—VAR2),3,1)/SMA(MAX(LOW—VAR2,0),3,1)*100;
12 / 85
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(MA(CLOSE,58),1,0);
VAR8:=EMA(IF(LOW〈=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8〉100,100,VAR8);
吸筹:STICKLINE(VAR9>-120,0,VAR9,6,1),COLORF00FF0;
快线:(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)—LLV(LOW,N))*100,COLORFF937F;
慢线:SMA(快线,M1,1),colorred,LINETHICK2;
空:SMA(慢线,M2,1),COLOR00FF00;
牛股:IF(BARSLAST(CROSS(慢线,空))
STICKLINE(牛股,0,90,6,1),LINETHICK4,STICK,COLORFF937F;
13 / 85
BB:=IF(BARSLAST(CROSS(慢线,快线))〉=3 AND CROSS(快线,慢线) AND 慢线〈30,20,0);
买:STICKLINE(BB,0,20,7,1),coloryellow;
AA:=IF(BARSLAST(CROSS(快线,慢线))>=4 AND CROSS(慢线,快线) AND 快线〉50,20,0);
卖:STICKLINE(AA,80,100,7,1),COLOR00FF00;
DRAWTEXT(CROSS(快线,慢线),快线,'始');
DRAWTEXT(CROSS(慢线,快线),慢线,’终’);
同花顺逃顶王
VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
阶段卖出: 3.2,COLORC6C600;
3。5,COLOR0088FF;
清仓卖出: 3.5,COLORFF75FF;
14 / 85
动力线:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);
STICKLINE(动力线>REF(动力线,1) ,动力线 ,REF(动力线,1),3 ,1),colorred;
STICKLINE(动力线〈=REF(动力线,1) ,动力线 ,REF(动力线,1),3 ,1),COLOR00FF00;
加速度:=(动力线—REF(动力线,1))*5;
底部:0.2,COLOR70DB93;
关注:0.5,coloryellow;
DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0。02 ,1);
DRAWICON( FILTER(CROSS(清仓卖出,动力线),20),动力线+0。02,2);
DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,1);
DRAWICON( FILTER(CROSS(阶段卖出,动力线),20),动力线+0。02,2);
数值:动力线,COLORA8A8A8;
速度:加速度,colorred;
买卖点雷达
15 / 85
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
AR:=SUM(HIGH—OPEN,26)/SUM(OPEN-LOW,26)*100;
卖点雷达:=CROSS(85,RSI1)*30,COLOR00FF00,LINETHICK2;
DRAWTEXT(CROSS(85,RSI1),20,'顶’),COLOR00FF00;
STICKLINE(卖点雷达,0,20,3,0),COLOR00FF00;
VARB:=SMA(MAX(CLOSE—LC,0),7,1)/SMA(ABS(CLOSE—LC),7,1)*100;
VARC:=SMA(MAX(CLOSE—LC,0),13,1)/SMA(ABS(CLOSE—LC),13,1)*100;
VARD:=BARSCOUNT(CLOSE);
买点雷达:(VARB〈 20 AND VARC< 25 AND VARD〉 50 AND AR<70)*30,LINETHICK2,COLOR0078FF;
BT1:=CROSS(RSI1,25);
DRAWTEXT(BT1,-80,'底'),COLOR0000FF;
STICKLINE(BT1,—100,—80,3,0),COLOR0000FF;
16 / 85
主力:EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5,LINETHICK1,COLOR0000FF;
散户:EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5,LINETHICK2,COLORC87800;
BT2:=CROSS(主力,散户) AND 主力<-10;
DRAWICON(CROSS(RSI1,25),主力,26);
DRAWICON(CROSS(主力,散户) AND 主力<—10,主力,23);
BT:=FILTER(COUNT(BT1 OR BT2,3)>=2,3);
STICKLINE(BT,0,50,4,1),COLOR0000FF;
DRAWTEXT(BT,50,’金底’),COLOR0000FF;
STICKLINE(BT2,0,20,3,0),COLORFF00FF;
DRAWTEXT(BT2,20,’升'),COLORFF00FF;
底红顶绿
LC:=REF(CLOSE,1);
17 / 85
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW — REF(CLOSE,1)))),10);
HD:=(HIGH — REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD > 0) AND (HD 〉 LD)),HD,0),10);
DMM:=SUM(IF(((LD 〉 0) AND (LD 〉 HD)),LD,0),10);
PDI:=((DMP * 100) / TR);
MDI:=((DMM * 100) / TR);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
0,COLORFF00FF;
18 / 85
WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
NEWVOL:=(RSI5 — WR10);
阶段底部:=(AV + NEWVOL);
STICKLINE((阶段底部 〉= 0),0,阶段底部,0。3,1),LINETHICK2,COLORCC6600;
STICKLINE((阶段底部 < 0),0,阶段底部,0.8,1),LINETHICK6,colorred;
趋势线:LLV(阶段底部,1),COLORFFFFFF;
STICKLINE((趋势线 〉230 ),250,趋势线,0。8,1),LINETHICK6,colorgreen;
买点:IF((阶段底部 < 0),1,0);
卖点:IF((趋势线 >230),1,0);
230,COLORFFFFFF;
突破信号
N:=19;
VAR1:=HHV(HIGH,N);
19 / 85
VAR2:=LLV(LOW,N);
阻力线:EMA((CLOSE-VAR2)/(VAR1-VAR2),21)—0。5,COLORF0F000,LINETHICK2;
操作线:EMA((CLOSE—VAR2)/(VAR1—VAR2),5)-0。5,colorred,LINETHICK2;
DRAWTEXT(CROSS(操作线,阻力线) AND 阻力线〈0.1,阻力线,’突破'),coloryellow;
DRAWTEXT(CROSS(阻力线,操作线) AND 阻力线〉0.25,阻力线,'破位’),colorgreen;
红绿棒:(操作线—阻力线),COLORSTICK;
买卖机会
VAR1:=EMA(C,2);
VAR2:=EMA(SLOPE(C,21)*20+C,42);
VAR3:=CROSS(VAR1,VAR2);
VAR4:=CROSS(VAR2,VAR1);
VAR5:MA(C,20),colorgreen,LINETHICK1;
20 / 85
CAR6:MA(C,10),COLORFA05FF,LINETHICK2;
DRAWTEXT(VAR3,LOW*0。95,’买’),coloryellow,LINETHICK3;
DRAWTEXT(VAR4,HIGH*1.028,'卖’),colorgreen,LINETHICK3;
STICKLINE(VAR1=VAR2,LOW,HIGH,0,0),colorred;
STICKLINE(VAR1〉=VAR2,CLOSE,OPEN,2,0),colorred;
STICKLINE(VAR1〉=VAR2,CLOSE,OPEN,2,0),colorred;
STICKLINE(VAR1〉=VAR2,CLOSE,OPEN,2,0),colorred;
STICKLINE(VAR1>=VAR2,CLOSE,OPEN,2,0),colorred;
STICKLINE(VAR1〈VAR2,CLOSE,OPEN,2,0),colorgreen;
STICKLINE(VAR1 21 / 85 买卖奇准3 来势线: EMA(CLOSE,7)—EMA(CLOSE,21),coloryellow; 福星: EMA(来势线,7), COLORSTICK,colorred; VAR1:=CLOSE/REF(LLV(LOW,35),5)〈 1; 决策: IF(VAR1,0.5,0), STICK,coloryellow; 必买: IF(TROUGHBARS(3,15,1)=0 AND HIGH〉LOW+0。01,1,-1),colorred ,LINETHICK1 ; 必卖: IF(PEAKBARS(3,15,1)=1,1,2),colorgreen,LINETHICK1; 趋势线: (EMA(WINNER(CLOSE),7)-EMA(WINNER(CLOSE),35))*5,colorwhite; 逃顶线: EMA(CLOSE/REF(HHV(CLOSE,7),50),1),colorcyan ,LINETHICK1 ; 买卖奇准A6 买卖奇准先锋:CLOSE,colorred; VAR1:=SUM(MAX(MAX(HIGH—LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25); 22 / 85 绝对值 昨天收盘价日均线 VAR2:=HIGH—REF(HIGH,1); VAR3:=REF(LOW,1)-LOW; VAR4:=SUM(IF(VAR2>0 AND VAR2〉VAR3,VAR2,0),25); VAR5:=SUM(IF(VAR3〉0 AND VAR3〉VAR2,VAR3,0),25); VAR6:=VAR4*100/VAR1; VAR7:=VAR5*100/VAR1; VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15); VAR9:=(VAR8+REF(VAR8,15))/2; A:=(VAR7〉VAR6 AND VAR7〉25 AND VAR6<25); B:=ZIG(3,51/5)*100,colorwhite; G:=MA(B,2),coloryellow; D:=CROSS(B,G)*1000,colorred; 23 / 85 W:=CROSS(G,B)*1000,colorblue; E:=REF(INDEXC,1); F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1); VAR10:=F AND F〈8; VAR11:=(CLOSE—LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; VAR12:=SMA(VAR11,3,1); VAR13:=SMA(VAR12,3,1); VAR14:=VAR13 AND VAR13〈20; MM:=A AND D AND VAR10 AND VAR14 ; ABF11:=PEAK(3,4,1)*0.9; Ba1:=ZIG(3,4)*100; Ga1:=MA(Ba1,2); Da1:=CROSS(Ba1,Ga1)*1000,colorred; 24 / 85 Wa1:=CROSS(Ga1,Ba1)*1000,colorblue; /*DRAWTEXT(Wa1=1000,B*0.97,’卖★' ),coloryellow;*/ /*DRAWTEXT(Da1=1000 AND REF(CLOSE,1)A30:=MA(C,30); angleA30:=ATAN((A30/REF(A30,1)—1)*100)*57。3; angle30:=angleA30>40 OR angleA30〈—48; A10:=MA(C,10); angleA10:=ATAN((A10/REF(A10,1)-1)*100)*57.3; angle10:=angleA10〉20 OR angleA10<-25 AND CLOSE>MA(CLOSE,20) A3010:=angle30 OR angle10; aazt:=COUNT(CLOSE>REF(CLOSE,1)*1.097 ,20)〉0; DRAWGBK( W=1000 ),colorcyan; DRAWGBK( D=1000 ),color0099FF; 25 / 85 ; DRAWTEXT(W=1000 ,买卖奇准先锋,’--卖' ),colorcyan; DRAWTEXT(D=1000 ,买卖奇准先锋,’--买'),coloryellow; DRAWGBK( W=1000 AND aazt),colorgreen; DRAWGBK( D=1000 AND aazt),colorred; DRAWTEXT(W=1000 AND aazt ,买卖奇准先锋,'—-卖全仓' ),colorgreen; DRAWTEXT(D=1000 AND aazt ,买卖奇准先锋,'--买全仓'),colorred; KU1:=IF(HIGH=HHV(HIGH,3),1,0); KD1:=IF(LOW=LLV(LOW,3),1,0); UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0,REF(HIGH,2),REF(HIGH,2+BARSLAST(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0))); DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0,REF(LOW,2),REF(LOW,2+BARSLAST(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0))); 26 / 85 HV:=H>UL AND H〉REF(H,1) ; LV:=L DP:=BARSLAST(LV); IP:=IF(GP=0,DP,GP)〉3; HV1:=HV AND IP AND H>=HHV(H,BARSLAST(LV)); LV1:=LV AND IP AND L〈=LLV(L,BARSLAST(HV)); DRAWLINE(LV1,LOW,HV1, HIGH,0),coloryellow,LINETHICK2; DRAWLINE(HV1,HIGH,LV1, LOW,0),colormagenta,LINETHICK2; -—-—--—-—-———---——-—-—-——----—--—--—-——-—--—-—-—--———--——-—---—-————------—--— ///加入中枢判定 //简化版 N1:=10;N2:=10;DISP:=2;K:=1; 27 / 85 P1:=PEAK(1,K*N1,1); P2:=PEAK(1,K*N1,2); WP1:=PEAKBARS(1,K*N1,1); WP2:=PEAKBARS(1,K*N1,2); T1:=TROUGH(2,K*N2,1); T2:=TROUGH(2,K*N2,2); WT1:=TROUGHBARS(2,K*N2,1); WT2:=TROUGHBARS(2,K*N2,2); TJ1:=P1〉T1 AND P2〉T2 ; ZD:=MAX(T1,T2); ZG:=MIN(P1,P2); LL:=MIN(T1,T2); HH:=MAX(P1,P2); 28 / 85 TJ2:=FILTER(ZG〉ZD,2); TJ3:=ZG=REF(ZG,BARSLAST(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2)); TJ4:=TJ1 AND TJ2 AND NOT(TJ3); TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1))); TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1))); TJ7:=ZG〉REF(ZG,REF(BARSLAST(TJ4),1)) AND ZD〈REF(ZD,REF(BARSLAST(TJ4),1)); TJ8:=TJ4 AND NOT(TJ5 OR TJ6 OR TJ7); ZSD:=IF(TJ8,ZD,REF(ZD,1));//,coloryellow; ZSG:=IF(TJ8,ZG,REF(ZG,1));//,colormagenta; ZSH:=IF(TJ8,HH,REF(HH,1));//,colorblue; ZSL:=IF(TJ8,LL,REF(LL,1));//,colorgreen; STICKLINE(TJ8,ZSH,ZSL,0,-1),colormagenta; 29 / 85 STICKLINE(TJ8,ZSD,ZSG,IF(DISP=1,3,0),1),colormagenta; DRAWTEXT(DISP=2,ZSH,’’),colorwhite; //中枢高 中枢高:ZSG,colormagenta; POLYLINE(DISP=2,REF(ZSG,BARSLAST(TJ8))),CIRCLEDOT,colormagenta; //中枢低: 中枢低:ZSD,coloryellow; POLYLINE(DISP=2,REF(ZSD,BARSLAST(TJ8))),CIRCLEDOT,coloryellow; //中枢最高: 中枢最高:ZSH,colorred; POLYLINE(DISP=2,REF(ZSH,BARSLAST(TJ8))),POINTDOT,colorred; //中枢最低: 中枢最低:ZSL,colorgreen; 30 / 85 POLYLINE(DISP=2,REF(ZSL,BARSLAST(TJ8))),POINTDOT,colorgreen; //趋势高: //QSGD1:POLYLINE(DISP=3,ZIG(1,K*N1)),colorblue; //趋势低: //QSDD1:POLYLINE(DISP=3,ZIG(2,K*N2)),colorblue; MA5:MA(CLOSE,5),COLORFF00FF,Linethick1; //COLORFF00FF,LINETHICK2; 命真好:=MA5〉REF(MA5,1); 命真坏:=MA5〈REF(MA5,1); //判定: PARTLINE(MA5,命真好,coloryellow,命真坏, colorblue,MA5,COLORFF00FF),linethick3; //F1:IF(MA5———---——-—-——--—-—--—-—--—------——-——-———-——--—— 31 / 85 B:=ZIG(3,5),colorwhite; G:=MA(B,2),coloryellow; D:=CROSS(B,G)*1000,colorred; W:=CROSS(G,B)*1000,colorblue; aazt:=COUNT(CLOSE>REF(CLOSE,1)*1。097 ,20)>0; K:=BARSLAST(W=1000 AND aazt ); 买卖奇准先锋:B,colorred; 昨开盘价和收盘价自动划横线 STICKLINE(1,REF(O,1),REF(O,1),3,0); STICKLINE(1,REF(C,1),REF(C,1),3,0); 均线3 /*DB2:=ZIG(0,N2,1); G2:=MA(B2,2); 32 / 85 D2:=CROSS(B2,G2)*1000; W2:=CROSS(G2,B2)*1000; 线段5F:B2,colorblue; /*DRAWTEXT(W2=1000 ,REF(线段5F,1),’--—--—-——----—-’ colorcyan;DRAWTEXT ( D2=1000 , REF( 线 5F,1),’-———-—---—--—--'),coloryellow;*/ B3:=ZIG(0,N3,1); G3:=MA(B3,2); D3:=CROSS(B3,G3)*1000; W3:=CROSS(G3,B3)*1000; 线段30F:B3,colorwhite; /*DRAWTEXT(W3=1000 ,线段30F,’——卖' ),colorcyan;*/ /*DRAWTEXT(D3=1000 ,线段30F,'-—买’),coloryellow;*/ B6:=ZIG(0,N4,1); 33 / 85 ),段 G6:=MA(B6,2); D6:=CROSS(B6,G6)*1000; W6:=CROSS(G6,B6)*1000; 线段1F:B6,colorgreen; /*DRAWTEXT(W6=1000 ,线段1F,'--卖’ ),colorcyan;*/ /*DRAWTEXT(D6=1000 ,线段1F,’-—买’),coloryellow;*/ 次日涨停 W1:=C=HHV(C,20); W2:=BARSLAST(W1); W3:=IF(W2〉0,REF(C,W2),REF(C,W2)); W4:=CROSS(C,REF(W3,1)); W4 AND COUNT(W4,5)=1; 黄转紫选股 34 / 85 DIFF:=EMA(DCLOSE,12)—EMA(DCLOSE,26); DEA:=EMA(DIFF,9); MACD:=(DIFF—DEA)*2; 紫柱:MACD〈0 AND MACD>REF(MACD,1) AND REF(MACD,1)低位金叉选股 DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26); DEA:=EMA(DIFF,9); MACD:=(DIFF—DEA)*2; 低位金叉:CROSS(DIFF,DEA) AND DIFF〈—0.1; 二次金叉选股 DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26); DEA:=EMA(DIFF,9); MACD:=(DIFF—DEA)*2; 35 / 85 JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0)); 二次金叉:CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1; 绝地反弹 (1) VAR1:=REF(LOW,1); VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),13,1)*100; VAR3:=EMA(IF(CLOSE*1。2,VAR2*13,VAR2/13),13); VAR4:=LLV(LOW,34); VAR5:=HHV(VAR3,34); VAR6:=IF(LLV(LOW,55),1,0); VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6; XL1:=MA(LOW,2)*0。96; 36 / 85 XL2:=MA(LOW,26)*0。85; XL3:=REF(XL1,1)〈XL2 AND REF(XL1,1) XG:启动〉25; (2) BACKSET( (REF(CLOSE,1)〈REF(OPEN,1) AND CLOSE>OPEN AND ABS(CLOSE—REF(CLOSE,1))/CLOSE<0.002),2); A2:=FILTER(A1<=V3,10); ND CAPITAL<300000000 REF(V,1) = LLV(V,4) AND V 〉=REF(V,1) HHV(V,3)=REF(V,1) AND HHV(V,5)=REF(V,1) AND HHV(V,21)=REF(V,1) AND V 〉=REF(V,1) 01〉0 AND T02〉0; 37 / 85 1。三线粘合 M:=1; M5:=MA(CLOSE,5); M10:=MA(CLOSE,10); M20:=MA(CLOSE,20); K1:=MAX(MAX(M5,M10),MAX(M10,M20)); K2:=MIN(MIN(M5,M10),MIN(M10,M20)); A:=MAX(M5,MAX(M10,M20))/MIN(M5,MIN(M10,M20))〈1+0.03*M; A1:=(K1/K2-1)<0。005; A2:=(K1/K2—1)<0。005; A3:=V>REF(V,1)*1.5 AND V〉MA(V,5); XG:A AND A1 AND A2 AND A3 AND C>O AND V> REF(V,1) AND CAPITAL<=300000000; 2.三条线粘合 38 / 85 N1:=5;N2:=10;N3:=20;M:=1; MA1:=MA(C,N1);MA2:=MA(C,N2);MA3:=MA(C,N3); A3:=V〉REF(V,1)*1.5 AND V〉MA(V,5); MAX(MA1,MAX(MA2,MA3))/MIN(MA1,MIN(MA2,MA3))<1+0.01*M AND C〉O AND V> REF(V,1) AND FINANCE(7)〈=300000000 AND A3 AND CAPITAL〈=300000000; 3。均线粘合 M:=1; M5:=MA(CLOSE,5); M10:=MA(CLOSE,10); M20:=MA(CLOSE,20); K1:=MAX(MAX(M5,M10),MAX(M10,M20)); K2:=MIN(MIN(M5,M10),MIN(M10,M20)); 39 / 85 A:=MAX(M5,MAX(M10,M20))/MIN(M5,MIN(M10,M20))〈1+0.01*M; A1:=(K1/K2—1)<0.005; A2:=(K1/K2-1)〈0.005; A3:=V〉REF(V,1)*1.5 AND V>MA(V,5); XG:A AND A1 AND A2 AND A3 ; 3. 金叉选股指标 快线:=EMA(EMA(EMA(EMA(CLOSE,2),2),2),2); 慢线:=EMA(REF(快线,1),2); A3:=V>REF(V,1)*1.5 AND V>MA(V,5); XG:CROSS(快线,慢线) AND C>O AND V〉=MA(V,21) AND V〉 REF(V,1) AND CAPITAL〈=300000000 ; 4.角度 MA5:=MA(C,5); 40 / 85 MA10:=MA(C,10); MA20:=MA(C,20); V0:CROSS(MA5,MA10) AND CROSS(MA10,MA20) AND CROSS(MA5,MA20) ; IF(角度MA3>45 AND 角度MA5>40 AND 角度MA10>10 AND 角度MA20>20 AND MA(C,135)>REF(MA(C,135),1), 1,0),COLOR00FF00 1.聚宝盆 DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG); DEA:=EMA(DIFF,M); MACD2:=2*(DIFF-DEA); HHV(MACD2,4)〈0 AND MACD2>REF(MACD2,1) AND REF(MACD2,1)(MACD2,3); 41 / 85 2。强势股 {SJXXG四均线选股} MA3:=MA(C,3); MA5:=MA(C,5); MA10:=MA(C,10); MA20:=MA(C,20); V0:=MA(C,3)〉REF(MA(C,3),1) AND MA(C,5)〉REF(MA(C,5),1) AND C>MA(C,3) AND MA(C,3)〉MA(C,5) ; {均线C,MA3,MA5多头排列并向上;} 角度MA3:=ATAN((MA3/REF(MA3,1)—1)*100)*180/3.1416; 角度MA5:=ATAN((MA5/REF(MA5,1)—1)*100)*180/3。1416; 角度MA10:=ATAN((MA10/REF(MA10,1)—1)*100)*180/3.1416; 角度MA20:=ATAN((MA20/REF(MA20,1)—1)*100)*180/3.1416; 选股MA20:IF(角度MA3>45 AND 角度MA5〉45 AND 角度MA10>60 AND 42 / 85 角度MA20>45 AND MA(C,250)〉REF(MA(C,250),1), 1,0),COLOR00FF00; {设计思路: 1.3日均线角度大于45度; 2:5日均线角度大于45度; 3:10日均线角度大于60度; 4.20日均线角度大于45度; 5.MA250向上;}; 3。紫色冲关 (1)。 CROSS( CLOSE,MA(C,30)) AND CLOSE>MA(C,22) AND CLOSE>MA(C,30)AND COUNT(MA(CLOSE,13)〉REF(MA(CLOSE,13),1),1) 43 / 85 AND COUNT(MA(CLOSE,8)〉REF(MA(CLOSE,8),1),1) AND COUNT(MA(CLOSE,20)>REF(MA(CLOSE,20),1),1) AND CLOSE/OPEN>1。015 AND DYNAINFO(37)〉0。2% COLORLIBLUE; (2)。 QSXS:=MA(CLOSE,8)>REF(MA(CLOSE,8),1) AND MA(CLOSE,3)〉REF(MA(CLOSE,3),1) AND MA(CLOSE,5)〉REF(MA(CLOSE,5),1); DXJC:=CROSS(CLOSE,MA(C,21)) AND CLOSE>MA(C,13) AND CLOSE/OPEN>1.015; HSL:=VOL/CAPITAL*100; 选股:QSXS AND DXJC AND HSL>2; (3). {SJXXG四均线选股} MA3:=MA(C,1); 44 / 85 MA5:=MA(C,3); MA10:=MA(C,5); MA20:=MA(C,10); V0:=MA(C,1)>REF(MA(C,1),0。5) AND MA(C,3)>REF(MA(C,3),0。5) AND C>MA(C,1) AND MA(C,1)>MA(C,1) ; {均线C,MA3,MA5,MA10,MA20多头排列并向上;} 角度MA3:=ATAN((MA3/REF(MA3,1)—1)*100)*180/3.1416; 角度MA5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416; 角度MA10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3。1416; 角度MA20:=ATAN((MA20/REF(MA20,1)-1)*100)*180/3.1416; 选股MA20:IF(角度MA3〉50 AND 角度MA5〉40 AND 角度MA10〉30 AND 角度MA20〉20 AND MA(C,250)〉REF(MA(C,250),1), 1,0),COLOR00FF00; 45 / 85 {设计思路: 1。1日均线角度大于40度; 2:3日均线角度大于40度; 3:5日均线角度大于50度; 4。10日均线角度大于40度; 5.MA135向上;}; (4)。 {SJXXG四均线选股} MA3:=MA(C,5); MA5:=MA(C,10); MA10:=MA(C,15); MA20:=MA(C,20); V0:=MA(C,5)>REF(MA(C,10),1) AND MA(C,10)〉REF(MA(C,15),1) 46 / 85 AND MA(C,15)>MA(C,20) ; {均线C,MA3,MA5多头排列并向上;} 角度MA3:=ATAN((MA3/REF(MA3,1)-1)*100)*180/3.1416; 角度MA5:=ATAN((MA5/REF(MA5,1)—1)*100)*180/3。1416; 角度MA10:=ATAN((MA10/REF(MA3,1)—1)*100)*180/3.1416; 角度MA20:=ATAN((MA20/REF(MA5,1)—1)*100)*180/3.1416; 选股MA20:IF(角度MA3〉42 AND 角度MA5>25 AND 角度MA10>15 AND 角度MA20〉10 AND MA(C,135)>REF(MA(C,135),1), 1,0),COLOR00FF00; {设计思路: 1.3日均线角度大于30度; 2:5日均线角度大于40度; 3:10日均线角度大于45度; 4.20日均线角度大于40度; 47 / 85 5.MA135向上;}; (5)。5日最底 V5:=LLV(V,5); QSXS:=MA(CLOSE,5)〉REF(MA(CLOSE,5),1) AND MA(CLOSE,8)>REF(MA(CLOSE,8),1) AND MA(CLOSE,21)>REF(MA(CLOSE,21),1); DXJC:=CROSS(CLOSE,MA(C,21)) AND CLOSE>MA(C,21) AND CLOSE/OPEN〉1.015; HSL:=VOL/CAPITAL*100; 选股:V5 AND QSXS AND DXJC AND HSL〉2; 1.。。。{蓄势待发} V0:=EMA(C,5); EMA10:=EMA(C,10); EMA20:=EMA(C,20); 48 / 85 EMA30:=EMA(C,30); EMA60:=EMA(C,60); M1:=1000*EMA10/EMA60<=1015 AND 1000*EMA10/EMA60>=975; M2:=1000*EMA20/EMA60<=1020 AND 1000*EMA20/EMA60〉=980; M3:=1000*EMA30/EMA60〈=1015 AND 1000*EMA30/EMA60〉=985; M4:=M1 AND M2 AND M3 AND CROSS(V0,EMA10); M5:=M1 AND M2 AND M3 AND CROSS(V0,EMA30); T1:=1000*EMA10/EMA30<=1010 AND 1000*EMA10/EMA30〉=990; T2:=1000*EMA20/EMA30<=1010 AND 1000*EMA20/EMA30〉=990; T3:=T1 AND T2 AND CROSS(V0,EMA10); T4:=T1 AND T2 AND CROSS(V0,EMA30); M4 OR M5 OR T3 OR T4; 2.短线之王 49 / 85 VAR1:=(-100)*(HHV(HIGH,3)—CLOSE)/(HHV(HIGH,3)-LLV(LOW,3)); CROSS(VAR1,-87) AND OPEN〈MA(CLOSE,5) AND CLOSE>=1.099*REF(CLOSE,1) AND INDEXC〉0.98*REF(INDEXC,1) AND CLOSE〈=1。47*LLV (CLOSE,58); 3.枪挑小梁王 W1:=C=HHV(C,20); W2:=BARSLAST(W1); W3:=IF(W2>0,REF(C,W2),REF(C,W2)); W4:=CROSS(C,REF(W3,1)); 枪挑小梁王:W4 AND COUNT(W4,5)=1; 4.短线之王 VAR1:=(—100)*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3)); CROSS(VAR1,—87) AND OPEN〈MA(CLOSE,5) AND CLOSE>=1.099*REF(CLOSE,1) AND INDEXC〉0.98*REF(INDEXC,1) AND CLOSE〈=1.47*LLV 50 / 85 (CLOSE,58); 5.财务突破选股 {财务突破选股公式—创幻闲云孤鹤-通信达专用} 年认同价:=MA(C,240); 价格中枢:=(SUM(年认同价,0)/(BARSSINCE(年认同价>0)+239)); 箱顶:=价格中枢*1.2; 箱底:=价格中枢*0。8; 毛利润率:=FINANCE(21)/FINANCE(20); 成长价值:=年认同价*(1+毛利润率); 收益价值:=年认同价+FINANCE(33); 回调认同:=EMA(EXPMA(C,20),13); 多头:=(回调认同>REF(回调认同,1))AND(成长价值〉REF(成长价值,1))AND(收益价值〉REF(收益价值,1))AND(DYNAINFO(7)>0); 回调条件:=COUNT(C〈回调认同,5)>=3; 51 / 85 回调突破:=(REF(C,1)<=REF(回调认同,1))AND(C〉回调认同)AND(回调条件)AND 多头; 成长条件:=COUNT(C<成长价值,5)〉=3; 成长突破:=(REF(C,1)<=REF(成长价值,1))AND(C>成长价值)AND(成长条件)AND 多头; 收益条件:=COUNT(C<收益价值,5)〉=3; 收益突破:=(REF(C,1)〈=REF(收益价值,1))AND(C>收益价值)AND(收益条件)AND 多头; 箱底条件:=COUNT(C〈箱底,5)>=3; 箱底突破:=(REF(C,1)〈=REF(箱底,1))AND(C〉箱底)AND(箱底条件)AND 多头; 价格条件:=COUNT(C〈价格中枢,5)〉=3; 价格突破:=(REF(C,1)〈=REF(价格中枢,1))AND(C>价格中枢)AND(价格条件)AND 多头; 箱顶条件:=COUNT(C〈箱顶,5)>=3; 箱顶突破:=(REF(C,1)<=REF(箱顶,1))AND(C>箱顶)AND(箱顶条件)AND 52 / 85 多头; 突破买点:(回调突破+成长突破+收益突破+箱底突破+价格突破+箱顶突破); 6。横盘是银 VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; VAR2:=SMA(VAR1,3,1); VAR3:=SMA(VAR2,3,1); VAR4:=EMA(CLOSE,12)-EMA(CLOSE,26); VAR5:=EMA(VAR4,9); VAR6:=2*(VAR4-VAR5); COUNT(CROSS(VAR2,VAR3),2)>=1 AND COUNT(CROSS(VAR6,0),5)>=1 AND MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,20) AND CLOSE>MA(CLOSE,5); {“短线是银\"的使用说明: 53 / 85 此组合选择比较简单,初学者易于掌握,短线有一定可操作性与准确性。但只适合于3天内的短线炒作,不能确定长期趋势。 选股设置: 2日内KD金叉,5日内MACD金叉,均线5日,10日,20日多头排列,收盘价涨过5日均线.}; 7。黑码起步选股1 VAR5:=EMA(SMA((CLOSE-LLV(LOW,100))/(HHV(HIGH,100)—LLV(LOW,100))*100,8,1),3); 选股:CROSS(VAR5,15) OR CROSS(VAR5,20) OR CROSS(VAR5,25); 8.起攀选股 {起攀选股} VAR6:=(2*C+H+L)/4; VAR7:=LLV(L,27); VAR8:=HHV(H,27); 攀登:=EMA((VAR6-VAR7)/(VAR8—VAR7)*100,13)—50; 54 / 85 金山:=EMA(0。618*REF(攀登,1)+0.382*攀登,3); 起攀:CROSS(攀登,金山) AND C/REF(C,1)>1.02; {根据起攀图指标改编,这是精简后的指标}; 9.中短波选股 {中短波选股} HZ:=EMA(CLOSE,13); 短波:=EMA(HZ,1); 中波:=EMA(HZ,26); 均线148天:=EMA(C,148); 成本:=SUM(AMOUNT,0)/SUM(VOL,0)/100; HZ2:=EMA(HZ,8); CROSS(短波,HZ2); {结合中短波主图使用}; 55 / 85 10。黑码摇篮之大 {黑码摇篮之大黑码} SS1:=(LOW+HIGH+CLOSE*2)/4; SS2:= MA(SS1,4); SS3:=HHV(SS2,10); SS4:=MA(SS3,3); SS5:=1.25*SS4-0.25*SS3; XKKJ:=IF(SS5〉SS3,SS3,SS5); FF1:=LLV(SS2,10); FF2:=MA(FF1,3); FF3:=1.25*FF2-0。25*FF1; DKKJ:=IF(FF3 56 / 85 ZDHM:=CROSS(C,DKKJ) AND CROSS(C,MA13) AND CROSS(C,XKKJ); ZHM:=CROSS(C,MA13) AND CROSS(C,XKKJ); 大黑码:ZDHM OR ZHM; 11。黑码摇篮之小 {黑码摇篮之小黑码} A:=(3*CLOSE+LOW+OPEN+HIGH)/6; D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6) +13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12) +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+ REF(A,20))/211; D2:=EMA(D1,2); D3:=EMA(D2,2); 57 / 85 K1:=EMA(D3,2); 小黑码:CROSS(D1,K1); 12.蓄势待发 {蓄势待发} V0:=EMA(C,5); EMA10:=EMA(C,10); EMA20:=EMA(C,20); EMA30:=EMA(C,30); EMA60:=EMA(C,60); M1:=1000*EMA10/EMA60〈=1015 AND 1000*EMA10/EMA60〉=975; M2:=1000*EMA20/EMA60〈=1020 AND 1000*EMA20/EMA60>=980; M3:=1000*EMA30/EMA60<=1015 AND 1000*EMA30/EMA60〉=985; M4:=M1 AND M2 AND M3 AND CROSS(V0,EMA10); 58 / 85 M5:=M1 AND M2 AND M3 AND CROSS(V0,EMA30); T1:=1000*EMA10/EMA30〈=1010 AND 1000*EMA10/EMA30>=990; T2:=1000*EMA20/EMA30〈=1010 AND 1000*EMA20/EMA30〉=990; T3:=T1 AND T2 AND CROSS(V0,EMA10); T4:=T1 AND T2 AND CROSS(V0,EMA30); M4 OR M5 OR T3 OR T4; 13.四线粘合 {四线粘合} V0:=EMA(C,5); V1:=EMA(C,10); V2:=EMA(C,15); V3:=EMA(C,30); V4:=EMA(C,60); 59 / 85 M1:=1000*V1/V4〈=1015 AND 1000*V1/V4>=975; M2:=1000*V2/V4<=1020 AND 1000*V2/V4〉=980; M3:=1000*V3/V4〈=1015 AND 1000*V3/V4〉=985; M4:=M1 AND M2 AND M3 AND CROSS(V0,V1); M5:=M1 AND M2 AND M3 AND CROSS(V0,V3); M4 OR M5; 14.拉升在即 {拉升在即} ABV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE〈REF(CLOSE,1),-VOL,0)),0)/25000,2); M1:=EMA(ABV,12); M2:=EMA(ABV,26); MTM:=CLOSE—REF(CLOSE,1); MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(ABS(MTM),6),6)); 60 / 85 MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(ABS(MTM),12),12)); MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(ABS(MTM),26),26)); A:=((VOL)/(CAPITAL))*(100); S:=((MA(A,30))/(MA(INDEXA,10)))*(MA(INDEXA,60)); Y:=((MA(A,120))/(MA(INDEXA,10)))*(MA(INDEXA,60)); X:=1; 拉升在即:S〈X AND Y 15。HMYZ黑码易找 VAR1:=MA(CLOSE,5); VAR2:=MA(CLOSE,10); VAR3:=MA(CLOSE,30); VAR4:=MA(CLOSE,60); 61 / 85 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); VARF:=(-100)*(HHV(CLOSE,5)-CLOSE)/(HHV(CLOSE,5)-LLV(LOW,5))+100; VAR10:=(-100)*(HHV(CLOSE,10)—CLOSE)/(HHV(CLOSE,10)-LLV(LOW,10))+100; 62 / 85 VAR11:=(—100)*(HHV(CLOSE,20)—CLOSE)/(HHV(CLOSE,20)-LLV(LOW,20))+100; VAR12:=(—100)*(HHV(CLOSE,30)—CLOSE)/(HHV(CLOSE,30)-LLV(LOW,30))+100; VAR13:=REF(VARE,1); VAR14:=VARE; VAR15:=VAR14—VAR13; VAR16:=REF(VARD,1); VAR17:=VARD; VAR18:=VAR17-VAR16; VAR19:=OPEN; VAR1A:=CLOSE; 黑码易找选股: VAR19<=VAR1 AND VAR19<=VAR2 AND VAR19<=VAR3 AND VAR1A〉=VAR1 AND VAR1A>=VARC AND VAR15>0 AND VAR18〉0; 16.黑码起步选股2 63 / 85 VAR5:=EMA(SMA((CLOSE—LLV(LOW,100))/(HHV(HIGH,100)—LLV(LOW,100))*100,8,1),3); 选股:CROSS(VAR5,30) OR CROSS(VAR5,35) OR CROSS(VAR5,40); 17。黑码起步选股1 VAR5:=EMA(SMA((CLOSE-LLV(LOW,100))/(HHV(HIGH,100)—LLV(LOW,100))*100,8,1),3); 选股:CROSS(VAR5,15) OR CROSS(VAR5,20) OR CROSS(VAR5,25); 二.主图指标 三.三线买卖 快线:EMA(EMA(EMA(EMA(CLOSE,2),2),2),2),LINETHICK2,COLOR0000FF; 慢线:EMA(REF(快线,1),2),LINETHICK2,COLOR00FFFF; 总趋势:EMA(EMA(EMA(EMA(EMA(CLOSE,55),2),2),2),2),LINETHICK2,COLORFF00FF; HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0; 64 / 85 AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1); QY:=BACKSET(AA,HIGHN+1); CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1); DRAWICON(CC,H*1.02,2); DDD:=BARSLAST(CC); GDTS:=IF(CC,CURRBARSCOUNT,0); DINGBU:=IF(DDD,REF(H,DDD),H);{顶部} DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS); DINGBU1:=REF(DINGBU,DDD+1); GDCS1:=CONST(DINGBUTS); DINGBUTS1:=REF(DINGBUTS,DDD+1); GDCS2:=CONST(DINGBUTS1); DINGBU2:=REF(DINGBU1,DDD+1); 65 / 85 MM:=IF(CURRBARSCOUNT〉GDCS2,0,1); 高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK2; DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2—1),1),COLOR0055FF,POINTDOT; DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW,POINTDOT; AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1); QY1:=BACKSET(AA1,LOWN+1); CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1); DRAWICON(CC1,L*0。98,1); DD1:=BARSLAST(CC1); DDTS:=IF(CC1,CURRBARSCOUNT,0); YDB:=IF(DD1,REF(L,DD1),L); DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS); 66 / 85 DDCS1:=CONST(DDTS1); ZDB:=REF(YDB,DD1+1); DDTS2:=REF(DDTS1,DD1+1); DDCS2:=CONST(DDTS2); 低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,LINETHICK2; ZGSTAR:=(高点压力+低点支撑)/2; ZGEND:=CONST((高点压力+低点支撑)/2); STARDAY:=IF(DDCS2〈GDCS2,DDCS2,GDCS2); 中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORFF55BB,LINETHICK2; DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGENTA,POINTDOT,; DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN,POINTDOT; 67 / 85 四。3线粘合 MA3:EMA(C,3),linethick2; MA5:EMA(C,5),linethick2; MA7:EMA(C,7),linethick2; MA14:EMA(C,14),linethick1,STICK; MA114:EMA (C,14),linethick2; DRAWICON (cross(MA3,MA7),L*0.985,1); 五。三线乾坤 快线:EMA(EMA(EMA(EMA(CLOSE,2),2),2),2),LINETHICK2,COLOR0000FF; 慢线:EMA(REF(快线,1),2),LINETHICK2,COLOR00FFFF; 总趋势:EMA(EMA(EMA(EMA(EMA(CLOSE,55),2),2),2),2),LINETHICK2,COLORFF00FF; A1:=REF(H,8)=HHV(H,2*8+1); B1:=FILTER(A1,8); C1:=BACKSET(B1,8+1); D1:=FILTER(C1,8);{高点} R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1); S11:=R11〉REF(R11,1); 68 / 85 DRAWLINE(D1,H,S11,H,1),COLORBLUE; A2:=REF(L,8)=LLV(L,2*8+1); B2:=FILTER(A2,8); C2:=BACKSET(B2,8+1); D2:=FILTER(C2,8);{低点} T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1); U11:=T11>REF(T11,1); DRAWLINE(D2,L,U11,L,1),COLORBLUE; M:=INTPART(3*8/5); A12:=REF(H,M)=HHV(H,2*M+1); B12:=FILTER(A12,M); C12:=BACKSET(B12,M+1); D12:=FILTER(C12,M);{高点} R112:=BACKSET(ISLASTBAR,BARSLAST(D12)+1); S112:=R112>REF(R112,1); 69 / 85 DRAWLINE(D12,H,S112,H,1),COLORRED; A22:=REF(L,M)=LLV(L,2*M+1); B22:=FILTER(A22,M); C22:=BACKSET(B22,M+1); D22:=FILTER(C22,M);{低点} T112:=BACKSET(ISLASTBAR,BARSLAST(D22)+1); U112:=T112>REF(T112,1); DRAWLINE(D22,L,U112,L,1),COLORRED; VAR1111:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3); VAR2222:=CROSS(VAR1111,0。9); VAR3333:=BACKSET(REF(LOW,2)=LLV(LOW,5),3); VAR4444:=CROSS(VAR3333,0。9); 压力:= REF(HIGH,BARSLAST(VAR2222)); STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2222)),REF(HIGH,BARSLAST(VAR2222)),0.5,1),COLOREA91B5,LINETHICK3; 70 / 85 支撑:= REF(LOW,BARSLAST(VAR4444)); STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4444)),REF(LOW,BARSLAST(VAR4444)),0。5,1),COLOR00B4FF,LINETHICK3; 下档线:=(((CLOSE — LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RRRSV:=SMA(下档线,3,1); KKK:=SMA(RRRSV,3,1); DDD:=((3 * RRRSV) - (2 * KKK)); JJ12:=(((CLOSE — LLV(LOW,55)) / (HHV(HIGH,55) — LLV(LOW,55))) * 100); RSV24:=SMA(JJ12,3,1); K24:=SMA(RSV24,3,1); D24:=((3 * RSV24) — (2 * K24)); 压力2:=IF(CROSS(D24,DDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDD)))),COLORFFFFFF; 71 / 85 底部:=LLV(HIGH,30),COLOR00FF00; DRAWICON(L<=支撑 AND H〉支撑,L,0); DRAWICON(H>=压力 AND L<压力,H,0); DRAWICON(CROSS(快线,慢线),L*0。95,5); DRAWICON(CROSS(慢线,快线),H*1.05,6); 三.副图指标 1。黄金坑 DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG); DEA:=EMA(DIFF,M); MACD2:=2*(DIFF-DEA); (CLOSE〈0 AND CROSS(DIFF,0),H*1.3),COLOR000080,NODRAW; (CLOSE〈0 AND CROSS(MACD2,0),H*1。3),COLOR000080,NODRAW; (CLOSE〈0 AND CROSS(0,DIFF),H*1.3),COLOR808080,NODRAW; 72 / 85 (CLOSE<0 AND CROSS(0,MACD2),H*1.3),COLOR808080,NODRAW; DU0:=CROSS(DIFF,0); UD0:=CROSS(0,DIFF); TDU0:=BARSLAST(DU0); TUD0:=BARSLAST(UD0); DU3:=REF(DU0,1); UD3:=REF(UD0,1); TDU3:=BARSLAST(DU3); TUD3:=BARSLAST(UD3); UDGLINE:=IF(TDU3〈TUD3,REF(HHV(HIGH,2),TDU3),REF(LLV(LOW,2),TUD3)); JDU0:=REF(CLOSE,1)〈=REF(UDGLINE,1) AND CLOSE>UDGLINE AND TDU0 JDU1:=JDU0 AND COUNT(JDU0,TDU0)=1; JUD1:=JUD0 AND COUNT(JUD0,TUD0)=1; JDU2:=JDU1 AND REF(BARSLAST(JUD1),1)〈REF(BARSLAST(JDU1),1); JUD2:=JUD1 AND REF(BARSLAST(JUD1),1)>REF(BARSLAST(JDU1),1); JDU3:=JDU1 AND REF(BARSLAST(JUD1),1)〉REF(BARSLAST(JDU1),1); JUD3:=JUD1 AND REF(BARSLAST(JUD1),1)〈REF(BARSLAST(JDU1),1); BSLINE:=IF(BARSLAST(JDU2) STICKLINE(MACD2>=0,0,MACD2,2,1),COLOR0000FF; STICKLINE(MACD2〉=0 AND MACD2STICKLINE(MACD2〈0,0,MACD2,2,0),COLORFFFF00; STICKLINE(MACD2<0 AND MACD2〉REF(MACD2,1),0,MACD2,2,1),COLO 74 / 85 RFFFF00; DIF:DIFF,LINETHICK2,COLOR0000FF; MACD:DEA,COLORFF0000; DEF:MACD2,LINETHICK0,COLORFFFF00; STICKLINE(CLOSE〉0,0,0,2,0),COLOR808080; DEFUT:=BARSLAST(CROSS(MACD2,0)); DEFDT:=BARSLAST(CROSS(0,MACD2)); DEFUL:=IF(MACD2〉=0,HHV(MACD2,DEFUT+1),REF(HHV(MACD2,DEFUT+1),DEFDT+1)); DEFDL:=IF(MACD2〈0,LLV(MACD2,DEFDT+1),REF(LLV(MACD2,DEFDT+1),DEFUT+1)); DEFU2L:=REF(DEFUL,DEFUT+1); DEFD2L:=REF(DEFDL,DEFDT+1); DRAWICON(LLV(MACD2,4)>0 AND MACD2〈REF(MACD2,1) AND REF(MACD2,1)〉REF(MACD2,2) AND REF(MACD2,2)>REF(MACD2,3),MACD2,2); 75 / 85 DRAWICON(HHV(MACD2,4)<0 AND MACD2〉REF(MACD2,1) AND REF(MACD2,1)〈REF(MACD2,2) AND REF(MACD2,2)DRAWICON((JUD1 OR BARSLAST(JDU1)〉BARSLAST(JUD1)) AND MACD2〉=0 AND REF(MACD2,1)DEFU2L,MACD2,5); DRAWICON((JDU1 OR BARSLAST(JDU1)〈BARSLAST(JUD1)) AND MACD2〈0 AND REF(MACD2,1)〉REF(DEFD2L,1) AND MACD2 2.资金流向 DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG); DEA:=EMA(DIFF,M); MACD2:=2*(DIFF—DEA); (CLOSE〈0 AND CROSS(DIFF,0),H*1.3),COLOR000080,NODRAW; (CLOSE<0 AND CROSS(MACD2,0),H*1。3),COLOR000080,NODRAW; 76 / 85 (CLOSE〈0 AND CROSS(0,DIFF),H*1.3),COLOR808080,NODRAW; (CLOSE〈0 AND CROSS(0,MACD2),H*1.3),COLOR808080,NODRAW; DU0:=CROSS(DIFF,0); UD0:=CROSS(0,DIFF); TDU0:=BARSLAST(DU0); TUD0:=BARSLAST(UD0); DU3:=REF(DU0,1); UD3:=REF(UD0,1); TDU3:=BARSLAST(DU3); TUD3:=BARSLAST(UD3); UDGLINE:=IF(TDU3 77 / 85 JUD0:=REF(CLOSE,1)>=REF(UDGLINE,1) AND CLOSE JUD1:=JUD0 AND COUNT(JUD0,TUD0)=1; JDU2:=JDU1 AND REF(BARSLAST(JUD1),1)JUD2:=JUD1 AND REF(BARSLAST(JUD1),1)〉REF(BARSLAST(JDU1),1); JDU3:=JDU1 AND REF(BARSLAST(JUD1),1)>REF(BARSLAST(JDU1),1); JUD3:=JUD1 AND REF(BARSLAST(JUD1),1)〈REF(BARSLAST(JDU1),1); BSLINE:=IF(BARSLAST(JDU2)〈BARSLAST(JUD2),IF(REF(CROSS(0,MACD2),1),LLV(LOW,2),REF(LLV(LOW,2),BARSLAST(REF(CROSS (0,MACD2),1)))),IF(REF(CROSS(MACD2,0),1),HHV(HIGH,2),REF(HHV(HIGH,2),BARSLAST(REF(CROSS(MACD2,0),1))))); STICKLINE(MACD2〉=0,0,MACD2,2,1),COLOR0000FF; STICKLINE(MACD2〉=0 AND MACD278 / 85 STICKLINE(MACD2〈0,0,MACD2,2,0),COLORFFFF00; STICKLINE(MACD2〈0 AND MACD2>REF(MACD2,1),0,MACD2,2,1),COLORFFFF00; DIF:DIFF,LINETHICK2,COLOR0000FF; MACD:DEA,COLORFF0000; DEF:MACD2,LINETHICK0,COLORFFFF00; STICKLINE(CLOSE〉0,0,0,2,0),COLOR808080; DEFUT:=BARSLAST(CROSS(MACD2,0)); DEFDT:=BARSLAST(CROSS(0,MACD2)); DEFUL:=IF(MACD2>=0,HHV(MACD2,DEFUT+1),REF(HHV(MACD2,DEFUT+1),DEFDT+1)); DEFDL:=IF(MACD2<0,LLV(MACD2,DEFDT+1),REF(LLV(MACD2,DEFDT+1),DEFUT+1)); DEFU2L:=REF(DEFUL,DEFUT+1); DEFD2L:=REF(DEFDL,DEFDT+1); 79 / 85 DRAWICON(LLV(MACD2,4)>0 AND MACD2REF(MACD2,2) AND REF(MACD2,2)>REF(MACD2,3),MACD2,2); DRAWICON(HHV(MACD2,4)〈0 AND MACD2〉REF(MACD2,1) AND REF(MACD2,1)DRAWICON((JUD1 OR BARSLAST(JDU1)〉BARSLAST(JUD1)) AND MACD2>=0 AND REF(MACD2,1)DRAWICON((JDU1 OR BARSLAST(JDU1)GP:=BARSLAST(HV);