RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),LINETHICK2,COLORWHITE;
D:SMA(K,3,1),LINETHICK2,COLOR00DDDD;
J:3*K-2*D,LINETHICK2,COLORRED;
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),LINETHICK0,COLOR0099FF;
DEA :EMA(DIF,9),LINETHICK0,COLORD89837;
MACD:2*(DIF-DEA),COLORFF9999,LINETHICK0;
YLZC:=IF(CLOSE=INDEXC,(INDEXC+INDEXH+INDEXL+INDEXO)/4,AMOUNT/(VOL+0.01)/100);
阻价:=IF(CLOSE=INDEXC,YLZC+INDEXC-INDEXL,YLZC+(CLOSE-LOW));
支价:=IF(CLOSE=INDEXC,INDEXL+INDEXC-YLZC,LOW+(CLOSE-YLZC));
今压:REF(阻价,1),LINETHICK0,COLORAA11BB;
今撑:REF(支价,1),LINETHICK0,COLOR009900;
明压:阻价,LINETHICK0;
明撑:支价,LINETHICK0;
RSV1:=(HHV(H,9.8)-C)/(HHV(H,9.8)-LLV(L,9.8))*101;
KK:=SMA(RSV1,3,1);
DD:=SMA(KK,3,1);
JJ:=3*KK-2*DD;
买卖:=IF(JJ>=100,100,IF(JJ<=0,0,JJ));
明天买:IF(买卖=100,0-10,0),COLOR00CCCC;
明天卖:IF(买卖=0,90,100),COLOR00FF00;
KX:=250;
KH:=HHV(K,KX);
DH:=HHV(D,KX);
JH:=HHV(J,KX);
KL:=LLV(K,KX);
DL:=LLV(D,KX);
JL:=LLV(J,KX);
HKMAX:=MAX(KH,MAX(DH,JH));
LKMIN:=MIN(KL,MIN(DL,JL));
KHLB:=(HKMAX+LKMIN)/2;
KHLC:=HKMAX-LKMIN;
MHF:=HHV(DIF,KX);
MHD:=HHV(DEA,KX);
MHM:=HHV(MACD,KX);
MLF:=LLV(DIF,KX);
MLD:=LLV(DEA,KX);
MLM:=LLV(MACD,KX);
HMAX:=MAX(MHF,MAX(MHD,MHM));
LMIN:=MIN(MLF,MIN(MLD,MLM));
FHLB:=(HMAX-LMIN)/100;
FHLC:=HMAX-LMIN;
SH:=(0-FHLB)*(KHLC/FHLC)+KHLB;
DIFA:=(DIF-FHLB)*(KHLC/FHLC)+KHLB;
DEAA:=(DEA-FHLB)*(KHLC/FHLC)+KHLB;
MACDA:=(MACD-FHLB)*(KHLC/FHLC)+KHLB;
CDA:=MACD0;
CDB:=MACD>=REF(MACD,1) AND MACD>0;
CDC:=MACD>REF(MACD,1) AND MACD<0;
CDD:=MACD<=REF(MACD,1) AND MACD<0;
STICKLINE(CDA,SH,MACDA,2,0),COLOR00AAFF;{黄色段}
STICKLINE(CDB,SH,MACDA,2,0),COLOR0000AA; {红色段}
STICKLINE(CDC,SH,MACDA,2,0),COLORAA00BB;{向上粉红}
TYP:=(HIGH+LOW+CLOSE)/3;
STICKLINE(DIF>REF(DIF,1),20,20,2,0),COLORRED;
STICKLINE(DIF
STICKLINE(K>=REF(K,1) OR K>D AND DIF>REF(DIF,1),80,80,2,1),COLORRED;
STICKLINE(K
MACD金叉:=CROSS(MACD,DIF) AND MACD>=(0-0.05) AND MACD<=0.02;
DRAWTEXT(MACD金叉,MACDA*0.82,'▲MACD金叉'),COLOR00FFFF;
XX:=EMA(MA(LOW,3)*0.96,30);
DIF金叉:=IF(CROSS(DIF,DEA) AND XX-REF(XX,1)>0 AND MACD>=REF(MACD,1) AND DIF<=0,1,0);
DRAWTEXT(DIF金叉=1,DIFA*1.08,'DIF金叉'),COLORCDFFBB;
低位金叉:=CROSS(DIF,DEA) AND DIF<-0.1;
DRAWTEXT(低位金叉,DEAA*0.99,'▲DIF低位金叉'),COLOR0099DD;
DIFDEA:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(DIFDEA=2,21)=1;
DRAWTEXT(二次金叉,DEAA*0.99-8,'▲DIF 二次金叉'),COLORFF00FF;
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA);
DRAWTEXT(底背离,DEAA*0.99-16,'▲DIF底背离'),COLOR0099FF;
A2:=BARSLAST(REF(CROSS(DEA,DIF),1));
顶背离:=REF(CLOSE,A2+1)
DRAWTEXT(FILTER(顶背离,5),DEAA*1.01,'▲DIF顶背离'),COLORDDAAAA;
MD1:=MA(CLOSE,80)-MA(CLOSE,13)/3;
MD2:=MA((CLOSE-MD1)/MD1,3);
买点1:=CROSS(MD2,0) AND LOW/REF(HIGH,1)<1.012 AND J<75 AND J>REF(J,1);
MA12:=MA(CLOSE,12);
佳点:=IF(FILTER(MACD>=REF(MACD,5) AND OPEN<=REF(CLOSE,1) AND XX-REF(XX,1)>0 AND MACD<=0 AND MA12-REF(MA12,1)>=0,3) AND J<80 AND J>REF(J,1) AND D>REF(D,1) AND (DIF>=REF(DIF,1) OR DEA>=REF(DEA,1)),1,0);
DRAWTEXT(佳点=1,MACDA*0.98,'★佳点'),COLOR0099FF;
DX0:=EMA(CLOSE,2)-EMA(OPEN,5);
DX1:=IF(CROSS(DX0,MACD) AND LOW<=XX AND MACD<=(0-0.11) AND (J<20 OR K<20),1,0);
DRAWTEXT(FILTER(DX1,3),0,'★短10%'),COLOR00CC00;{短线}
MA10:=MA(CLOSE,10);
SS:=EMA(MA(HIGH,3)*1.05,30);
LQS:=IF(FILTER(0.7*(CROSS(DIF,DEA) AND CLOSE
DRAWTEXT(LQS=1,MACDA*0.98,'★量价齐上'),COLORCDFFDD;{量价齐上}
最佳点:=IF(COUNT(MD2>REF(MD2,1),3)=3 AND COUNT(MD2<0,10)=10 AND REF(MD2,3)=LLV(MD2,10) AND J<80 AND J>REF(J,1),1,0);
DRAWTEXT(最佳点=1,J,'★最佳点'),COLORFF00CC;
买点2:=REF(MD2,2)=LLV(MD2,20) AND REF(MD2,2)<0.071 AND REF(MD2,2)
NOT(REF(LOW,1)>REF(HIGH,2) AND LOW>REF(HIGH,1)) AND CLOSE>REF(CLOSE,1) AND J<75 AND J>REF(J,1);
DRAWTEXT(买点1 OR 买点2,D-1,'买'),COLORFF00CC;
{预涨}
YZ:=(INTPART(SMA(RSV,3,1))+INTPART(SMA(K,3,1)))/2;
预涨:=CROSS(YZ,50) AND J<95 AND DIF>REF(DIF,1) AND LOW
DRAWTEXT(预涨,D*0.6,'★预涨'),COLORA52A2A;
中J55:"KDJ.J"(55,13,3),COLORFFFF00,LINETHICK2;
长J120:"KDJ.J"(120,30,3),COLORFF00FF,LINETHICK2;
长J89:"KDJ.J"(89,21,3),COLOR00FF00,LINETHICK2;
VAR200:=REF(LOW,1);
VAR300:=SMA(ABS(LOW-VAR200),3,1)/SMA(MAX(LOW-VAR200,0),3,1)*100;
VAR400:=EMA(IF(CLOSE*1.3,VAR300*10,VAR300/10),3);
VAR500:=LLV(LOW,8);
VAR600:=HHV(VAR400,8);
VAR700:=IF(MA(CLOSE,34),1,0);
VAR800:=EMA(IF(LOW<=VAR500,(VAR400+VAR600*2)/2,0),3)/618*VAR700;
VAR900:=IF(VAR800>100,100,VAR800);
吸筹:VAR900,LINETHICK1;
{STICKLINE(VAR900>-120,0,VAR900,8,1),COLORF00FF0;};
IF(J<0,J,DRAWNULL),COLORGREEN,LINETHICK2;
IF(K>90,K,DRAWNULL),COLOR0000FF,LINETHICK2;
IF(D>85,D,DRAWNULL),COLORFFFF11,LINETHICK2;
DRAWICON(CROSS(J,1),J,1);
DRAWICON(K>80 AND D>80 AND CROSS(D,K),D,2);
IF(J>100,J,DRAWNULL),COLORRED,LINETHICK2;
DRAWICON(CROSS(J,99),J,99);
VARB2:=(RSV/2+22)*1;
量:=EMA(VOL,13);
资金:=EMA(AMOUNT,13);
过滤:=((资金 /量) / 100);
提纯:=(((CLOSE -过滤) / 过滤) * 100);
黄金:=((提纯 < (0)) AND ZXNH),COLORRED;
低买:IF(黄金 AND RSV
上涨分界:20;
DRAWTEXT(CROSS(低买,上涨分界),上涨分界+REF(C,1),'←次日买');
重心线:(H+L+O+C*3)/6;
NX:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:=(20*NX+19*REF(NX,1)+18*REF(NX,2)+17*REF(NX,3)+16*REF(NX,4)
+15*REF(NX,5)+14*REF(NX,6)+13*REF(NX,7)+12*REF(NX,8)+11*REF(NX,9)
+10*REF(NX,10)+9*REF(NX,11)+8*REF(NX,12)+7*REF(NX,13)+6*REF(NX,14)
+5*REF(NX,15)+4*REF(NX,16)+3*REF(NX,17)
+2*REF(NX,18)+REF(NX,20))/210;
牛熊线:MA(牛线,5),COLORGREEN,LINETHICK2;
简底:=H>REF(H,1) AND REF(H,1)REF(L,1) AND REF(L,1)
简顶:=HREF(H,2) AND LREF(L,2);
包含1:=REF(H,1)>=REF(H,2) AND REF(L,1)<=REF(L,2);
包含2:=REF(H,1)<=REF(H,2) AND REF(L,1)>=REF(L,2);
包底1:=H>REF(H,2) AND REF(H,2)REF(L,1) AND REF(L,1)
包底2:=H>REF(H,1) AND REF(H,1)REF(L,2) AND REF(L,2)
包顶1:=HREF(H,3) AND LREF(L,3);
包顶2:=HREF(H,3) AND LREF(L,3);
复底:=IF(包含1,包底1,IF(包含2,包底2,简底));
复顶:=IF(包含1,包顶1,IF(包含2,包顶2,简顶));
底分型:=IF(BARSLAST(CROSS(牛熊线,重心线))>3,FILTER(BACKSET(FILTER(复底 AND 重心线<牛熊线,3),2),1),0);
顶分型:=IF(BARSLAST(CROSS(重心线,牛熊线))>3,FILTER(BACKSET(FILTER(复顶 AND 重心线>牛熊线,3),2),1),0);
STICKLINE(底分型,C,O,8,0),COLORFF00FF,LINETHICK2;
STICKLINE(底分型,C,O,3,0),COLORFF00FF,LINETHICK2;
STICKLINE(底分型,H,L,1,0),COLORFF00FF,LINETHICK2;
STICKLINE(顶分型,C,O,8,0),COLORYELLOW,LINETHICK2;
STICKLINE(顶分型,C,O,3,0),COLORYELLOW,LINETHICK2;
STICKLINE(顶分型,H,L,1,0),COLORYELLOW,LINETHICK2;
DRAWTEXT(底分型,L*0.99,'底型'),COLORYELLOW,LINETHICK1;
DRAWTEXT(顶分型,H*1.02,'顶型'),COLORYELLOW,LINETHICK1;
K13:EXPMA(C,204) ,COLORWHITE;
K14:EXPMA(C,216) ,COLORWHITE;
K15:EXPMA(C,228) ,COLORWHITE;
K16:EXPMA(C,260) ,COLORWHITE;
K1:EXPMA(C,6),COLORRED;
K2:EXPMA(C,14) ,COLORRED;
K3:EXPMA(C,20) ,COLORRED;
K4:EXPMA(C,24) ,COLORLIGREEN;
K5:EXPMA(C,30) ,COLORYELLOW;
K6:EXPMA(C,36) ,COLORYELLOW;
K7:EXPMA(C,42) ,COLORYELLOW;
K8:EXPMA(C,48) ,COLORYELLOW;
K9:EXPMA(C,100) ,COLORBLUE;
K10:EXPMA(C,112) ,COLORBLUE;
K11:EXPMA(C,124) ,COLORBLUE;
K12:EXPMA(C,138) ,COLORBLUE;
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;
STICKLINE(J>50,C,O,2,0),COLORFF0000;
STICKLINE(J>50,H,L,0,0),COLORFF0000;
STICKLINE(J<50,C,O,2,0),COLORFFFF00;
STICKLINE(J<50,H,L,0,0),COLORFFFF00;
STICKLINE(CROSS(50,J),CLOSE,OPEN,2,0),COLORYELLOW;
STICKLINE(CROSS(50,J),H,L,0,0),COLORYELLOW;
STICKLINE(CROSS(J,50),CLOSE,OPEN,2,0),COLORRED;
STICKLINE(CROSS(J,50),H,L,0,0),COLORRED;
nbh
XZ:=1;
MA5:MA(VOL,5)*XZ,LINETHICK2;
MA20:MA(VOL,20)*XZ,LINETHICK2;
MA120:MA(VOL,120)*XZ,LINETHICK3;
MA60:MA(VOL,60)*XZ,LINETHICK1;
虚拟VOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL)*XZ,NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虚拟VOL,0,-1,-1)*XZ,COLOR00C0C0;
VOLUME:VOL*XZ,VOLSTICK;
量能饱和:(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26)*100*XZ,NODRAW;
十日换手:SUM(V/CAPITAL*100,10)*XZ;
昨换手率:REF(DYNAINFO(37),1)*XZ,NODRAW COLORGRAY;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN))*XZ;
主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE
STICKLINE(主动买盘>0,0,主动买盘,1,0),COLORRED;
STICKLINE(主动卖盘<0,VOL,主动买盘,1,0),COLOR00FF00;
换手:=VOL/CAPITAL*100*XZ,NODRAW;
STICKLINE(换手>0 ,0, 主动买盘,0,0),COLORYELLOW;
STICKLINE(换手>0,VOL, 主动买盘, 0,0) ,COLORRED;
内外比:BUYVOL/SELLVOL*XZ;
成交额增幅:AMOUNT/REF(AMOUNT,1)*XZ,NODRAW;
N1:=5;N2:=10;N3:=600;
LC:=REF(CLOSE,1);
A0:=(2*C+H+L)/4;
A1:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*10;
VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),0),COLOR0000FF;
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),0),COLOR00FF00;
BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
REF(DOWN,1)REF(DOWN,1);
N:=10;
DIFF:(EMA(DCLOSE,10)-EMA(DCLOSE,21))*N3,COLORCYAN,LINETHICK2;
DEA:EMA(DIFF,7),COLOR1474FF,LINETHICK3;
TJ1:EMA(DEA,3),COLORWHITE,LINETHICK3;
TJ2:EMA(DEA,5),COLORMAGENTA;
F:=CROSS(DIFF,DEA);
G:=CROSS(DEA,DIFF);
DRAWICON(F,DEA-2.6,13);
DRAWICON(G,DEA+1.1,6);
DIFFA := EMA(OSC,12) - EMA(OSC,25);
DEAA := EMA(DIFFA,8);
MACD := 2*(DIFFA-DEAA);
D1:=EMA(DIFF,3)-EMA(DIFF,8);
D2:=EMA(O,3)-EMA(O,8);
D3:=EMA(H,3)-EMA(H,8);
D4:=EMA(L,3)-EMA(L,8);
STICKLINE(DIFF>=DEA,DIFF,DEA,1,0),COLOR0055AA;
STICKLINE(DIFF<=DEA,DIFF,DEA,0.8,0),COLOR006600;
STICKLINE(DIFF>=DEA,DIFF,DEA,0.6,0),COLOR0077CC;
STICKLINE(DIFF>=DEA,DIFF,DEA,0.3,0),COLOR0099DD;
STICKLINE(DIFF>=DEA,D3,D4,0.1,0),COLOR00BBFF;
STICKLINE(DIFF<=DEA,DIFF,DEA,0.8,0),COLOR009900;
STICKLINE(DIFF<=DEA,DIFF,DEA,0.5,0),COLOR00BB00;
STICKLINE(DIFF<=DEA,DIFF,DEA,0.2,0),COLOR00EE00;
S1:=MACD0,COLORBLUE;
S2:=MACD
STICKLINE(MACD>=0,MACD,0,4,1),COLORRED;
STICKLINE(S1,0,MACD,4,1),COLOR00FFFF;
B1:=(HHV(H,5)-C)/(HHV(H,5)-LLV(LOW,5))*100- 99;
B2:=SMA(B1,5,1)+100;
B3:=(C-LLV(L,5))/(HHV(H,5)- LLV(L,5))*100+1;
B4:=SMA(B3,3,1);
B5:=SMA(B4,3,1)+100;
B6:=B5-B2;
B7:IF(B6>55,B6-55,0);
持有:STICKLINE(REF(B7,1)
VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3); A1J:=REF(CLOSE,2);
DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA1:=EMA(DIF1,9);
{柱状线}
AAA1:=(DIF1-DEA1)*2*600;
AAA上:IF(AAA1>REF(AAA1,1),AAA1,DRAWNULL),
STICK,COLORRED,LINETHICK1;
AAA下:IF(AAA1
VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
VAR2AAA:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)
果断买入:IF(VAR2AAA AND COUNT(VAR2AAA,3)=1,50.5,0),STICK,LINETHICK5,COLORRED;
组合买: (VAR11+VAR13+VAR15+VAR17), , COLORRED,NODRAW;
DRAWTEXT(VAR11+VAR13+VAR15+VAR17,40.3,'组买'),COLORYELLOW;
DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),50.4,'绝佳') ,LINETHICK2,COLORYELLOW;
VAR31:=MA(HHV(HIGH,488),18);
VAR32:=MA(HHV(HIGH,220),18);
VAR33:=MA(HHV(HIGH,98),18);
VAR34:=MA(LLV(LOW,488),18);
VAR35:=MA(LLV(LOW,220),18);
VAR36:=MA(LLV(LOW,98),18);
VAR37:=MA((((((((VAR34 * 0.96) + (VAR35 * 0.96)) + (VAR36 * 0.96)) + (VAR31 * 0.558)) + (VAR32 * 0.558)) + (VAR33 * 0.558)) / 6),18);
VAR38:=MA((((((((VAR34 * 1.25) + (VAR35 * 1.23)) + (VAR36 * 1.2)) + (VAR31 * 0.55)) + (VAR32 * 0.55)) + (VAR33 * 0.65)) / 6),18);
VAR39:=MA((((((((VAR34 * 1.3) + (VAR35 * 1.3)) + (VAR36 * 1.3)) + (VAR31 * 0.68)) + (VAR32 * 0.68)) + (VAR33 * 0.68)) / 6),18);
VAR40:=MA((((((VAR37 * 3) + (VAR38 * 2)) + VAR39) / 6) * 1.738),18);
VAR41:=VAR40;
VAR42:=LOW;
VAR43:=REF(LOW,1);
VAR44:=((SMA(ABS((VAR42 - VAR43)),3,1) / SMA(MAX((VAR42 - VAR43),0),3,1)) * 100);
VAR45:=MA(IF(((CLOSE * 1.35) <= VAR41),(VAR44 * 10),(VAR44 / 10)),3);
VAR46:=LLV(LOW,30);
VAR47:=HHV(VAR45,30);
VAR49:=IF((LOW <= VAR46),((VAR45 + (VAR47 * 2)) / 2),0);
提示:50*(MA((VAR49 AND (CLOSE < COST(1))),3)),COLORFFFF00,LINETHICK2;
A2J:=SMA(MAX(CLOSE-A1J,0),7,1)/SMA(ABS(CLOSE-A1J),7,1)*100;
金矿门:IF(A2J<19,30,0)COLOR00FFFF,LINETHICK2.8;
上一篇:风险参谋副图源码 下一篇:多空指标主图全新多空线