主图
参数
N1 1 100 6
重心:(2*C+H+L)/4,COLOR00FFFF,LINETHICK0;
SJ:=WMA((重心-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);
ZJ:=WMA(0.618*REF(SJ,1)+0.382*SJ,2);
DRAWTEXT(CROSS(SJ,ZJ) AND SJ<30,L-0.1,'←低吸'),COLOR00FF00;
DRAWTEXT(CROSS(ZJ,SJ) AND SJ>70,H+0.1,'←高抛'),COLOR0077FF;
A1:=EMA(C,14)COLORWHITE,LINETHICK1;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
突破:REF(EMA(C,14),1),NODRAW;
距离:(C-突破)/突破*100,NODRAW;
出击:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL)COLORRED,LINETHICK1;
休假:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL)COLORGREEN,LINETHICK1;
涨幅:IF(A1X>=0,(C-出击)/出击*100,DRAWNULL)NODRAW;
跌幅:IF(A1X<0,(C-休假)/休假*100,DRAWNULL)NODRAW;
♂10%:IF(H>=出击*1.1,出击*1.1,DRAWNULL),COLORRED,POINTDOT,LINETHICK4;
♂20%:IF(H>=出击*1.2,出击*1.2,DRAWNULL),COLORRED,POINTDOT,LINETHICK4;
♂30%:IF(H>=出击*1.3,出击*1.3,DRAWNULL),COLORRED,POINTDOT,LINETHICK4;
♀Ⅰ:IF(L<休假*0.9,休假*0.9,DRAWNULL),COLORGREEN,POINTDOT,LINETHICK4;
♀Ⅱ:IF(L<休假*0.8,休假*0.8,DRAWNULL),COLORGREEN,POINTDOT,LINETHICK4;
♀Ⅲ:IF(L<休假*0.7,休假*0.7,DRAWNULL),COLORGREEN,POINTDOT,LINETHICK4;
STICKLINE(CROSS(A1X,0),C,O,2,0)COLORYELLOW;
STICKLINE(CROSS(0,A1X),C,O,2,0)COLORGREEN;
STICKLINE(CROSS(A1X,0)OR CROSS(0,A1X),REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,2,0)COLORWHITE;
STICKLINE(ISLASTBAR,REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,5,0)COLORWHITE;
A11:DRAWLINE(HIGH>=HHV(HIGH,5),HIGH,LOW<=LLV(LOW,5),LOW,0);
B1:DRAWLINE(LOW<=LLV(LOW,5),LOW,HIGH>=HHV(HIGH,5),HIGH,0);
A2:DRAWLINE(HIGH>=HHV(HIGH,13),HIGH,LOW<=LLV(LOW,13),LOW,0),COLORCYAN;
B2:DRAWLINE(LOW<=LLV(LOW,13),LOW,HIGH>=HHV(HIGH,13),HIGH,0);
A3:DRAWLINE(HIGH>=HHV(HIGH,34),HIGH,LOW<=LLV(LOW,34),LOW,0);
B3:DRAWLINE(LOW<=LLV(LOW,34),LOW,HIGH>=HHV(HIGH,34),HIGH,0);
A4:DRAWLINE(HIGH>=HHV(HIGH,55),HIGH,LOW<=LLV(LOW,55),LOW,0);
B4:DRAWLINE(LOW<=LLV(LOW,55),LOW,HIGH>=HHV(HIGH,55),HIGH,0);
MTM:=C-REF(C,1);
ZLGJ:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1);
买1:=IF(LLV(ZLGJ,2)=LLV(ZLGJ,7) AND COUNT(ZLGJ<0,2) AND CROSS(ZLGJ,MA(ZLGJ,2)),1,0);
卖1:=IF(HHV(ZLGJ,2)=HHV(ZLGJ,7) AND COUNT(ZLGJ>50,2) AND CROSS(MA(ZLGJ,2),ZLGJ),1,0);
DRAWICON(FILTER(买1=1,5),LOW*0.99,7),COLORRED;
STICKLINE(FILTER(买1=1,5),C,O,1,0),COLORRED;
DRAWICON(FILTER(卖1=1,1),H*1.01,8),COLOR00FF00;
STICKLINE(FILTER(卖1=1,1),C,O,1,0),COLOR00FF00;
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
BDGD:=HHV(J,2)=HHV(J,8) AND J>80;
注意:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0);
DRAWTEXT(注意 AND 卖1<1,HIGH*1.01,'J'),COLOR00FF00,LINETHICK3;
STICKLINE(注意 AND 卖1<1,O,CLOSE,1,0),COLORYELLOW,LINETHICK2;
时间窗口01:=FILTER(IF(HHVBARS(HIGH,5),0,H),5),COLORFFFF00;
DRAWTEXT(时间窗口01,HIGH*0.99,'5');
时间窗口02:=FILTER(IF(LLVBARS(LOW,5),0,L),5),COLOR00FFFF;
DRAWTEXT(时间窗口02,LOW*0.99,'5');
时间窗口1:=FILTER(IF(HHVBARS(HIGH,13),0,1),13),COLOR00FF00;
DRAWTEXT(时间窗口1,HIGH*0.99,'13');
时间窗口2:=FILTER(IF(LLVBARS(LOW,13),0,1),13),COLOR0000FF;
DRAWTEXT(时间窗口2,LOW*0.99,'13');
时间窗口3:=FILTER(IF(HHVBARS(HIGH,34),0,2),34),COLOR55FF55;
DRAWTEXT(时间窗口3,HIGH*0.99,'34');
时间窗口4:=FILTER(IF(LLVBARS(LOW,34),0,2),34),COLOR5555FF;
DRAWTEXT(时间窗口4,LOW*0.99,'34');
时间窗口5:=FILTER(IF(HHVBARS(HIGH,55),0,30),55),COLOR99FF99;
DRAWTEXT(时间窗口5,HIGH*0.99,'55');
时间窗口6:=FILTER(IF(LLVBARS(LOW,55),0,30),55),COLORDD00FF;
DRAWTEXT(时间窗口6,LOW*0.99,'55');
时间窗口7:=FILTER(IF(HHVBARS(HIGH,89),0,40),89),COLORDDFFDD;
DRAWTEXT(时间窗口7,HIGH*0.99,'89');
时间窗口8:=FILTER(IF(LLVBARS(LOW,89),0,40),89),COLOR0055FF;
DRAWTEXT(时间窗口8,LOW*0.99,'89');
时间窗口9:=FILTER(IF(HHVBARS(HIGH,144),0,50),144),COLORDDFF00;
DRAWTEXT(时间窗口9,HIGH*0.99,'144');
时间窗口10:=FILTER(IF(LLVBARS(LOW,144),0,50),144),COLOR9955FF;
DRAWTEXT(时间窗口10,LOW*0.99,'144');
时间窗口11:=FILTER(IF(HHVBARS(HIGH,233),0,60),233),COLORDDFFFF;
DRAWTEXT(时间窗口11,HIGH*0.99,'233');
时间窗口12:=FILTER(IF(LLVBARS(LOW,233),0,60),233),COLORFF55FF;
DRAWTEXT(时间窗口12,LOW*0.99,'233');
金峰换手率副图
成交:=VOL,COLORFFFF00,LINETHICK0;
BB:=CAPITAL;
换手:成交*100/BB,LINETHICK0;
今日换手:换手,LINETHICK0;
HS:SUM(VOL,0)/CAPITAL,LINETHICK0;
换手次数:FLOOR(HS),LINETHICK0;
BBB:=IF(换手次数>0,换手次数,0);
BBB2:=IF(BBB-REF(BBB,1)>0,BBB,0);
距上次完全换手:=BARSLAST(BBB2),LINETHICK0,COLORGREEN;
平均换手天:=FLOOR((BARSCOUNT(CLOSE)-距上次完全换手)/换手次数),COLORCYAN,LINETHICK0;
A2:=成交/CAPITAL*100;
A3:=A2>3 AND A2<=5;
A4:=A2>5 AND A2<=7;
A5:=A2>7 AND A2<=10;
A6:=A2>10;
STICKLINE(A2<3 AND C>O,0,A2,3,0),COLORFFFF00;
STICKLINE(A2<3 AND C<O,0,A2,3,0),COLOR00FF00;
换手积极:STICKLINE(A3,0,A2,3,0),COLORFF8800;
换手活跃:STICKLINE(A4,0,A2,3,0),COLORYELLOW;
换手频繁:STICKLINE(A5,0,A2,3,0),COLORGREEN;
巨幅换手:STICKLINE(A6,0,A2,3,0),COLOR0000FF;
AA:=A2>1 AND A2<=3;
STICKLINE(AA,0,A2,3,0),COLORDD7700;
BBB3:=CON2STR(REF(BBB,距上次完全换手),0);
DRAWTEXT(BBB2,A2,'次换手'),COLORFFFFFF;
DRAWTEXT(换手>REF(换手,1)*2,换手*0.8,'黑马'),COLORWHITE;
MA5:MA(换手,5),COLORRED,LINETHICK2;
MA10:MA(换手,10),COLORYELLOW,LINETHICK2;
金峰周期共鸣副图
0;
70;
80;
{60分}
DIF60:=EMA(CLOSE,12/4)-EMA(CLOSE,26/4);
DEA60:=EMA(DIF60,9/4);
DRAWICON(DIF60>=DEA60,65,1);
DRAWICON(DIF60<DEA60,65,2);
{120分}
DIF120:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2);
DEA120:=EMA(DIF120,9/2);
DRAWICON(DIF120>=DEA120,60,1);
DRAWICON(DIF120<DEA120,60,2);
{180分}
DIF180:=EMA(CLOSE,12/4*3)-EMA(CLOSE,26/3*2);
DEA180:=EMA(DIF180,9/4*3);
DRAWICON(DIF180>=DEA180,55,1);
DRAWICON(DIF180<DEA180,55,2);
{1日}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
DRAWICON(DIF>=DEA,50,1);
DRAWICON(DIF<DEA,50,2);
{2日}
DIF2:=EMA(CLOSE,12*2)-EMA(CLOSE,26*2);
DEA2:=EMA(DIF2,9*2);
DRAWICON(DIF2>=DEA2,45,1);
DRAWICON(DIF2<DEA2,45,2);
{3日}{WWW.GPXIAZAI.COM}
DIF3:=EMA(CLOSE,12*3)-EMA(CLOSE,26*3);
DEA3:=EMA(DIF3,9*3);
DRAWICON(DIF3>=DEA3,40,1);
DRAWICON(DIF3<DEA3,40,2);
{4日}
DIF4:=EMA(CLOSE,12*4)-EMA(CLOSE,26*4);
DEA4:=EMA(DIF4,9*4);
DRAWICON(DIF4>=DEA4,35,1);
DRAWICON(DIF4<DEA4,35,2);
{周}
周MD:=MACD.DIF#WEEK;
周MA:=MACD.DEA#WEEK;
DRAWICON(周MD>=周MA,30,1);
DRAWICON(周MD<周MA,30,2);
{8日}
DIF8:=EMA(CLOSE,12*8)-EMA(CLOSE,26*8);
DEA8:=EMA(DIF8,9*8);
DRAWICON(DIF8>=DEA8,25,1);
DRAWICON(DIF8<DEA8,25,2);
{12日}
DIF12:=EMA(CLOSE,12*12)-EMA(CLOSE,26*12);
DEA12:=EMA(DIF12,9*12);
DRAWICON(DIF12>=DEA12,20,1);
DRAWICON(DIF12<DEA12,20,2);
{16日}
DIF16:=EMA(CLOSE,12*16)-EMA(CLOSE,26*16);
DEA16:=EMA(DIF16,9*16);
DRAWICON(DIF16>=DEA16,15,1);
DRAWICON(DIF16<DEA16,15,2);
{1月}
月MD:=MACD.DIF#MONTH;
月MA:=MACD.DEA#MONTH;
DRAWICON(月MD>=月MA,10,1);
DRAWICON(月MD<月MA,10,2);
{共振力度}
DRAWICON(DIF120>=DEA120 AND DIF180>=DEA180 AND DIF>=DEA AND DIF2>=DEA2 AND DIF3>=DEA3 AND DIF4>=DEA4 AND
周MD>=周MA AND DIF8>=DEA8 AND DIF12>=DEA12 AND DIF16>DEA16 AND 月MD>=月MA ,80,26);
DRAWICON(DIF60>=DEA60 AND DIF120>=DEA120 AND DIF180>=DEA180 AND DIF>=DEA AND DIF2>=DEA2 AND DIF3>=DEA3 AND DIF4>=DEA4 AND
周MD>=周MA AND DIF8>=DEA8 AND DIF12>=DEA12 AND DIF16>DEA16 AND 月MD>=月MA ,80,25);
金峰暴力百分三盈利副图
VARQ:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);
VARW:=(HIGH - REF(HIGH,1));
VARE:=(REF(LOW,1) - LOW);
VARR:=(SUM(IF(((VARW > 0) AND (VARW > VARE)),VARW,0),5) );
VART:=SUM(IF(((VARE > 0) AND (VARE > VARW)),VARE,0),5);
能量线:=(((VARR ) * 100) / VARQ);
快线:=((VART * 100) / VARQ);{WWW.GPXIAZAI.COM}
趋势线:=(MA(((ABS((快线 - 能量线)) / (快线 + 能量线)) * 100),3));
选股:IF(((趋势线 > 88) AND (能量线 < 5.8)),1,0),LINETHICK3,COLORRED;