一、主图
1、文华期货顶级主图
HH1:=IFELSE(HIGH LL1:=IFELSE(LOW>REF(LOW,2)&&REF(LOW,1)>REF(LOW,2),REF(LOW,2),0);
HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
K1:=IFELSE(CLOSE>HH2,-3,IFELSE(CLOSE K2:=VALUEWHEN(K1<>0,K1);
W1:=K2;
W2:=OPEN-CLOSE;
M:=REF(HHV(LOW,10),1);
N:=REF(LLV(HIGH,10),1);
HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);
LT:=IFELSE(OPEN DRAWLINE(W1=1&&CLOSE>M,HIGH,W1=1&&CLOSE>M,HT,COLORYELLOW);
DRAWLINE(W1=1&&CLOSE>M,LOW,W1=1&&CLOSE>M,LT,COLORYELLOW);
DRAWLINE(W1=1&&CLOSE DRAWLINE(W1=1&&CLOSE DRAWLINE(W1=-3&&CLOSE>M,HIGH,W1=-3&&CLOSE>M,HT,COLORRED);
DRAWLINE(W1=-3&&CLOSE>M,LOW,W1=-3&&CLOSE>M,LT,COLORRED);
DRAWLINE(W1=-3&&CLOSE DRAWLINE(W1=-3&&CLOSE DRAWLINE(W1=1&&CLOSE<=M&&CLOSE>=N,HIGH,W1=1&&CLOSE<=M&&CLOSE>=N,HT,RGB(255,128,64));
DRAWLINE(W1=1&&CLOSE<=M&&CLOSE>=N,LOW,W1=1&&CLOSE<=M&&CLOSE>=N,LT,RGB(255,128,64));
DRAWLINE(W1=-3&&CLOSE<=M&&CLOSE>=N,HIGH,W1=-3&&CLOSE<=M&&CLOSE>=N,HT,COLORLIGHTGREY);
DRAWLINE(W1=-3&&CLOSE<=M&&CLOSE>=N,LOW,W1=-3&&CLOSE<=M&&CLOSE>=N,LT,COLORLIGHTGREY);
STICKLINE(W1>0&&CLOSE>M,OPEN,CLOSE,COLORYELLOW,1);
STICKLINE(W2>0&&W1>0&&CLOSE>M,OPEN,CLOSE,COLORYELLOW,0);
STICKLINE(W1>0&&CLOSE STICKLINE(W2>0&&W1>0&&CLOSE STICKLINE(W2>0&&W1<=0&&CLOSE STICKLINE(W1<=0&&CLOSE STICKLINE(W1<=0&&CLOSE>M,OPEN,CLOSE,COLORRED,1);
STICKLINE(W2>0&&W1<=0&&CLOSE>M,OPEN,CLOSE,COLORRED,0);
STICKLINE(W1>0&&CLOSE<=M&&CLOSE>=N,OPEN,CLOSE,RGB(255,128,64),1);
STICKLINE(W2>0&&W1>0&&CLOSE<=M&&CLOSE>=N,OPEN,CLOSE,RGB(255,128,64),0);
STICKLINE(W1<=0&&CLOSE<=M&&CLOSE>=N,OPEN,CLOSE,COLORLIGHTGREY,1);
STICKLINE(W2>0&&W1<=0&&CLOSE<=M&&CLOSE>=N,OPEN,CLOSE,COLORLIGHTGREY,0);
T:=IFELSE(CLOSE>M,-1,1);
M1:=REF(HHV(LOW,15),1);
T1:=IFELSE(CLOSE>M1,-1,1);
N1:=REF(LLV(HIGH,15),1);
//DRAWLINE(T1=1&&REF(T1,1)=1,M1,T1=1&&REF(T1,1)=1,REF(M1,1),COLORCYAN);//
//DRAWSL(T1=1,M1,0,1,0,COLORCYAN);//
//DRAWNUMBER(ISLASTBAR,M1,M1,1,COLORCYAN);//
T2:=IFELSE(CLOSE>N1,-1,1);
//DRAWLINE(T2=-1&&REF(T2,1)=-1,N1,T2=-1&&REF(T2,1)=-1,REF(N1,1),COLORYELLOW);//
//DRAWSL(T2=-1,N1,0,1,0,COLORYELLOW);//
//DRAWNUMBER(ISLASTBAR,N1,N1,1,COLORYELLOW);//
G:=IFELSE(K2=1,HH2,LL2);
//DRAWLINE(W1=1&&REF(W1,1)=1,G,W1=1&&REF(W1,1)=1,REF(G,1),RGB(0,255,64));
//DRAWLINE(W1=-3&&REF(W1,1)=-3,G,W1=-3&&REF(W1,1)=-3,REF(G,1),COLORYELLOW);
//DRAWSL(K2=1,G,0,1,0,RGB(0,255,64));
//DRAWSL(K2=-3,G,0,1,0,COLORYELLOW);
EMA13:=EMA(C,13);
EMA21:=EMA(C,21);
EMA34:=EMA(C,34);
EMA60:=MA(C,60);
VAR2:=(2*CLOSE+HIGH+LOW)/4;
VAR3:=IFELSE(YEAR>=2099 AND MONTH>2,0,1);
VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);
SH:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;
ZJ:=EMA(0.667*REF(SH,1)+0.333*SH,2)*VAR3;
VAR9:=CLOSE-REF(CLOSE,5);
VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);
VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20);
MC:=IFELSE(VARA>0 AND CROSS(VARC,VARA),90,100);
MRX:=EMA(CLOSE,2);
MCX:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;
A:=MAX(REF(C,1),REF(O,1));
A1:=MIN(REF(C,1),REF(O,1));
//STICKLINE((OA),L-(H-L),L-(H-L)*3,COLORRED,0);
//STICKLINE((O>A AND C //STICKLINE((C[0.0033),L-(H-L),L-(H-L)*3,COLORGREEN,0);]
//STICKLINE((C>REF(C,1) AND C>REF(C,2) AND C>REF(C,3) AND C>REF(C,4) AND ABS(C-O)/O>0.0033),L-(H-L),L-(H-L)*3,COLORRED,0);
//STICKLINE((C //STICKLINE((C>MAX(REF(C,1),REF(O,1)) AND O>MIN(REF(C,1),REF(O,1)) AND C>O AND MAX(REF(O,2),REF(C,2))>MAX(REF(O,1),REF(C,1)) AND MIN(REF(O,2),REF(C,2))>MIN(REF(O,1),REF(C,1))),L-(H-L),L-(H-L)*3,COLORRED,0);
TP:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-TP)/TP*100;
DF:=IFELSE(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),0);
KF:=IFELSE(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),0);
VAR1:=EMA(EMA(CLOSE,9),9);
KONGPAN:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
ZJKP2:=KONGPAN<0;
ZJKP1:=KONGPAN>REF(KONGPAN,1) AND KONGPAN>0;
//STICKLINE(A1X>=0 AND ZJKP1 AND (REF(A1X,1)<0 OR KONGPAN //STICKLINE((A1X<0 AND ZJKP2) AND (REF(A1X,1)>0 OR REF(KONGPAN,1)>=0),H+(O-C),H+(O-C)*2,COLORCYAN,0);
HUANG:=W2<0 AND W1>0&&CLOSE>M;
HUANGSHI:=W2>0 AND W1>0&&CLOSE>M;
HONG:=W2<0 AND W1<=0&&CLOSE>M;
HONGSHI:=W2>0 AND W1<=0&&CLOSE>M;
CHENG:=W2<0 AND W1>0&&CLOSE<=M&&CLOSE>=N;
CHENGSHI:=W2>0 AND W1>0&&CLOSE<=M&&CLOSE>=N;
BAI:=W2<0 AND W1<=0&&CLOSE<=M&&CLOSE>=N;
BAISHI:=W2>0 AND W1<=0&&CLOSE<=M&&CLOSE>=N;
LAN:=W2<0 AND W1>0&&CLOSE LANSHI:=W2>0 AND W1>0&&CLOSE LVSHI:=W2>0&&W1<=0&&CLOSE AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
Activebuying:=IFELSE(CLOSE>OPEN,AA*(HIGH-LOW),IFELSE(CLOSE Activeselling:=IFELSE(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IFELSE(CLOSE MFI:=(HIGH-LOW)*1000000/VOL,COLORRED;
GREEN:=MFI>=REF(MFI,1) AND VOL>=REF(VOL,1);
DROP:=MFI<=REF(MFI,1) AND VOL<=REF(VOL,1);
FAKE:=MFI>=REF(MFI,1) AND VOL<=REF(VOL,1);
HIDE:=MFI<=REF(MFI,1) AND VOL>=REF(VOL,1);
SELLING:=VOL-Activebuying;
SPDA:=(SELLING-Activebuying)/SELLING>0.6;
BPDA:=(Activebuying-SELLING)/Activebuying>0.6;
WJ:=(HIGH+LOW+CLOSE)/3;
VD1:=IFELSE(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
VD2:=IFELSE(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ);
VD3:=IFELSE(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
VD4:=IFELSE(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN));
VD5:=VOL/IFELSE(HIGH=LOW,4,HIGH-LOW);
VD6:=(VD1*VD5);
VD7:=(VD2*VD5);
VD8:=(VD3*VD5);
VD9:=(VD4*VD5);
BIDV:=(VD9+VD8);
ASKV:=VOL-BIDV;
ASKVDA:=(ASKV-BIDV)/ASKV>0.4;
BIDVDA:=(BIDV-ASKV)/BIDV>0.4;
PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IFELSE(CLOSE>OPEN,QJJ*(HIGH-LOW),
IFELSE(CLOSE +IFELSE(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),
IFELSE(CLOSE HSL:=(XVL/20)/1.15;
GJLL:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
GJJ:=EMA(GJLL,8);
LLJX:=EMA(GJLL,3);
ZJLX:=LLJX;
AL:=(C+L+H)/3;
AO:=SMA(AL,5,1)-SMA(AL,13,1);
BBD:=(AO-SMA(AO, 3,1))*100,RGB(252,209,250);
BBD1:=IFELSE(BBD>=REF(BBD,1),BBD,0);
BBD2:=IFELSE(BBD //STICKLINE((CHENGSHI OR BAISHI OR LANSHI) AND (REF(BAISHI,1) OR REF(HONGSHI,1)) AND CLOSE[REF(OPEN,2) AND (ASKVDA OR (REF(ASKV,1)-REF(BIDV,1))/REF(ASKV,1)>0.4 OR ZJLX<0) AND REF(CLOSE,1)] //STICKLINE((HUANG OR BAI OR HONG) AND (REF(BAI,1) OR REF(LAN,1) OR REF(HUANG,1) OR REF(CHENG,1)) AND CLOSE>REF(CLOSE,1) AND REF(CLOSE,2)[0) AND REF(CLOSE,1)>REF(OPEN,1),H+(C-O),H+(C-O)*2,COLORMAGENTA,0);]
//STICKLINE(LVSHI AND (REF(BAISHI,1) OR REF(HONGSHI,1) OR REF(LVSHI,1)) AND CLOSE[REF(OPEN,2) AND REF(CLOSE,1)] NN:=9;
M1M:=9;
M2M:=9;
RSVV:=(CLOSE-LLV(LOW,NN))/(HHV(HIGH,NN)-LLV(LOW,NN))*100;
KK:=SMA(RSVV,M1M,1);
DD:=SMA(KK,M2M,1);
JJJ:=3*KK-2*DD;
AAA:=CROSS(KK,DD);
BBB:=CROSS(DD,KK);
DRAWTEXT(AAA,H,'----------------'),COLORRED;
DRAWTEXT(BBB,L,'----------------'),COLORGREEN;
2、MACD多空转换
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26),COLORGREEN;
DEA:=EMA(DIF,9),COLORRED;
MACD:=(DIF-DEA)*2;
DIF2:=EMA(CLOSE,8)-EMA(CLOSE,20),COLORGREEN;
A1:=BARSLAST(REF(CROSS(DIF2,DIF),1));
A2:=BARSLAST(REF(CROSS(DIF2,DEA),1));
DB:=REF(C,A1+1)>C&&REF(DIF2,A1+1) DB2:=REF(C,A1+1)>C&&REF(DIF,A1+1) DB3:=REF(C,A2+1)>C&&REF(DIF,A2+1) CROSS(DIF,DEA),COLORMAGENTA;
CROSS(DEA,DIF),COLORCYAN;
3、控盘阶梯
TP:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-TP)/TP*100;
DF:=IFELSE(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),0);
KF:=IFELSE(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),0);
VAR1:=EMA(EMA(CLOSE,9),9);
KONGPAN:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
ZJKP2:=KONGPAN<=REF(KONGPAN,1) AND KONGPAN<=0;
ZJKP1:=KONGPAN>=REF(KONGPAN,1) AND KONGPAN>=0;
STICKLINE((A1X>=0 AND ZJKP1 AND (REF(A1X,1)<=0 OR REF(KONGPAN,1)<=0)),0,100,COLORRED,1);
STICKLINE((A1X<=0 AND ZJKP2 AND (REF(A1X,1)>=0 OR REF(KONGPAN,1)>=0)),0,100,COLORGREEN,1);
4、布林牛熊
VAR1:=MA(CLOSE,20);
BJX:=100*(CLOSE-VAR1)/STD(CLOSE,20),COLORRED;
BLK:=EMA(BJX,10),COLORBLUE;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
FASTK:=SMA(RSV,M1,1);
K:=SMA(FASTK,M2,1),COLORYELLOW;
STICKLINE(CROSS(BLK,K),0,100,COLORMAGENTA,0);
STICKLINE(CROSS(K,BLK),0,100,COLORBLUE,0);
5、强势
VAR2:=(HIGH - LOW);
VAR3:=ABS((OPEN - CLOSE));
VAR4:=(HIGH - IFELSE((CLOSE > OPEN),CLOSE,OPEN));
VAR5:=(IFELSE((CLOSE > OPEN),OPEN,CLOSE) - LOW);
VAR6:=((VAR3 / VAR2) * VOL);
VAR7:=((VAR4 / VAR2) * VOL);
VAR8:=((VAR5 / VAR2) * VOL);
VARB:=(((MA(CLOSE,5) >= MA(CLOSE,10)) AND (MA(CLOSE,10) >= MA(CLOSE,30))) AND (MA(CLOSE,30) >= MA(CLOSE,60)));
VARC:=(((MA(CLOSE,5) <= MA(CLOSE,10)) AND (MA(CLOSE,10) <= MA(CLOSE,30))) AND (MA(CLOSE,30) <= MA(CLOSE,60)));
MMM:=MA(VOL,5);
STICKLINE(((((VAR6 >= MMM*2) AND (VAR6 >= VAR7)) AND (VAR6 >= VAR8)) AND (CLOSE >= OPEN)) OR ((VOL >= MMM*3) AND VARB),0,100,COLORYELLOW,0);
STICKLINE(((((VAR6 >= MMM*1.2) AND (VAR6 <= VAR7)) AND (VAR6 <= VAR8)) AND (CLOSE <= OPEN)) OR ((VOL >= MMM*3) AND VARC),0,100,COLORGREEN,0);
6、宏神趋势线
FT:=PEAK(H,0.2,1,1);
GU:=TROUGH(L,0.2,1,1);
MA1:MA(FT,1),COLORGREEN;
MA2:MA(GU,1),COLORRED;
DRAWNUMBER(ISLASTBAR,MA1,MA1,0,COLORGREEN);
DRAWNUMBER(ISLASTBAR,MA2,MA2,0,COLORRED);
二、趋势带副图
1、KDJ周日共振
RSV2:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
KWEEK:=SMA(RSV2,15,1);
DWEEK:=SMA(KWEEK,3,1);
JWEEK:=3*KWEEK-2*DWEEK;
FILLRGN(JWEEK>DWEEK,JWEEK,DWEEK,COLORRED);
FILLRGN(JWEEK RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
2、背离共振
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,8);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1) MACDDB:=IFELSE(B1>0,50,0);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
A2:=BARSLAST(REF(CROSS(K,D),1));
B2:=REF(C,A2+1)>C AND REF(K,A2+1) KDJDB:=IFELSE(B2>0,50,0);
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1) RSIDB:=IFELSE(B3>0,50,0);
QDB:=IFELSE(MACDDB OR KDJDB OR RSIDB,50,0);
QS:=5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),2,1);//输出趋势: 5*(收盘价-27日内最低价的最低值)/(27日内最高价的最高值-27日内最低价的最低值)*100的5日[1日权重]移动平均-3*(收盘价-27日内最低价的最低值)/(27日内最高价的最高值-27日内最低价的最低值)*100的5日[1日权重]移动平均的3日[1日权重]移动平均-(收盘价-27日内最低价的最低值)/(27日内最高价的最高值-27日内最低价的最低值)*100的5日[1日权重]移动平均的3日[1日权重]移动平均的2日[1日权重]移动平均
QS1:=EMA(MA(QS,5),3);
STICKLINE(QS>108 AND QS>=QS1,QS,130,COLORYELLOW,0);//当满足条件趋势>108 AND趋势>=趋势1时,在趋势和108位置之间画柱状线
STICKLINE(QS1>108 AND QS STICKLINE(QS<0 AND QS STICKLINE(QS1<0 AND QS>QS1,QS1,-20,COLORYELLOW,0);
V1:=MA(CLOSE,5)=HHV(MA(CLOSE,5),20);
V2:=MA(CLOSE,5)>MA(CLOSE,20);
V3:=COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;
FX:=IFELSE(V1 AND V2 AND V3,30,0);
V11:=MA(CLOSE,5)=HHV(MA(CLOSE,5),120);
V21:=MA(CLOSE,5)>MA(CLOSE,120);
V31:=COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;
FX1:=IFELSE(V11 AND V21 AND V31,60,0);
DIBU:=5;
CD:=IFELSE(CROSS(QS,DIBU),40,0);
TX:=108;
TD:=IFELSE(CROSS(TX,QS),1,0);
3、波段操盘叠加
VARA:=LLV(LOW,35);
VARB:=HHV(HIGH,30);
VARC:=EMA((CLOSE-VARA)/(VARB-VARA)*4,4)*25;
QS:=VARC,COLORWHITE;
STICKLINE(VARC<10,20,-5,COLORWHITE,0);
STICKLINE(VARC>90,110,85,COLORWHITE,0);
VARD:=87.5;
VARE:=(VARC-LLV(VARC,4))/(HHV(VARC,4)-LLV(VARC,4))*4*25;
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR8:=LLV(LOW,30);
VARAA:=HHV(HIGH,30);
B:=EMA((VAR6-VAR8)/(VARAA-VAR8)*100,8);
B1:=EMA(B,5);
V1:=(2*CLOSE+HIGH+LOW)/4; V2:=LLV(LOW,21);
VA:=HHV(HIGH,34);
FB:=EMA((V1-V2)/(VA-V2)*100,13);
FBB:=EMA((0.667*REF(FB,1)+0.333*FB),2);
4、波段操盘
VARA:=LLV(LOW,35);
VARB:=HHV(HIGH,30);
VARC:=EMA((CLOSE-VARA)/(VARB-VARA)*4,4)*25;
QS:=VARC,COLORMAGENTA;
//STICKLINE(VARC<10 && 100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))>97,20,-5,COLORWHITE,0);
//STICKLINE(VARC>90,110,85,COLORWHITE,0);
VARD:=87.5;
VARE:=(VARC-LLV(VARC,4))/(HHV(VARC,4)-LLV(VARC,4))*4*25;
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR8:=LLV(LOW,30);
VARAA:=HHV(HIGH,30);
B:=EMA((VAR6-VAR8)/(VARAA-VAR8)*100,8);
B1:=EMA(B,5);
STICKLINE(B>0 && B-B1>=0,79,80,COLORRED,0);
STICKLINE(B>0 && B-B1<0,79,80,COLORGREEN,0);
STICKLINE(B>0 && B-B1>=0,19,20,COLORRED,0);
STICKLINE(B>0 && B-B1<0,19,20,COLORGREEN,0);
//STICKLINE(B>0 && B-B1>=0,49.5,50.5,COLORRED,0);//
//STICKLINE(B>0 && B-B1<0,49.5,50.5,COLORGREEN,0);//
//STICKLINE(B>0 && B-B1>=0,49.5,50.5,COLORRED,0);//
//STICKLINE(B>0 && B-B1<0,49.5,50.5,COLORGREEN,0);//
//STICKLINE(B-B1>0,B,B1,COLORRED,1);//
//STICKLINE(B-B1<0,B,B1,COLORGREEN,1);//
V1:=(2*CLOSE+HIGH+LOW)/4;
V2:=LLV(LOW,21);
VA:=HHV(HIGH,34);
FB:=EMA((V1-V2)/(VA-V2)*100,13);
FBB:=EMA((0.667*REF(FB,1)+0.333*FB),2);
5、布林极限叠加
VAR1:=MA(CLOSE,20);
BJX:=100*(CLOSE-VAR1)/STD(CLOSE,20),COLORWHITE;
BLK:=EMA(BJX,10),COLORGREEN;
VAR2:=EMA(BJX,5);
VAR3:=EMA(BLK,5);
VAR4:=EMA(HHV(HIGH,500),21);
VAR5:=EMA(HHV(HIGH,250),21);
VAR6:=EMA(HHV(HIGH,90),21);
VAR7:=EMA(LLV(LOW,500),21);
VAR8:=EMA(LLV(LOW,250),21);
VAR9:=EMA(LLV(LOW,90),21);
VARA:=EMA((VAR7*0.96+VAR8*0.96+VAR9*0.96+VAR4*0.558+VAR5*0.558+VAR6*0.558)/6,21);
VARB:=EMA((VAR7*1.25+VAR8*1.23+VAR9*1.2+VAR4*0.55+VAR5*0.55+VAR6*0.65)/6,21);
VARC:=EMA((VAR7*1.3+VAR8*1.3+VAR9*1.3+VAR4*0.68+VAR5*0.68+VAR6*0.68)/6,21);
VARD:=EMA((VARA*3+VARB*2+VARC)/6*1.738,21);
VARE:=REF(LOW,1);
VARF:=SMA(ABS(LOW-VARE),3,1)/SMA(MAX(LOW-VARE,0),3,1)*100;
VAR10:=IFELSE(CLOSE*1.35<=VARD,VARF*10,VARF/10);
VAR11:=EMA(VAR10,3);
VAR12:=LLV(LOW,30);
VAR13:=HHV(VAR11,30);
VAR14:=IFELSE(LOW<=VAR12,(VAR11+VAR13*2)/2,0);
VAR15:=EMA(VAR14,3)/500-100;
VAR16:=0.2*VAR15;
VAR17:=1.2*VAR15;
VAR18:=(2*CLOSE+HIGH+LOW)/4; VAR19:=LLV(LOW,34);
VAR1A:=HHV(HIGH,34);
VAR1B:=(VAR18-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
VAR1C:=EMA(VAR1B,3);
VAR1D:=EMA(VAR1C,3);
VAR1E:=EMA((VAR18-VAR19)/(VAR1A-VAR19)*100,9);
VAR1F:=EMA(0.667*REF(VAR1E,1)+0.333*VAR1E,3);
VAR20:=LLV(HIGH,240);
VAR21:=100*(CLOSE-VAR20)/VAR20;
VAR22:=HHV(HIGH,240);
VAR23:=100*(VAR22-CLOSE)/CLOSE;
VAR24:=REF(HHV(CLOSE,60),1);
VAR25:=REF(LLV(CLOSE,60),1);
VAR26:=100*(CLOSE-VAR25)/(VAR24-VAR25);
STICKLINE(BJX>170,BJX,BLK,COLORGREEN,0);
STICKLINE(BJX<-170,BJX,BLK,COLORGREEN,0);
6、主力进出
ZLJC:=EMA(SUM(IFELSE(CLOSE>REF(CLOSE,1),VOL,IFELSE(CLOSE M12:=EMA(ZLJC,12);
M30:=EMA(ZLJC,30);
FILLRGN(ZLJC FILLRGN(ZLJC FILLRGN((ZLJC>REF(ZLJC,1) && ZLJC>M12),M12,ZLJC,COLORMAGENTA);
7、之字CCI
TYP:=(CLOSE+HIGH+LOW)/3;
CCI:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)),COLORCYAN;
MACCI:=MA(CCI,1);
MACCI3:MA(CCI,3),COLORCYAN;
FT:=PEAK(CCI,1,1,1);
GU:=TROUGH(CCI,1,1,1);
MA1:=MA(FT,5),COLORGREEN;
MA2:=MA(GU,5),COLORRED;
//STICKLINE(CROSS(CCI,MA2) AND MA1-REF(MA1,1)>=0,0,100,COLORRED,0);//
//STICKLINE(CROSS(MA1,CCI) AND MA2-REF(MA2,1)<=0,0,100,COLORBLUE,0);//
MA3:(MA1+MA2)/2,COLORYELLOW;
//STICKLINE(CROSS(MACCI3,MA3),0,50,COLORMAGENTA,0);//
//STICKLINE(CROSS(MA3,MACCI3),0,50,COLORCYAN,0);//
8、资金流向
PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IFELSE(CLOSE>OPEN,QJJ*(HIGH-LOW),
IFELSE(CLOSE +IFELSE(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),
IFELSE(CLOSE HSL:=(XVL/20)/1.15;
GJLL:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
GJJ:=EMA(GJLL,8);
LLJX:=EMA(GJLL,3);
ZJLX:=LLJX;
STICKLINE(ZJLX>0,ZJLX,0,COLORRED,0);
STICKLINE(ZJLX<0,ZJLX,0,COLORCYAN,0);
//STICKLINE(REF(ZJLX,3)<0 AND ABS(ZJLX)0 AND REF(ZJLX,1)>0 AND REF(ZJLX,2)>0,0,100,COLORBLUE,0);//
//STICKLINE(REF(ZJLX,3)>0 AND ABS(ZJLX)
9、阶梯指标
TP:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-TP)/TP*100;
DF:=IFELSE(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),0);
KF:=IFELSE(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),0);
STICKLINE(A1X>=0,DF/4,TP/4,COLORYELLOW,1);
STICKLINE(A1X<0,KF/4,TP/4,COLORGREEN,1);
三、AO-BBD副图
1、价量线主线快线
JIALIANG:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)
-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)
,COLORGREEN;
ZHUXIAN:(((JIALIANG-LLV(JIALIANG,27))/(HHV(JIALIANG,27)-LLV(JIALIANG,27)))*(4))*(25)
,COLORCYAN;
KUAIXIAN:(((JIALIANG-LLV(JIALIANG,9))/(HHV(JIALIANG,9)-LLV(JIALIANG,9)))*(4))*(25)
,COLORWHITE;
2、慢速KD金叉
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
FASTK:=SMA(RSV,M1,1);
K:=SMA(FASTK,M2,1),COLORYELLOW;
D:=SMA(K,M3,1);
MAK:=MA(K,10);
MAD:=MA(D,10);
CROSS(D,K),COLORGREEN;
CROSS(K,D),COLORRED;
3、见好就收
VAR3:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100;
VAR4:=SMA(SMA(VAR3,3,1),3,1);
VAR5:=EMA(VAR4,5);
VAR6:=VAR5;
VAR7:=3*VAR4-2*VAR5;
VAR8:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(VAR8,3,1);
D:=SMA(K,3,1);
VAR9:=3*K-2*D;
VARA:=LLV(LOW,36);
VARB:=HHV(HIGH,30);
VARC:=EMA((CLOSE-VARA)/(VARB-VARA)*4,4)*25;
QUSHI:=VARC, COLORGREEN;
QUSHI1:=-VARC, COLORGREEN;
VARD:=87.5;
VARE:=(VARC-LLV(VARC,4))/(HHV(VARC,4)-LLV(VARC,4))*4*25;
STICKLINE((CROSS(QUSHI,VARD) && VARE=100),0,100,COLORWHITE,0);
4、活跃度
LC:=REF(CLOSE,1);
RSI5:=(SMA(MAX(CLOSE-LC,0),3,1))/(SMA(ABS(CLOSE-LC),3,1))*100;
WR10:=100*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3));
HYD:=RSI5-WR10,COLORBLUE;
STICKLINE(HYD>90,0,HYD,COLORLIGHTGREY,0);
5、AO-BBD
AL:=(C+L+H)/3;
AO:=SMA(AL,5,1)-SMA(AL,13,1);
BBD:=(AO-SMA(AO, 3,1))*100,RGB(252,209,250);
BBD1:=IFELSE(BBD>=REF(BBD,1),BBD,0);
BBD2:=IFELSE(BBD STICKLINE(BBD1,0,BBD,COLORYELLOW,0);
STICKLINE(BBD2,0,BBD,COLORLIGHTBLUE,0);
Y:=(HIGH+LOW)/2;
AOO:=MA(Y,5)-MA(Y,34);
AO1:=REF(AOO,1);
VAR1:=C-REF(C,1);
VAR2:=O-REF(O,1);
VAR3:=H-REF(H,1);
VAR4:=L-REF(L,1);
VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;
TL:=MA(VAR5*VOL,14)/1000;
TP:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-TP)/TP*100;
DF:=IFELSE(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),0);
KF:=IFELSE(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),0);
STICKLINE(A1X>=0,0,TP/200,COLORRED,0);
STICKLINE(A1X<0,0,TP/200,COLORGREEN,0);
DK:=EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))
/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3);
ZJJ:=EMA(EMA(CLOSE,10),10);
XJJ:=(ZJJ-REF(ZJJ,1))/REF(ZJJ,1)*1000;
STICKLINE(XJJ STICKLINE(XJJ[0,XJJ*2,0,COLORGREEN,0);]
6、非趋势摆动
BDZ:=CLOSE-MA(CLOSE,7),COLORMAGENTA;
ZZ:=0,COLORYELLOW;
CBUY:HHV(BDZ,60)*0.75,COLORRED;
CSELL:LLV(BDZ,60)*0.75,RGB(0,240,0);
7、有庄
VAR1:=EMA(EMA(CLOSE,13),13);
KP:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
P:=55;S:=8;M1:=3;
CAI:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10;
SHEN:=EMA(CAI,M1);
BTJ2:=KP>REF(KP,1) AND KP<-0.2;
BTJ3:=CROSS(CAI,SHEN) AND CAI<-0.3;
STICKLINE(BTJ2 AND BTJ3,0,100,COLORMAGENTA,1);
BTJ22:=KP[-0.2;]
BTJ33:=CROSS(SHEN,CAI) AND CAI>-0.3;
STICKLINE(BTJ22 AND BTJ33,0,100,COLORCYAN,1);
8、多空参考
VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;
VAR2:=SMA(VAR1,10,1);
MS:=SMA(VAR2,5,1);
RSV:= ((HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100)-70;
RSV1:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
FATK:=SMA(RSV1,3,1);
XX:=SMA(FATK,3,1);
VARA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VARB:=SMA(VARA,3,1);
VARC:=SMA(VARB,3,1);
JS:=EMA(3*VARB-2*VARC,2),COLORYELLOW;
D:=6,COLORLIGHTRED;
DI:=-6,COLORMAGENTA;
DN:=90,COLORGREEN;
DDN:=100,COLORWHITE;
VAR11:=LLV(LOW,5)=LLV(LOW,45) && CLOSE>=OPEN*1.04;
VAR22:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
MR:=VAR11 && VAR22,COLORRED;
VAR3:=REF(CLOSE,1);
VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;
MC:=CROSS(80,VAR4),COLORGREEN;
VAR5:=CROSS(JS,100);VAR6:=CROSS(JS,-6);
VAR7:=CROSS(80,JS);VAR8:=CROSS(JS,6);
DRAWTEXT(VAR5,85,'注意顶'),COLORBLUE;
DRAWTEXT(VAR6,35,'关注底'),COLORRED;
DRAWTEXT(VAR8,45,'多'),COLORMAGENTA;
DRAWTEXT(VAR7,95,'空'),COLORGREEN;
DRAWTEXT(VAR8,25,'多'),COLORMAGENTA;
9、BIA乖离
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;
GYLI:=MA(BIAS,3);
DRAWTEXT(CROSS(BIAS,GYLI) AND GYLI<-1,C,'---------BIA底');
DRAWTEXT(CROSS(BIAS,GYLI) AND GYLI>1,C,'---------BIA顶');
10、派发
LC:=REF(CLOSE,1);
DIF:=CLOSE-IFELSE(CLOSE>LC,MIN(LOW,LC),MAX(HIGH,LC));
ACD:=SUM(IFELSE(CLOSE=LC,0,DIF),0);
MAACD:EMA(ACD,3),COLORGREEN;
11、拉升资金
VAR1B:=EMA(CLOSE,3)-EMA(CLOSE,89);
VAR1C:=EMA(VAR1B,21);
VAR1D:=(VAR1B-VAR1C)*10;
VAR1F:=POW(VAR1D,3)*0.1+POW(VAR1D,2);
FT:=PEAK(VAR1F,1,1,1);
GU:=TROUGH(VAR1F,1,1,1);
MA1:MA(FT,3),COLORMAGENTA;
MA2:MA(GU,3),COLORBLUE;
四、混沌副图
1、庄家三步
ZJ:=EMA(EMA(CLOSE,10),10);
XJ:=(ZJ-REF(ZJ,1))/REF(ZJ,1)*1000;
PJJ:=SMA (XJ,5,1)-SMA(XJ,13,1);
SS:PJJ-SMA(PJJ, 3,1),COLORMAGENTA;
DS:IFELSE(SS[ ]
2、盘整完毕
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IFELSE(W2>0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
TPPZ:=W4 AND COUNT(W4,5)=1;
VAR1:=C-REF(C,1);
VAR2:=O-REF(O,1);
VAR3:=H-REF(H,1);
VAR4:=L-REF(L,1);
VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;
TL:=MA(VAR5*VOL,14) ;
ZJLR:=TL>0 AND TL>REF(TL,1);
STICKLINE((TPPZ AND ZJLR),0,100,COLORLIGHTRED,0);
W11:=C=LLV(C,20);
W22:=BARSLAST(W11);
W33:=IFELSE(W2>0,REF(C,W22),REF(C,W22));
W44:=CROSS(REF(W33,1),C);
TPPZZ:=W44 AND COUNT(W44,5)=1;
ZJLRR:=TL<0 AND TL STICKLINE((TPPZZ AND ZJLRR),0,100,COLORLIGHTGREEN,0);
3、获利筹码
ZCC:=EMA(100*(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30)),9);
ZCJZ:=EMA(ZCC,1);
VAR1:=(HIGH+LOW+CLOSE)/3;
DX:=EMA((HHV(VAR1,15)-VAR1)/(HHV(VAR1,15)-LLV(VAR1,15)),2)*50;
STICKLINE(CROSS(ZCJZ,DX),H,L,COLORYELLOW,0);
STICKLINE(CROSS(DX,ZCJZ),H,L,COLORBLUE,0);
4、量价共振
DIF:=EMA(CLOSE,9)-EMA(CLOSE,18);
DEA:=EMA(DIF,7);
MACD:=2*(DIF-DEA);
STICKLINE((CROSS(DIF,DEA) AND DIF<0.3),O,C,COLORRED,0);
STICKLINE((CROSS(DEA,DIF) AND DIF>0.3),O,C,COLORGREEN,0);
5、好猫
BM:=EMA(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100),4);
HM:=EMA(BM,3);
QS:=EMA(BM,34);
STICKLINE((CROSS(BM,HM) AND HM1.004),O,C,COLORRED,0);
STICKLINE((CROSS(HM,BM) AND QS
6、底部启动
SX:=SMA(C,3,1);
ZCX:=SMA(C,8,1);
A7:=(2*C+H+L)/4;
CZ:=MA(A7,5);
STICKLINE((CROSS(SX,ZCX) AND SX>CZ),C,O,COLORRED,0);
STICKLINE((CROSS(ZCX,SX) AND SX
7、资金初流入
VAR1:=C-REF(C,1);
VAR2:=O-REF(O,1);
VAR3:=H-REF(H,1);
VAR4:=L-REF(L,1);
VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;
TL:=MA(VAR5*VOL,14);
STICKLINE((TL>0 AND REF(TL,1)<=0),C,O,COLORMAGENTA,0);
STICKLINE((TL<0 AND REF(TL,1)>=0),C,O,COLORBLUE,0);
8、机构买点
VAR1:=3;
VAR2:=(3)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1))-(2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1));
GJQD:=IFELSE(CROSS(VAR2,VAR1),100,0);
//STICKLINE((VAR2 <= 3 OR GJQD),O,C,COLORRED,0);
STICKLINE(GJQD,O,C,COLORRED,0);
STICKLINE(CROSS(VAR1,VAR2),O,C,COLORGREEN,0);
9、资金净流入信号
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
ZMR:=IFELSE(CLOSE>OPEN,AA*(HIGH-LOW),IFELSE(CLOSE ZMC:=IFELSE(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IFELSE(CLOSE STICKLINE((ABS(ZMR)-ABS(ZMC))>=0 AND (ABS(REF(ZMR,1))-ABS(REF(ZMC,1)))>0 AND (ABS(REF(ZMR,2))-ABS(REF(ZMC,2)))<=0,C,O,COLORYELLOW,0);
STICKLINE((ABS(ZMR)-ABS(ZMC))<=0 AND (ABS(REF(ZMR,1))-ABS(REF(ZMC,1)))<0 AND (ABS(REF(ZMR,2))-ABS(REF(ZMC,2)))>=0,C,O,COLORBLUE,0);
10、上下影线
STICKLINE((ABS(L-O)/ABS(C-O)>=2 AND C>O),C,O,COLORRED,0);
STICKLINE((ABS(H-O)/ABS(C-O)>=2 AND C STICKLINE((ABS(L-C)/ABS(C-O)>=2 AND C STICKLINE((ABS(H-C)/ABS(C-O)>=2 AND C>O),C,O,COLORGREEN,0);
AAA:=MA(C,1),DOT;
11、全仓买入
SX1:=SMA(C,3,1);
YZC1:=SMA(C,8,1);
A7:=(2*C+H+L)/4;
CZ:=MA(A7,5);
STICKLINE((CROSS(SX1,YZC1) AND SX1>CZ),SX1,YZC1,COLORRED,0);
STICKLINE((CROSS(YZC1,SX1) AND SX1
12、三阴阳
HH1:=IFELSE(HIGH LL1:=IFELSE(LOW>REF(LOW,2)&&REF(LOW,1)>REF(LOW,2),REF(LOW,2),0);
HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
K1:=IFELSE(CLOSE>HH2,-3,IFELSE(CLOSE K2:=VALUEWHEN(K1<>0,K1);
W1:=K2;
W2:=OPEN-CLOSE;
M:=REF(HHV(LOW,10),1);
N:=REF(LLV(HIGH,10),1);
HUANG:=W2<0 AND W1>0&&CLOSE>M AND C>O;
HUANGSHI:=W2>0 AND W1>0&&CLOSE>M AND C HONG:=W2<0 AND W1<=0&&CLOSE>M AND C>O;
HONGSHI:=W2>0 AND W1<=0&&CLOSE>M AND C CHENG:=W2<0 AND W1>0&&CLOSE<=M&&CLOSE>=N AND C>O;
CHENGSHI:=W2>0 AND W1>0&&CLOSE<=M&&CLOSE>=N AND C BAI:=W2<0 AND W1<=0&&CLOSE<=M&&CLOSE>=N AND C>O;
BAISHI:=W2>0 AND W1<=0&&CLOSE<=M&&CLOSE>=N AND C LAN:=W2<0 AND W1>0&&CLOSEO;
LANSHI:=W2>0 AND W1>0&&CLOSE LV:=W2<0&&W1<=0&&CLOSEO;
LVSHI:=W2>0&&W1<=0&&CLOSE AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
Activebuying:=IFELSE(CLOSE>OPEN,AA*(HIGH-LOW),IFELSE(CLOSE Activeselling:=IFELSE(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IFELSE(CLOSE MFI:=(HIGH-LOW)*1000000/VOL,COLORRED;
GREEN:=MFI>=REF(MFI,1) AND VOL>=REF(VOL,1);
DROP:=MFI<=REF(MFI,1) AND VOL<=REF(VOL,1);
FAKE:=MFI>=REF(MFI,1) AND VOL<=REF(VOL,1);
HIDE:=MFI<=REF(MFI,1) AND VOL>=REF(VOL,1);
SELLING:=VOL-Activebuying;
SPDA:=(SELLING-Activebuying)/SELLING>0.6;
BPDA:=(Activebuying-SELLING)/Activebuying>0.6;
WJ:=(HIGH+LOW+CLOSE)/3;
VD1:=IFELSE(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
VD2:=IFELSE(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ);
VD3:=IFELSE(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
VD4:=IFELSE(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN));
VD5:=VOL/IFELSE(HIGH=LOW,4,HIGH-LOW);
VD6:=(VD1*VD5);
VD7:=(VD2*VD5);
VD8:=(VD3*VD5);
VD9:=(VD4*VD5);
BIDV:=(VD9+VD8);
ASKV:=VOL-BIDV;
ASKVDA:=(ASKV-BIDV)/ASKV>0.4;
BIDVDA:=(BIDV-ASKV)/BIDV>0.4;
PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IFELSE(CLOSE>OPEN,QJJ*(HIGH-LOW),
IFELSE(CLOSE +IFELSE(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),
IFELSE(CLOSE HSL:=(XVL/20)/1.15;
GJLL:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
GJJ:=EMA(GJLL,8);
LLJX:=EMA(GJLL,3);
ZJLX:=LLJX;
TP:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-TP)/TP*100;
AL:=(C+L+H)/3;
AO:=SMA(AL,5,1)-SMA(AL,13,1);
BBD:=(AO-SMA(AO, 3,1))*100,RGB(252,209,250);
BBD1:=IFELSE(BBD>=REF(BBD,1),BBD,0);
BBD2:=IFELSE(BBD STICKLINE((CHENGSHI OR BAISHI OR LANSHI OR LVSHI OR HONGSHI OR HUANGSHI) AND (REF(BAISHI,1) OR REF(HONGSHI,1) OR REF(LANSHI,1) OR REF(LVSHI,1) OR REF(HUANGSHI,1) OR REF(CHENGSHI,1)) AND (REF(BAISHI,2) OR REF(HONGSHI,2) OR REF(LANSHI,2) OR REF(LVSHI,2) OR REF(HUANGSHI,2) OR REF(CHENGSHI,2)) AND (ASKVDA OR (REF(ASKV,1)-REF(BIDV,1))/REF(ASKV,1)>0.4 OR ZJLX<0) AND REF(CLOSE,3)>=REF(OPEN,3) AND C STICKLINE((CHENG OR BAI OR LAN OR LV OR HONG OR HUANG) AND (REF(BAI,1) OR REF(HONG,1) OR REF(LAN,1) OR REF(LV,1) OR REF(HUANG,1) OR REF(CHENG,1)) AND (REF(BAI,2) OR REF(HONG,2) OR REF(LAN,2) OR REF(LV,2) OR REF(HUANG,2) OR REF(CHENG,2)) AND (BIDVDA OR ZJLX>0) AND REF(CLOSE,3)<=REF(OPEN,3) AND C>REF(C,1),C,O,COLORWHITE,0);
13、张弛点
HH1:=IFELSE(HIGH LL1:=IFELSE(LOW>REF(LOW,2)&&REF(LOW,1)>REF(LOW,2),REF(LOW,2),0);
HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
K1:=IFELSE(CLOSE>HH2,-3,IFELSE(CLOSE K2:=VALUEWHEN(K1<>0,K1);
W1:=K2;
W2:=OPEN-CLOSE;
M:=REF(HHV(LOW,10),1);
N:=REF(LLV(HIGH,10),1);
HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);
LT:=IFELSE(OPEN T:=IFELSE(CLOSE>M,-1,1);
T1:=IFELSE(CLOSE>N,-1,1);
G:=IFELSE(K2=1,HH2,LL2);
EMA13:=EMA(C,13);
EMA21:=EMA(C,21);
EMA34:=EMA(C,34);
EMA60:=MA(C,60);
VAR2:=(2*CLOSE+HIGH+LOW)/4;
VAR3:=IFELSE(YEAR>=2099 AND MONTH>2,0,1);
VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);
SH:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;
ZJ:=EMA(0.667*REF(SH,1)+0.333*SH,2)*VAR3;
VAR9:=CLOSE-REF(CLOSE,5);
VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);
VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20);
MC:=IFELSE(VARA>0 AND CROSS(VARC,VARA),90,100);
MRX:=EMA(CLOSE,2);
MCX:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;
A:=MAX(REF(C,1),REF(O,1));
A1:=MIN(REF(C,1),REF(O,1));
STICKLINE((OA),C,O,COLORRED,0);
STICKLINE((O>A AND C STICKLINE((C[0.0033),C,O,COLORGREEN,0);]
STICKLINE((C>REF(C,1) AND C>REF(C,2) AND C>REF(C,3) AND C>REF(C,4) AND ABS(C-O)/O>0.0033),C,O,COLORRED,0);
STICKLINE((C STICKLINE((C>MAX(REF(C,1),REF(O,1)) AND O>MIN(REF(C,1),REF(O,1)) AND C>O AND MAX(REF(O,2),REF(C,2))>MAX(REF(O,1),REF(C,1)) AND MIN(REF(O,2),REF(C,2))>MIN(REF(O,1),REF(C,1))),C,O,COLORRED,0);
14、穗形
STICKLINE((C STICKLINE((C>MAX(REF(C,1),REF(O,1)) AND O>MIN(REF(C,1),REF(O,1)) AND C>O AND MAX(REF(O,2),REF(C,2))>MAX(REF(O,1),REF(C,1)) AND MIN(REF(O,2),REF(C,2))>MIN(REF(O,1),REF(C,1))),L,L-(H-L),COLORMAGENTA,0);
15、资金增量-大单流入
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
Activebuying:=IFELSE(CLOSE>OPEN,AA*(HIGH-LOW),IFELSE(CLOSE Activeselling:=IFELSE(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IFELSE(CLOSE MFI:=(HIGH-LOW)*1000000/VOL,COLORRED;
GREEN:=MFI>=REF(MFI,1) AND VOL>=REF(VOL,1);
DROP:=MFI<=REF(MFI,1) AND VOL<=REF(VOL,1);
FAKE:=MFI>=REF(MFI,1) AND VOL<=REF(VOL,1);
HIDE:=MFI<=REF(MFI,1) AND VOL>=REF(VOL,1);
SELLING:=VOL-Activebuying;
SPDA:=(SELLING-Activebuying)/SELLING>0.6;
BPDA:=(Activebuying-SELLING)/Activebuying>0.6;
WJ:=(HIGH+LOW+CLOSE)/3;
VD1:=IFELSE(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
VD2:=IFELSE(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ);
VD3:=IFELSE(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
VD4:=IFELSE(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN));
VD5:=VOL/IFELSE(HIGH=LOW,4,HIGH-LOW);
VD6:=(VD1*VD5);
VD7:=(VD2*VD5);
VD8:=(VD3*VD5);
VD9:=(VD4*VD5);
BIDV:=(VD9+VD8);
ASKV:=VOL-BIDV;
ASKVDA:=(ASKV-BIDV)/ASKV>0.4;
BIDVDA:=(BIDV-ASKV)/BIDV>0.4;
STICKLINE(ASKVDA,0,ASKV*30,COLORBLUE,0);
STICKLINE(BIDVDA,0,BIDV*30,COLORYELLOW,0);
MRL:=IFELSE(CLOSE>OPEN,AA*(HIGH-LOW),IFELSE(CLOSE MCL:=IFELSE(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IFELSE(CLOSE JCL:=MRL+MCL;
STICKLINE(JCL<0,0,JCL*10, COLORGREEN,0);
STICKLINE(JCL>0,0,JCL*10, COLORRED,0);
PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IFELSE(CLOSE>OPEN,QJJ*(HIGH-LOW),
IFELSE(CLOSE +IFELSE(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),
IFELSE(CLOSE HSL:=(XVL/20)/1.15;
GJLL:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
GJJ:=EMA(GJLL,8);
LLJX:=EMA(GJLL,3);
ZJLX:=LLJX;
STICKLINE(ZJLX>0,ZJLX,0,COLORRED,0);
STICKLINE(ZJLX<0,ZJLX,0,COLORGREEN,0);
16、猴赢叠加
EMA13:=EMA(C,13);
EMA21:=EMA(C,21);
EMA34:=EMA(C,34);
EMA60:=MA(C,60);
VAR2:=(2*CLOSE+HIGH+LOW)/4;
VAR3:=IFELSE(YEAR>=2099 AND MONTH>2,0,1);
VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);
SH:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;
ZJ:=EMA(0.667*REF(SH,1)+0.333*SH,2)*VAR3;
VAR9:=CLOSE-REF(CLOSE,5);
VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);
VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20);
MC:=IFELSE(VARA>0 AND CROSS(VARC,VARA),90,100);
MRX:=EMA(CLOSE,2);
MCX:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;
A0:=(L+H+C*2)/4;
A1:=EMA(A0,14);
A2:=EMA(A0,25);
A1X:=(A1-REF(A1,1))/REF(A1,1)*100;
A2X:=(A2-REF(A2,1))/REF(A2,1)*100;
STICKLINE(CROSS(A1X,0),C,O,COLORRED,1);
STICKLINE(CROSS(0,A1X),C,O,COLORGREEN,1);
17、极地上涨
VA1:=HHV(HIGH,9)-LLV(LOW,9);
VA2:=HHV(HIGH,9)-CLOSE;
VA3:=CLOSE-LLV(LOW,9);
VA4:=VA2/VA1*100-70;
VA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VA6:=(CLOSE+HIGH+LOW)/3;
VA7:=SMA(VA3/VA1*100,3,1);
VA8:=LLV(LOW,34);
VA9:=SMA(VA7,3,1)-SMA(VA4,9,1);
VAR1:=HHV(HIGH,9)-LLV(LOW,9);
VAR2:=HHV(HIGH,9)-CLOSE;
VAR3:=CLOSE-LLV(LOW,9);
VAR4:=((VAR2)/(VAR1))*(100)-70;
VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);
VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);
VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:=IFELSE((VAR9>100),VAR9-100,0);
VAR11:=HHV(HIGH,34);
VARB:=HHV(HIGH,34);
VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);
VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);
B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);
LINGXIAN:=EMA(B1,5);
SHENGMINGXIAN:=EMA(VARD,1);
V1:=MA(C,5)=HHV(MA(C,5),20);
V2:=MA(C,5)>MA(C,10);
V3:=MA(V,5)>MA(V,40)*1.01;
V4:=COUNT(MA(C,1)>REF(C,1),2)=2;
VV:=V1 AND V2 AND V3 AND V4;
A1:=EMA(CLOSE,8);
A2:=EMA(A1,20);
A3:=CROSS(A1,A2);
A4:=A1 A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*
SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1);
ANQUANWEI:=20;
DWZQ:=IFELSE(CROSS(A5,ANQUANWEI),50,0);
KSLS:=IFELSE(CROSS(VARC,SHENGMINGXIAN) AND VARC>VARD AND VARC<55 AND C>O,50,0);
STICKLINE(DWZQ>0,C,O,COLORYELLOW,0);
18、布林极限
VAR1:=MA(CLOSE,20);
BJX:=100*(CLOSE-VAR1)/STD(CLOSE,20),COLORCYAN;
BLK:=EMA(BJX,10),COLORGREEN;
VAR2:=EMA(BJX,5);
VAR3:=EMA(BLK,5);
VAR4:=EMA(HHV(HIGH,500),21);
VAR5:=EMA(HHV(HIGH,250),21);
VAR6:=EMA(HHV(HIGH,90),21);
VAR7:=EMA(LLV(LOW,500),21);
VAR8:=EMA(LLV(LOW,250),21);
VAR9:=EMA(LLV(LOW,90),21);
VARA:=EMA((VAR7*0.96+VAR8*0.96+VAR9*0.96+VAR4*0.558+VAR5*0.558+VAR6*0.558)/6,21);
VARB:=EMA((VAR7*1.25+VAR8*1.23+VAR9*1.2+VAR4*0.55+VAR5*0.55+VAR6*0.65)/6,21);
VARC:=EMA((VAR7*1.3+VAR8*1.3+VAR9*1.3+VAR4*0.68+VAR5*0.68+VAR6*0.68)/6,21);
VARD:=EMA((VARA*3+VARB*2+VARC)/6*1.738,21);
VARE:=REF(LOW,1);
VARF:=SMA(ABS(LOW-VARE),3,1)/SMA(MAX(LOW-VARE,0),3,1)*100;
VAR10:=IFELSE(CLOSE*1.35<=VARD,VARF*10,VARF/10);
VAR11:=EMA(VAR10,3);
VAR12:=LLV(LOW,30);
VAR13:=HHV(VAR11,30);
VAR14:=IFELSE(LOW<=VAR12,(VAR11+VAR13*2)/2,0);
VAR15:=EMA(VAR14,3)/500-100;
VAR16:=0.2*VAR15;
VAR17:=1.2*VAR15;
VAR18:=(2*CLOSE+HIGH+LOW)/4; VAR19:=LLV(LOW,34);
VAR1A:=HHV(HIGH,34);
VAR1B:=(VAR18-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
VAR1C:=EMA(VAR1B,3);
VAR1D:=EMA(VAR1C,3);
VAR1E:=EMA((VAR18-VAR19)/(VAR1A-VAR19)*100,9);
VAR1F:=EMA(0.667*REF(VAR1E,1)+0.333*VAR1E,3);
VAR20:=LLV(HIGH,240);
VAR21:=100*(CLOSE-VAR20)/VAR20;
VAR22:=HHV(HIGH,240);
VAR23:=100*(VAR22-CLOSE)/CLOSE;
VAR24:=REF(HHV(CLOSE,60),1);
VAR25:=REF(LLV(CLOSE,60),1);
VAR26:=100*(CLOSE-VAR25)/(VAR24-VAR25);
//STICKLINE(BJX>=BLK,BJX,BLK ,COLORYELLOW,0);
//STICKLINE(BJX //STICKLINE(VAR2>=VAR3,VAR2,VAR3,COLORRED,0);
//STICKLINE(VAR2 STICKLINE(CROSS(BJX,BLK),BJX+(BJX-BLK),BLK,COLORMAGENTA,0);
STICKLINE(CROSS(BLK,BJX),BJX-(BLK-BJX),BLK,COLORCYAN,0);
//STICKLINE(BJX>170,BJX,BLK,COLORWHITE,1);
//STICKLINE(BJX<-170,BJX,BLK,COLORWHITE,1);
19、启动点
AAA:=CLOSE>OPEN;
BBB:=AAA&&CLOSE>MA(CLOSE,3)&&CLOSE>MA(CLOSE,7)&&CLOSE>MA(CLOSE,21);
CCC:=BBB&&OPEN STICKLINE(CCC,C,O,COLORRED,0);
AAA1:=CLOSE BBB1:=AAA1&&CLOSE CCC1:=BBB1&&OPEN>MA(CLOSE,7)&&OPEN>MA(CLOSE,21);
STICKLINE(CCC1,C,O,COLORGREEN,0);
20、RSI信号
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
STICKLINE(CROSS(RSI1,RSI2),C,O,COLORRED,0);
STICKLINE(CROSS(RSI2,RSI1),C,O,COLORGREEN,0);
21、宝塔图
VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
//STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),COLORRED,1); //
VARD:=CLOSE VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
// STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),COLORBLUE,0);//
VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;
STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),COLORMAGENTA,0);
VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),COLORCYAN,0);
22、买卖柱
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
MR:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
STICKLINE(MR,OPEN,CLOSE,COLORYELLOW,0);
23、之字CCI信号
TYP:=(CLOSE+HIGH+LOW)/3;
CCI:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)),COLORCYAN;
MACCI:=MA(CCI,1);
MACCI3:=MA(CCI,3),COLORCYAN;
FT:=PEAK(CCI,1,1,1);
GU:=TROUGH(CCI,1,1,1);
MA1:=MA(FT,5),COLORGREEN;
MA2:=MA(GU,5),COLORRED;
//STICKLINE(CROSS(CCI,MA2) AND MA1-REF(MA1,1)>=0,0,100,COLORRED,0);//
//STICKLINE(CROSS(MA1,CCI) AND MA2-REF(MA2,1)<=0,0,100,COLORBLUE,0);//
MA3:=(MA1+MA2)/2,COLORYELLOW;
STICKLINE(CROSS(MACCI3,MA3),L,H,COLORMAGENTA,0);
STICKLINE(CROSS(MA3,MACCI3),L,H,COLORCYAN,0);
24、资金流向信号
PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IFELSE(CLOSE>OPEN,QJJ*(HIGH-LOW),
IFELSE(CLOSE +IFELSE(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),
IFELSE(CLOSE HSL:=(XVL/20)/1.15;
GJLL:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
GJJ:=EMA(GJLL,8);
LLJX:=EMA(GJLL,3);
ZJLX:=LLJX;
//STICKLINE(ZJLX>0,ZJLX,0,COLORRED,0);//
//STICKLINE(ZJLX<0,ZJLX,0,COLORCYAN,0);//
STICKLINE(REF(ZJLX,3)<0 AND ABS(ZJLX)0 AND REF(ZJLX,1)>0 AND REF(ZJLX,2)>0,L,H,COLORGREEN,0);
STICKLINE(REF(ZJLX,3)>0 AND ABS(ZJLX)
25、RSI摆动
LC:= REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),10,1)/SMA(ABS(CLOSE-LC),10,1)*100,COLORMAGENTA;
FT:=PEAK(RSI1,10,1,1);
GU:=TROUGH(RSI1,10,1,1);
MA1:=MA(FT,1),COLORGREEN;
MA2:=MA(GU,1),COLORRED;
MA3:(MA1+MA2)/2,BOLD;
26、分类资金
A:=VOL;
ZL:=MA(A,4),COLORMAGENTA;
YZ:=MA(A,8),COLORWHITE;
DH:=MA(A,16);
SH:=MA(A,32);
SH1:=MA(A,64);
STICKLINE(CROSS(ZL,SH1),C,O,COLORMAGENTA,0);
STICKLINE(CROSS(SH1,ZL),C,O,COLORCYAN,0);
27、精准买卖
V1:=MA(CLOSE,30);
D:=V1-2*STD(CLOSE,60),COLORRED;
P:=MA(CLOSE,60),COLORWHITE;
T:=V1+2*STD(CLOSE,60),COLORGREEN;
STICKLINE(CROSS(ZIGZAG(C,1,1),REF(ZIGZAG(C,1,1),1)),H+(H-L)/2,L-(H-L)/2,COLORMAGENTA,1);
STICKLINE(CROSS(REF(ZIGZAG(C,1,1),1),ZIGZAG(C,1,1)),H+(H-L)/2,L-(H-L)/2,COLORCYAN,1);
28、大资金
VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VAR6:=(VAR3+VAR4+VAR5)/3;
VAR7:=EMA(VAR6,5);
ZHIB:=EMA(EMA(VAR3,5),5)*3, COLORSTICK;
VAR8:=IFELSE(VAR6<=-20,10,0);
VAR9:=HHV(VAR8,10);
STICKLINE(VAR8=10,20,10,COLORRED,0);
VARA:=IFELSE(VAR9 && CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
K:=EMA(VAR7,5)*2,COLORGREEN;
D:=EMA(K,5), COLORWHITE;
J:=K*3-D*2, COLORYELLOW;
VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) && J>10;
DRAWTEXT(VARA=20,15,'底部');
STICKLINE((VARA=20),0,10,COLORWHITE,0);
VARC:=(ZIGZAG(CLOSE,5,1)>REF(ZIGZAG(CLOSE,5,1),1)) && (REF(ZIGZAG(CLOSE,5,1),1)<=REF(ZIGZAG(CLOSE,5,1),2)) && (REF(ZIGZAG
(CLOSE,5,1),2)<=REF(ZIGZAG(CLOSE,5,1),3));
VARD:=(ZIGZAG(CLOSE,5,1)[=REF(ZIGZAG(CLOSE,5,1),2)) && (REF(ZIGZAG ]
(CLOSE,5,1),2)>=REF(ZIGZAG(CLOSE,5,1),3));
STICKLINE((VARC=1),10,0,COLORRED,0);
DRAWTEXT((VARC=1),10,'买');
STICKLINE((VARD=1),14,0,COLORGREEN,0);
DRAWTEXT((VARD=1),18,'卖');
VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR11:=VARF[REF(VOL,1) && CLOSE>REF(CLOSE,1); ]
VAR111:=VARF //DRAWTEXT(VAR11 && COUNT(VAR11,30)=1,15,'大资金活动');//
STICKLINE(VAR11 && COUNT(VAR11,30)=1,0,100,COLORLIGHTRED,1);
STICKLINE(VAR111 && COUNT(VAR111,30)=1,0,100,COLORLIGHTGREEN,1);
VAR12:=(HIGH+LOW+CLOSE)/3;
VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));
VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));
VAR15:=IFELSE(VAR13>=150 && VAR13<200 && VAR14>=150 && VAR14<200,10,0);
VAR16:=IFELSE(VAR13<=-150 && VAR13>-200 && VAR14<=-150 && VAR14>-200,-10,VAR15);
VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR18:=100-ABS(VAR17);
VAR19:=IFELSE(VAR18<90,VAR18,100);
VAR1A:=IFELSE(VARE>0,VARE,0);
VAR1B:=IFELSE(VAR14>=200 && VAR13>=150,15,IFELSE(VAR14<=-200 && VAR13<=-150,-15,VAR16))+60;
VAR1C:=VAR1A>48 && VAR1B>60 && VAR19<100;
VAR1CC:=VAR1A<48 && VAR1B<60 && VAR19<100;
DRAWTEXT(VAR1C && COUNT(VAR1C,30)=1,15,'大笔出货');
STICKLINE(VAR1C && COUNT(VAR1C,30)=1,0,100,COLORLIGHTGREEN,1);
STICKLINE(VAR1CC && COUNT(VAR1CC,30)=1,0,100,COLORLIGHTRED,1);
29、美国K线信号
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);
CROSS(K,D) AND D < 18,COLORYELLOW;
CROSS(D,K) AND D > 75,COLORWHITE;
30、模型
BA:=BARPOS;
VOL1:=IFELSE(ISLASTBAR,VOL,REFX(VOL,1));
HC:=LLV(IFELSE(H-C=0,1000,H-C),0);
CL:=LLV(IFELSE(C-L=0,1000,ABS(C-L)),0);
CO:=LLV(IFELSE(C-O=0,1000,ABS(C-O)),0);
ZXBD:=MIN(HC,MIN(CL,CO));
DFX:=REF(L,2)=LLV(L,5)&&REF(L,1)>REF(L,2)&&L>REF(L,2)&&REF(L,2)<=REF(L,3);
GFX:=REF(H,2)=HHV(H,4)&&REF(H,1)[=REF(H,3);]
DFXI:=VALUEWHEN(DFX,BA);
GFXI:=VALUEWHEN(GFX,BA);
DDP1:=VALUEWHEN(DFX,REF(L,2));
GDP1:=VALUEWHEN(GFX,REF(H,2));
DDP:=VALUEWHEN(DFX&&DDP1<>REF(DDP1,1),DDP1);
GDP:=VALUEWHEN(GFX&&GDP1<>REF(GDP1,1),GDP1);
DFX1I:=VALUEWHEN(DFX,REF(DFXI,1));
DFX1P:=VALUEWHEN(DFX,REF(DDP,BA-DFX1I+1));
GFX1I:=VALUEWHEN(GFX,REF(GFXI,1));
GFX1P:=VALUEWHEN(GFX,REF(GDP,BA-GFX1I+1));
DFXP:=VALUEWHEN(DFX&&DDP<>REF(DDP,1),MIN(DDP,MIN(DFX1P,REF(DDP,1))));
GFXP:=VALUEWHEN(GFX&&GDP<>REF(GDP,1),MAX(GDP,MAX(GFX1P,REF(GDP,1))));
SA:=SAR(4,0.02,0.2);
DZZ:=SA>0&&NOT(REF(SA,1)>0)||BA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,H,COLORYELLOW,1);
31、放量黑洞
YRL:=MA(VOL,1);
YRMRL:=MA(BUYVOL,1);
YRMCL:=MA(SELLVOL,1);
QDYRL:=REF(VOL,1);
FL:=YRL/QDYRL>2;
ZZJ:=ABS(O-L)+ABS(H-L)+ABS(H-C);
LSZJ:=IFELSE(CLOSE>OPEN,(HIGH-LOW),IFELSE(CLOSE DYZJ:=IFELSE(CLOSE>OPEN,(HIGH-CLOSE)+(OPEN-LOW),IFELSE(CLOSE ZMR:=(LSZJ/ZZJ)*VOL;
ZMC:=(DYZJ/ZZJ)*VOL;
ZJ:=ZMR/ZMC<1;
VAR1:=C-REF(C,1);
VAR2:=O-REF(O,1);
VAR3:=H-REF(H,1);
VAR4:=L-REF(L,1);
VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;
TL:=MA(VAR5*VOL,14);
ZJLR:=TL>0;
HD:=YRMRL/YRMCL>1;
ZJH:=ZMR/ZMC>2;
HED:=YRMRL/YRMCL<1;
HOD:=YRMRL/YRMCL>1;
STICKLINE((FL AND ZJ),C,O,COLORGREEN,1);
STICKLINE((FL AND ZJH),C,O,COLORRED,1);
32、洗钱信号
XQA:=(CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE;
XQB:=SMA(XQA,13,1);
XQC:SMA(XQB,5.5,1.5),COLORCYAN;
XQD:3*XQB-2*XQC,COLORYELLOW;
XQE:4*XQC-3*XQB,COLORMAGENTA;
STICKLINE(CROSS(XQE,XQD),H,L,COLORMAGENTA,1);
STICKLINE(CROSS(XQD,XQE),H,L,COLORCYAN,1);
33、资金共振
VAR1:=C-REF(C,1);
VAR2:=O-REF(O,1);
VAR3:=H-REF(H,1);
VAR4:=L-REF(L,1);
VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;
TL:=MA(VAR5*VOL,14),COLORRED;
PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IFELSE(CLOSE>OPEN,QJJ*(HIGH-LOW),
IFELSE(CLOSE +IFELSE(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),
IFELSE(CLOSE HSL:=(XVL/20)/1.15;
GJLL:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
GJJ:=EMA(GJLL,8);
LLJX:=EMA(GJLL,3);
ZJLX:=LLJX;
STICKLINE(ZJLX>0 AND TL>0 AND (REF(ZJLX,1)<=0 OR REF(TL,1)<=0),C,O,COLORYELLOW,1);
STICKLINE(ZJLX<0 AND TL<0 AND (REF(ZJLX,1)>=0 OR REF(TL,1)>=0),C,O,COLORBLUE,1);
34、分形指标
VAR1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);
VAR2:=CROSS(VAR1,0.9);
VAR3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);
VAR4:=CROSS(VAR3,0.9);
STICKLINE(VAR2,HIGH,HIGH*1.01,COLORGREEN,1);
STICKLINE(VAR4,LOW,LOW*0.99,COLORGREEN,1);
VAR5:=IFELSE(VAR2,HIGH,IFELSE(VAR4,LOW,0));
VAR6:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW VAR7:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),3);
VAR8:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND HIGH[REF(LOW,1) AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)] VAR9:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),3);
VARA:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW VARB:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND HIGH[REF(LOW,1) AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)] STICKLINE(CROSS(VAR6,0.9),HIGH,HIGH*1.01,COLORYELLOW,1);
STICKLINE(CROSS(VAR9,0.9),LOW,LOW*0.99,COLORYELLOW,1);
STICKLINE(CROSS(VAR7,0.9),HIGH,HIGH*1.01,COLORYELLOW,1);
STICKLINE(CROSS(VARA,0.9),LOW,LOW*0.99,COLORYELLOW,1);
STICKLINE(CROSS(VAR8,0.9),HIGH,HIGH*1.01,COLORGREEN,1);
STICKLINE(CROSS(VARB,0.9),LOW,LOW*0.99,COLORGREEN,1);
YALI:=REF(HIGH,BARSLAST(VAR2)),COLORRED;
//STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2)),REF(HIGH,BARSLAST(VAR2)),COLORRED,1);//
UIAT:=REF(LOW,BARSLAST(VAR4)),COLORMAGENTA;
//STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4)),REF(LOW,BARSLAST(VAR4)),COLORMAGENTA,1);//
35、混沌操盘提示
VAR1:=(H+L)/2;
AO:=SMA(VAR1,5,1)-SMA(VAR1,34,1);
AC:=SMA((AO-SMA(AO,5,1)),5,1);
X1:=AO>REF(AO,1) AND AC>REF(AC,1);
X2:=AO Y:=(H+L)/2;
RED:=SMA(Y,8,1);
R2:=REF(RED,5);
KU1:=IFELSE(H=HHV(H,3),1,0);
KD1:=IFELSE(L=LLV(L,3),1,0);
UL:=IFELSE(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0,REF(H,2),REF(H,2+BARSLAST(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0)));
DL:=IFELSE(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0,REF(L,2),REF(L,2+BARSLAST(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0)));
LR:=SMA(Y,13,1),COLORBLUE;
HH:=SMA(Y,5,1),COLORRED;
LV:=SMA(Y,3,1),COLORGREEN;
ISUS:=LR>=REF(LR,1) AND HH>=REF(HH,1) AND LV>=REF(LV,1);
XXUS:=LR ISSN:=IFELSE(H>=R2,UL,REF(UL,BARSLAST(H>R2)));
XXSN:=IFELSE(L<=R2,DL,REF(DL,BARSLAST(L<=R2)));
//STICKLINE(BARSLAST(ABS(ISSN-REF(ISSN,1)))ISSN AND REF(C,1) //STICKLINE(BARSLAST(ABS(XXSN-REF(XXSN,1)))REF(XXSN,1)),XXSN,XXSN,COLORCYAN,1);//
LC := REF(C,4);
RMI:=SMA(MAX(C-LC,0),7,1)/SMA(ABS(C-LC),7,1)*100;
QS:= HHV(MA(RMI,3),13);
RMIMA:= SMA(RMI,3,1);
DRAWTEXT(C>ISSN&&ISLASTBAR=1,H+0,'破多');
DRAWTEXT(C //DRAWTEXT(X1>0&&ISLASTBAR=1,H+0.3,'多势');//
//DRAWTEXT(X2>0&&ISLASTBAR=1,L-0.3,'空势');//
//DRAWTEXT(ISUS&&ISLASTBAR=1,H+0.6,'上张');//
//DRAWTEXT(XXUS&&ISLASTBAR=1,L-0.6,'下张');//
DRAWTEXT(ISUS&&X1>0&&ISLASTBAR=1,H+0.8,'中多');
DRAWTEXT(XXUS&&X2>0&&ISLASTBAR=1,L-0.8,'中空');
DRAWTEXT((RMI>RMIMA&&RMI DRAWTEXT((RMI>RMIMA&&RMI>QS)&&ISLASTBAR=1,H+1,'大多');
DRAWTEXT((RMI20)&&ISLASTBAR=1,L-1,'大空');
DRAWTEXT((RMI
36、混沌操盘2
Y:=(H+L)/2;
AA:=REF((SMA(Y,5,1)),3);
BB:=REF((SMA(Y,8,1)),5);
CC:=REF((SMA(Y,13,1)),8);
OE:=CC;
AI:=BB,COLORRED;
AM:=AA,COLORGREEN;
R2:=REF(AI,5);
KU1:=IFELSE(HIGH=HHV(HIGH,3),1,0);
KD1:=IFELSE(LOW=LLV(LOW,3),1,0);
UL:=IFELSE(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:=IFELSE(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)));
ISFW:=IFELSE(HIGH>=R2,UL,REF(UL,BARSLAST(HIGH>R2))),COLORMAGENTA;
XXFW:=IFELSE(LOW<=R2,DL,REF(DL,BARSLAST(LOW<=R2))),COLORYELLOW;
STICKLINE(CLOSE>ISFW AND REF(CLOSE,1) STICKLINE(CLOSEREF(XXFW,1),LOW,H,COLORGREEN,1);
AO:=MA(Y,5)-MA(Y,34);
MAO:=MA(AO,5);
AC:=AO-MAO;
AC1:=REF(AC,1);
AO1:=REF(AO,1);
KAC:=IFELSE(AC>AC1 AND AO>AO1,1,0);
KAO:=IFELSE(AC //STICKLINE(KAC=1 AND CLOSE>=OPEN,OPEN,CLOSE,COLORRED,1);//
//STICKLINE(KAO=-1 AND CLOSE>=OPEN,OPEN,CLOSE,COLORGREEN,1);//
// STICKLINE(KAO=0 AND KAC=0 AND CLOSE>=OPEN,OPEN,CLOSE,COLORWHITE,1);//
//STICKLINE(CLOSE>=OPEN,HIGH,CLOSE,COLORRED,0);//
//STICKLINE(CLOSE>=OPEN,OPEN,LOW,COLORRED,0);//
//STICKLINE(KAC=1 AND CLOSE //STICKLINE(KAO=-1 AND CLOSE //STICKLINE(KAO=0 AND KAC=0 AND CLOSE
37、大资金动向
CN1:=HHV(VOL,5);
CN2:=O>C;
CN02:=C>O;
CN03:=C=O;
CN04:=((SUM(VOL,5)/CN1));
CN05:=IFELSE(CN04>0.3,1,0);
CN06:=IFELSE(CN2 AND CN05,V,0);
CN07:=IFELSE(CN02 AND CN05,V,0);
CN08:=IFELSE(CN03 AND CN05,V,0);
LR:=SUM(CN07,9);
LC:=SUM(CN06,9);
MALR:=MA(LR,15);
MALC:=MA(LC,15);
STICKLINE(CROSS(MALR,MALC),C,O,COLORMAGENTA,0);
STICKLINE(CROSS(MALC,MALR),C,O,COLORCYAN,0);
五、其他指标
1、斐波那契射线
M:=BARPOS;
HH1:=IFELSE(HIGH>=REF(HIGH,1)&&HIGH>=REF(HIGH,2)&&HIGH>=REF(HIGH,3) &&HIGH>=REF(HIGH,4)&&HIGH>=REF(HIGH,5)&& HIGH>REFX(HIGH,1)&&HIGH>REFX(HIGH,2)&&HIGH>REFX(HIGH,3) &&HIGH>REFX(HIGH,4) &&HIGH>REFX(HIGH,5),M,0);
LL1:=IFELSE(LOW<=REF(LOW,1)&&LOW<=REF(LOW,2)&&LOW<=REF(LOW,3) &&LOW<=REF(LOW,4)&&LOW<=REF(LOW,5)&& LOW HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
M1:=VALUEWHEN(HH2<>REF(HH2,1),M);
M2:=ISLASTBAR;
M3:=IFELSE(M2=1,M1,M-10000);
P1:=IFELSE(M3 P2:=IFELSE(P1 P3:=IFELSE(P2 P4:=IFELSE(P3 P5:=IFELSE(P4 P6:=IFELSE(P5 P7:=IFELSE(P6 P8:=IFELSE(P7 P9:=IFELSE(P8 P10:=IFELSE(P9 P11:=IFELSE(P10 P12:=IFELSE(P11 P13:=IFELSE(P12 P14:=IFELSE(P13 P15:=IFELSE(P14 P16:=IFELSE(P15 P17:=IFELSE(P16 P18:=IFELSE(P17 P19:=IFELSE(P18 P20:=IFELSE(P19 T1:=IFELSE(P20 MM1:=VALUEWHEN(LL2<>REF(LL2,1),M);
MM3:=IFELSE(M2=1,MM1,M-10000);
PP1:=IFELSE(MM3 PP2:=IFELSE(PP1 PP3:=IFELSE(PP2 PP4:=IFELSE(PP3 PP5:=IFELSE(PP4 PP6:=IFELSE(PP5 PP7:=IFELSE(PP6 PP8:=IFELSE(PP7 PP9:=IFELSE(PP8 PP10:=IFELSE(PP9 PP11:=IFELSE(PP10 PP12:=IFELSE(PP11 PP13:=IFELSE(PP12 PP14:=IFELSE(PP13 PP15:=IFELSE(PP14 PP16:=IFELSE(PP15 PP17:=IFELSE(PP16 PP18:=IFELSE(PP17 PP19:=IFELSE(PP18 PP20:=IFELSE(PP19 T2:=I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E(T1>T2,LL+(M-T2)*R0*0.618,HH-(M-T1)*R0*0.618);
KK:=IFELSE(T1>T2,HH-(M-T1)*R0,LL+(M-T2)*R0);
X0:=VALUEWHEN(K0<=HH&&K0>=LL,K0);
X1:=VALUEWHEN(K1<=HH&&K1>=LL,K1);
X2:=VALUEWHEN(K2<=HH&&K2>=LL,K2);
X3:=VALUEWHEN(K3<=HH&&K3>=LL,K3);
X4:=VALUEWHEN(K4<=HH&&K4>=LL,K4);
XX:=VALUEWHEN(KK<=HH&&KK>=LL,KK);
POLYLINE(K0<=HH&&K0>=LL,X0,COLORYELLOW);
POLYLINE(K1<=HH&&K1>=LL,X1,COLORWHITE);
//POLYLINE(K2<=HH&&K1>=LL,X2,COLORMAGENTA);//
//POLYLINE(K3<=HH&&K1>=LL,X3,COLORRED);//
//POLYLINE(K4<=HH&&K1>=LL,X4,COLORLIGHTBLUE)//;
//POLYLINE(KK<=HH&&KK>=LL,XX,COLORYELLOW);//
2、均价线
MA1:MA(AVPRICE,15),COLORYELLOW;
DRAWNUMBER(ISLASTBAR,AVPRICE,AVPRICE,1,COLORYELLOW);
3、高低均线
MAH:=MA(HIGH,N),COLORWHITE;
MAH2:=REF(MAH,1);
//STICKLINE(MAH-MAH2=0,0,100,COLORWHITE,0);//
MAL:=MA(LOW,N),COLORGREEN;
MAL2:=REF(MAL,1);
DRAWNUMBER(ISLASTBAR,MAH,MAH,1,COLORWHITE);
DRAWNUMBER(ISLASTBAR,MAL,MAL,1,COLORGREEN);
A:=MAH-REF(MAH,1);
B:=REFX(A,1);
C1:=IFELSE(MAH>=REF(MAH,1),1,-1);
DRAWSL(REF(C1,1)=1,MAH,B,1,0,COLORRED);
DRAWSL(REF(C1,1)=-1,MAH,B,1,0,COLORWHITE);
A2:=MAL-REF(MAL,1);
B2:=REFX(A2,1);
C12:=IFELSE(MAL>=REF(MAL,1),1,-1);
DRAWSL(REF(C12,1)=1,MAL,B2,1,0,COLORMAGENTA);
DRAWSL(REF(C12,1)=-1,MAL,B2,1,0,COLORGREEN);
4、布林主图
QR:=MA(CLOSE,27);
SJX:=QR+3*STD(CLOSE,21);
XJX:=QR-2.9*STD(CLOSE,21);
FB:=EMA((EMA(CLOSE,3)+EMA(CLOSE,5)+EMA(CLOSE,8)+EMA(CLOSE,13))/4,2);
Var1:=(2*CLOSE+HIGH+LOW)/4;
Var2:=LLV(LOW,34);
Var3:=HHV(HIGH,34);
Var4:=EMA((Var1-Var2)/(Var3-Var2)*100,13);
Var5:=REF(CLOSE,1);
Var6:=SMA(MAX(CLOSE-Var5,0),7,1)/SMA(ABS(CLOSE-Var5),7,1)*100;
Var7:=EMA((CLOSE-LLV(CLOSE,55))/(HHV(CLOSE,55)-LLV(LOW,55))*100,7);
Var8:=EMA((CLOSE-Var2)/(Var3-Var2)*100,5);
Var9:=EMA((CLOSE-Var2)/(Var3-Var2)*100,20);
Var10:=FILTER(CROSS(Var8,Var9) AND Var9<30 ,5) AND Var7>REF(Var7,1) AND CO AND Var4>REF(Var4,1);
//STICKLINE(REF(L,1)XJX AND C>O OR Var10,0,100,COLORRED,0);//
DRAWTEXT(Var10,50,'下买');
//STICKLINE(FILTER(REF(H,1)REF(FB,1) AND FBO,0,100,COLORMAGENTA,0);//
//STICKLINE(REF(H,1)>SJX AND H //STICKLINE(CROSS(80,Var6) AND L DRAWTEXT(CROSS(H,SJX) AND L>FB AND C/REF(C,10)>1.2 AND Var8>80,50,'上卖');
5、动量震荡
Y:=(HIGH+LOW)/2;
AO:=MA(Y,5 )-MA(Y,34 );
AO1:=REF(AO,1);
//STICKLINE(AO>AO1,0,AO,COLORRED,0);//
//STICKLINE(AO FT:=PEAK(AO,0.3,1,1);
GU:=TROUGH(AO,0.3,1,1);
MA1:=MA(FT,1),COLORGREEN;
MA2:=MA(GU,1),COLORWHITE;
M3:(MA1+MA2)/2,BOLD;
6、三线峰谷
HH1:=IFELSE(HIGH LL1:=IFELSE(LOW>REF(LOW,2)&&REF(LOW,1)>REF(LOW,2),REF(LOW,2),0);
HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
K1:=IFELSE(CLOSE>HH2,-3,IFELSE(CLOSE K2:=VALUEWHEN(K1<>0,K1);
W1:=K2;
W2:=OPEN-CLOSE;
M:=REF(HHV(LOW,10),1);
N:=REF(LLV(HIGH,10),1);
HUANG:=W2<0 AND W1>0&&CLOSE>M AND C>O;
HUANGSHI:=W2>0 AND W1>0&&CLOSE>M AND C HONG:=W2<0 AND W1<=0&&CLOSE>M AND C>O;
HONGSHI:=W2>0 AND W1<=0&&CLOSE>M AND C CHENG:=W2<0 AND W1>0&&CLOSE<=M&&CLOSE>=N AND C>O;
CHENGSHI:=W2>0 AND W1>0&&CLOSE<=M&&CLOSE>=N AND C BAI:=W2<0 AND W1<=0&&CLOSE<=M&&CLOSE>=N AND C>O;
BAISHI:=W2>0 AND W1<=0&&CLOSE<=M&&CLOSE>=N AND C LAN:=W2<0 AND W1>0&&CLOSEO;
LANSHI:=W2>0 AND W1>0&&CLOSE LV:=W2<0&&W1<=0&&CLOSEO;
LVSHI:=W2>0&&W1<=0&&CLOSE AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
Activebuying:=IFELSE(CLOSE>OPEN,AA*(HIGH-LOW),IFELSE(CLOSE Activeselling:=IFELSE(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IFELSE(CLOSE MFI:=(HIGH-LOW)*1000000/VOL,COLORRED;
GREEN:=MFI>=REF(MFI,1) AND VOL>=REF(VOL,1);
DROP:=MFI<=REF(MFI,1) AND VOL<=REF(VOL,1);
FAKE:=MFI>=REF(MFI,1) AND VOL<=REF(VOL,1);
HIDE:=MFI<=REF(MFI,1) AND VOL>=REF(VOL,1);
SELLING:=VOL-Activebuying;
SPDA:=(SELLING-Activebuying)/SELLING>0.6;
BPDA:=(Activebuying-SELLING)/Activebuying>0.6;
WJ:=(HIGH+LOW+CLOSE)/3;
VD1:=IFELSE(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
VD2:=IFELSE(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ);
VD3:=IFELSE(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
VD4:=IFELSE(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN));
VD5:=VOL/IFELSE(HIGH=LOW,4,HIGH-LOW);
VD6:=(VD1*VD5);
VD7:=(VD2*VD5);
VD8:=(VD3*VD5);
VD9:=(VD4*VD5);
BIDV:=(VD9+VD8);
ASKV:=VOL-BIDV;
ASKVDA:=(ASKV-BIDV)/ASKV>0.4;
BIDVDA:=(BIDV-ASKV)/BIDV>0.4;
PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IFELSE(CLOSE>OPEN,QJJ*(HIGH-LOW),
IFELSE(CLOSE +IFELSE(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),
IFELSE(CLOSE HSL:=(XVL/20)/1.15;
GJLL:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
GJJ:=EMA(GJLL,8);
LLJX:=EMA(GJLL,3);
ZJLX:=LLJX;
TP:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-TP)/TP*100;
AL:=(C+L+H)/3;
AO:=SMA(AL,5,1)-SMA(AL,13,1);
BBD:=(AO-SMA(AO, 3,1))*100,RGB(252,209,250);
BBD1:=IFELSE(BBD>=REF(BBD,1),BBD,0);
BBD2:=IFELSE(BBD SRYY:=(CHENGSHI OR BAISHI OR LANSHI OR LVSHI OR HONGSHI OR HUANGSHI) AND (REF(BAISHI,1) OR REF(HONGSHI,1) OR REF(LANSHI,1) OR REF(LVSHI,1) OR REF(HUANGSHI,1) OR REF(CHENGSHI,1)) AND (ASKVDA OR (REF(ASKV,1)-REF(BIDV,1))/REF(ASKV,1)>0.4 OR ZJLX<0) AND REF(CLOSE,2)>=REF(OPEN,2) AND C SRYS:=(CHENG OR BAI OR LAN OR LV OR HONG OR HUANG) AND (REF(BAI,1) OR REF(HONG,1) OR REF(LAN,1) OR REF(LV,1) OR REF(HUANG,1) OR REF(CHENG,1)) AND (BIDVDA OR ZJLX>0) AND REF(CLOSE,2)<=REF(OPEN,2) AND C>REF(C,1);
SRYYY:IFELSE(SRYY,L,0);
SRYSS:IFELSE(SRYS,H,0);
7、放量黑洞
YRL:=MA(VOL,1);
YRMRL:=MA(BUYVOL,1);
YRMCL:=MA(SELLVOL,1);
QDYRL:=REF(VOL,1);
FL:=YRL/QDYRL>2;
ZZJ:=ABS(O-L)+ABS(H-L)+ABS(H-C);
LSZJ:=IFELSE(CLOSE>OPEN,(HIGH-LOW),IFELSE(CLOSE DYZJ:=IFELSE(CLOSE>OPEN,(HIGH-CLOSE)+(OPEN-LOW),IFELSE(CLOSE ZMR:=(LSZJ/ZZJ)*VOL;
ZMC:=(DYZJ/ZZJ)*VOL;
ZJ:=ZMR/ZMC<1;
VAR1:=C-REF(C,1);
VAR2:=O-REF(O,1);
VAR3:=H-REF(H,1);
VAR4:=L-REF(L,1);
VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;
TL:=MA(VAR5*VOL,14);
ZJLR:=TL>0;
HD:=YRMRL/YRMCL>1;
ZJH:=ZMR/ZMC>2;
HED:=YRMRL/YRMCL<1;
HOD:=YRMRL/YRMCL>1;
STICKLINE((FL AND ZJ),0,100,COLORGREEN,1);
STICKLINE((FL AND ZJH),0,100,COLORRED,1);
8、DMI信号
TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);
HD := HIGH-REF(HIGH,1);
LD := REF(LOW,1)-LOW;
DMP:= SUM(IFELSE(HD>0 && HD>LD,HD,0),N);
DMM:= SUM(IFELSE(LD>0 && LD>HD,LD,0),N);
PDI:=DMP*100/TR;
MDI:=DMM*100/TR;
ADX:=MA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
ADXR:=(ADX+REF(ADX,M))/2;
CROSS(HHV(ADX,N0)*(1-0.01*M0),ADX);
CROSS(PDI,MDI);
9、拉升资金
VAR1:=(HIGH+LOW+CLOSE*2)/4;
VAR2:=EMA(VAR1,21);
VAR3:=STD(VAR1,21);
VAR4:=((VAR1-VAR2)/VAR3*100+200)/4;
VAR5:=(EMA(VAR4,89)-25)*1.56;
VAR6:=EMA(VAR5,5)*1.22;
VAR7:=EMA(VAR6,3);
VAR8:=3*VAR6-2*VAR7;
VAR1A:=IFELSE(CROSS(VAR6,VAR8) AND CROSS(VAR7,VAR8) AND CROSS(VAR7,VAR6),1,0);
VAR1B:=EMA(CLOSE,3)-EMA(CLOSE,89);
VAR1C:=EMA(VAR1B,21);
VAR1D:=(VAR1B-VAR1C)*10;
VAR1F:=POW(VAR1D,3)*0.1+POW(VAR1D,2);
LSZJ:=IFELSE(VAR1D>0.015,VAR1F,0)/45,COLORMAGENTA;
VAR9:=EMA(CLOSE,2)-EMA(CLOSE,55);
VAR10:=EMA(VAR9,13);
VAR11:=2*(VAR9-VAR10);
ZLZJ:=POW(VAR11,3)*0.1+POW(VAR11,1),COLORRED;
CROSS(LSZJ,ZLZJ),COLORWHITE;
10、天狼资金
VAR1:=C-REF(C,1);
VAR2:=O-REF(O,1);
VAR3:=H-REF(H,1);
VAR4:=L-REF(L,1);
VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;
TL:=MA(VAR5*VOL,14),COLORRED;
STICKLINE(TL>0,TL,0,COLORMAGENTA,1);
STICKLINE(TL<0,TL,0,COLORBLUE,1);
11、黄金分割
SJ:=BARSLAST(DATE<>REF(DATE,1));
G:=HHV(H,SJ+1);
D:=LLV(L,SJ+1);
F5:=(G-D)*0.5+D;
F6181:=D-(G-D)*0.618;
F3822:=D-(G-D)*0.382;
F3823:=(G-D)*0.382+D;
F6184:=(G-D)*0.618+D;
F3825:=(G-D)*0.382+G;
F6186:=(G-D)*0.618+G;
DRAWNUMBER(ISLASTBAR,F6181-900,F6181,1,COLORWHITE);
DRAWNUMBER(ISLASTBAR,F3822-600,F3822,1,COLORYELLOW);
DRAWNUMBER(ISLASTBAR,D-300,D,1,COLORLIGHTGREY);
DRAWNUMBER(ISLASTBAR,F3823,F3823,1,COLORGREEN);
DRAWNUMBER(ISLASTBAR,F6184+300,F6184,1,COLORMAGENTA);
DRAWNUMBER(ISLASTBAR,G+600,G,0,COLORLIGHTGREY);
DRAWNUMBER(ISLASTBAR,F3825+900,F3825,1,COLORRED);
DRAWNUMBER(ISLASTBAR,F6186+1200,F6186,1,COLORCYAN);
12、神奇波段线
QUSHI:=SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1);
FILLRGN(QUSHI>50,QUSHI,50,COLORYELLOW);//当满足条件 QUSHI>50 在 QUSHI和50之间画带状线
FILLRGN(QUSHI<50,QUSHI,50,RGB(0,100,50));//当满足条件 QUSHI<50 在 QUSHI和50之间画带状线
ZHUANZQIANG:=IFELSE(QUSHI>50,QUSHI,0);//输出转强:如果趋势>50,返回趋势,否则返回0
ZHUANRUO:=IFELSE(QUSHI<50,QUSHI,0);//输出转弱:如果趋势<50,返回趋势,否则返回无效数,画绿色
RSV:=(CLOSE-LLV(CLOSE,9))/(HHV(CLOSE,9)-LLV(CLOSE,9))*100;//RSV赋值:(收盘价-9日内收盘价的最低值)/(9日内收盘价的最高值-9日内收盘价的最低值)*100
K:=SMA(RSV,3,1);//K赋值:RSV的3日[1日权重]移动平均
D:=SMA(K,3,1);//D赋值:K的3日[1日权重]移动平均
TYP:=(HIGH+LOW+CLOSE)/3;//TYP赋值:(最高价+最低价+收盘价)/3
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));//CCI赋值:(TYP-TYP的14日简单移动平均)/(0.015*TYP的14日平均绝对偏差)
DIFF:=EMA(CLOSE,2)-EMA(CLOSE,55);//DIFF赋值:收盘价的2日指数移动平均-收盘价的55日指数移动平均
DEA:=EMA(DIFF,6);//DEA赋值:DIFF的6日指数移动平均
MACD:=2*(DIFF-DEA);//MACD赋值:2*(DIFF-DEA)
ZHUANDIAN:=IFELSE(K>D AND CCI>0 AND DIFF>DEA AND MACD>0,1,0);//转点赋值:如果K>DANDCCI>0ANDDIFF>DEAANDMACD>0,返回1,否则返回0
STICKLINE(ZHUANDIAN=1,50,50,COLORYELLOW,0);//当满足条件转点=1时,在50和50位置之间画柱状线,画黄色
STICKLINE(ZHUANDIAN=0,50,50,COLORCYAN,0);//当满足条件转点=0时,在50和50位置之间画柱状线,画青色
STICKLINE(C,90,90,COLORYELLOW,0);//当满足条件收盘价时,在90和90位置之间画柱状线,画黄色
STICKLINE(C,10,10,COLORCYAN,0);//当满足条件收盘价时,在10和10位置之间画柱状线,画青色
PANDUAN:=SMA(QUSHI,3,1);//输出判断:趋势的3日[1日权重]移动平均,画黄色 IFELSE(PANDUAN>50 AND QUSHI>PANDUAN,PANDUAN,0 ),COLORYELLOW;//如果判断>50AND趋势>判断,返回判断,否则返回0,画黄色
DINGBU:90,RGB(0,255,255);//输出顶部:90
LC:= REF(CLOSE,1);//LC赋值: 昨收
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;//RSI赋值:收盘价-LC和0的较大值的6日[1日权重]移动平均/收盘价-LC的绝对值的6日[1日权重]移动平均*100
VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;//VAR1赋值:(9日内最高价的最高值-收盘价)/(9日内最高价的最高值-9日内最低价的最低值)*100-70
VAR2:=SMA(VAR1,9,1)+100;//VAR2赋值:VAR1的9日[1日权重]移动平均+100
VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;//VAR3赋值:(收盘价-9日内最低价的最低值)/(9日内最高价的最高值-9日内最低价的最低值)*100
VAR4:=SMA(VAR3,3,1);//VAR4赋值:VAR3的3日[1日权重]移动平均
VAR5:=SMA(VAR4,3,1)+100;//VAR5赋值:VAR4的3日[1日权重]移动平均+100
VAR6:=VAR5-VAR2;//VAR6赋值:VAR5-VAR2
QUSHI1:=IFELSE(VAR6>45,VAR6-45,0);//输出趋势1: 如果VAR6>45,返回VAR6-45,否则返回0
VAR2Q:=REF(LOW,1);//VAR2Q赋值:昨日最低价
VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;//VAR3Q赋值:最低价-VAR2Q的绝对值的3日[1日权重]移动平均/最低价-VAR2Q和0的较大值的3日[1日权重]移动平均*100
VAR4Q:=EMA(IFELSE(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);//VAR4Q赋值:如果收盘价*1.3,返回VAR3Q*10,否则返回VAR3Q/10的3日指数移动平均
VAR5Q:=LLV(LOW,30);//VAR5Q赋值:30日内最低价的最低值
VAR6Q:=HHV(VAR4Q,30);//VAR6Q赋值:30日内VAR4Q的最高值
VAR7Q:=IFELSE(MA(CLOSE,58),1,0);//VAR7Q赋值:如果收盘价的58日简单移动平均,返回1,否则返回0
VAR8Q:=EMA(IFELSE(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/999*VAR7Q;//VAR8Q赋值:如果最低价<=VAR5Q,返回(VAR4Q+VAR6Q*2)/2,否则返回0的3日指数移动平均/999*VAR7Q
HUOYANSHAN:=IFELSE(VAR8Q>100,100,VAR8Q);//火焰山赋值:如果VAR8Q>100,返回100,否则返回VAR8Q
STICKLINE(HUOYANSHAN>0,0 ,HUOYANSHAN*1.2,RGB(243,217,244),0 );//当满足条件火焰山>0时,在0和火焰山*1.2位置之间画柱状线
STICKLINE(HUOYANSHAN>0,0 ,HUOYANSHAN*1.2,RGB(243,217,244),0 );//当满足条件火焰山>0时,在0和火焰山*1.2位置之间画柱状线
STICKLINE(HUOYANSHAN>0,0 ,HUOYANSHAN*1.2,RGB(233,168,236),0 );//当满足条件火焰山>0时,在0和火焰山*1.2位置之间画柱状线
STICKLINE(REF(QUSHI1,1)< QUSHI1, QUSHI1,REF(QUSHI1,1),RGB(0,240,0),0);//当满足条件昨日趋势1<趋势1时,在趋势1和昨日趋势1位置之间画柱状线
STICKLINE(REF(QUSHI1,1)< QUSHI1, QUSHI1,REF(QUSHI1,1),RGB(0,240,0),0);//当满足条件昨日趋势1<趋势1时,在趋势1和昨日趋势1位置之间画柱状线
STICKLINE(REF(QUSHI1,1)< QUSHI1, QUSHI1,REF(QUSHI1,1),RGB(0,240,0),0);//当满足条件昨日趋势1<趋势1时,在趋势1和昨日趋势1位置之间画柱状线
STICKLINE(REF(QUSHI1,1)< QUSHI1, QUSHI1,REF(QUSHI1,1),COLORRED,0);//当满足条件昨日趋势1<趋势1时,在趋势1和昨日趋势1位置之间画柱状线
STICKLINE(REF(QUSHI1,1)> QUSHI1, QUSHI1,REF(QUSHI1,1),RGB(255,0,255),0);//当满足条件昨日趋势1>趋势1时,在趋势1和昨日趋势1位置之间画柱状线
STICKLINE(REF(QUSHI1,1)> QUSHI1, QUSHI1,REF(QUSHI1,1),RGB(128,128,255),0);//当满足条件昨日趋势1>趋势1时,在趋势1和昨日趋势1位置之间画柱状线
STICKLINE(REF(QUSHI1,1)> QUSHI1, QUSHI1,REF(QUSHI1,1),RGB(0,240,0),0);//当满足条件昨日趋势1>趋势1时,在趋势1和昨日趋势1位置之间画柱状线
TAODING:=CROSS(82,RSI);//逃顶赋值:82上穿RSI
STICKLINE( TAODING,TAODING,20,COLORRED,0);//当满足条件逃顶时,在逃顶和20位置之间画柱状线
STICKLINE( TAODING,TAODING,30,RGB(0,240,0),0);//当满足条件逃顶时,在逃顶和30位置之间画柱状线
STICKLINE( TAODING,TAODING,30,RGB(0,128,255),0);//当满足条件逃顶时,在逃顶和30位置之间画柱状线
STICKLINE( TAODING,TAODING,30,RGB(0,255,255),0);//当满足条件逃顶时,在逃顶和30位置之间画柱状线
D1:=(C+L+H)/3; //D1赋值:(收盘价+最低价+最高价)/3
D2:=EMA(D1,6); //D2赋值:D1的6日指数移动平均
D3:=EMA(D2,5);//D3赋值:D2的5日指数移动平均
BBUY:=CROSS(D2,D3);//BBUY赋值:D2上穿D3
VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;//VARR1赋值:收盘价-昨收和0的较大值的6日[1日权重]移动平均/收盘价-昨收的绝对值的6日[1日权重]移动平均*100
SHENQIXIANXUANGU:=(CROSS(QUSHI,PANDUAN) AND QUSHI<80);//输出神奇线选股:(趋势上穿判断 AND 趋势<80)
BODUANXUANGU:=(BBUY);//输出波段选股:(BBUY)
STICKLINE(SHENQIXIANXUANGU AND BODUANXUANGU,0,100,COLORWHITE,0);//当满足条件神奇线选股AND波段选股时,在0和100位置之间画柱状线
13、火焰山
AR2:=REF(LOW,1);
AR3:=SMA(ABS(LOW-AR2),3,1)/SMA(MAX(LOW-AR2,0),3,1)*100;
AR4:=EMA(IFELSE(CLOSE*1.3,AR3*10,AR3/10),3);
AR5:=LLV(LOW,30);
AR6:=HHV(AR4,30);
AR7:=IFELSE(MA(CLOSE,58),1,0);
AR8:=EMA(IFELSE(LOW<=AR5,(AR4+AR6*2)/2,0),3)/618*AR7;
AR9:=IFELSE(AR8>100,100,AR8);
STICKLINE(AR9>-150,0,AR9/100,3,1),COLORRED;
14、洗钱
XQA:=(CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE;
XQB:=SMA(XQA,13,1);
XQC:SMA(XQB,5.5,1.5),COLORCYAN;
XQD:3*XQB-2*XQC,COLORYELLOW;
XQE:4*XQC-3*XQB,COLORMAGENTA;
L1:=EMA(XQA,3);
L2:=EMA(XQA,5);
L3:=EMA(XQA,7);
STICKLINE(L1>L2,L3,L1,COLORRED,1);
STICKLINE(L1 T1:=L2>L3&& L1 T2:=L2REF(L1,1);
STICKLINE(T1,L1,L3,COLORRED,0);
STICKLINE(T2,L1,L3,COLORGREEN,0);
15、民间操盘手
ZX:=(C+0.618*REF(C,1)+0.382*REF(C,1)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;
CPX:=EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW;
HJX:=IFELSE(ZX>=CPX,CPX,CPX),COLORRED;
KCX:IFELSE(ZX YIN:=EMA(CLOSE,2),COLORMAGENTA;
TANN:=MA(CLOSE,5);
BIAN:=EMA(CLOSE,5),COLORYELLOW;
JIN:=IFELSE(BIAN>REF(BIAN,1),BIAN,BIAN),COLORRED;
KONG:=IFELSE(BIAN DA:=(EMA(H,1)+EMA(L,1)+EMA(H,1)+EMA(H,1))/4;
DB:=EMA(REF(HHV(H,25),1),2),COLORGREEN;
16、止损线
N:=9;
M1:=9;
M2:=9;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:=3*K-2*D;
A:=CROSS(K,D);
B:=CROSS(D,K);
DRAWTEXT(A,H,'----------------'),COLORRED;
DRAWTEXT(B,L,'----------------'),COLORGREEN;