组合指标主图
{N 14 2 100;M 6 1 100} AA1:=AMOUNT/VOL; BB1:=LOW<AA1*0.9; CC1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>1.2; DD1:=LOW<MA(CLOSE,5)*0.921; EE1:=VOL<MA(VOL,5)*1.5; FF1:BB1 AND CC1 AND DD1 AND EE1,LINETHICK0; VAR6:=REF(CLOSE,1); VAR7:=SMA(MAX(CLOSE-VAR6,0),6,1)/SMA(ABS(CLOSE-VAR6),6,1)*100; DRAWTEXT(CROSS(82,VAR7),HIGH*1.02,'←走吗?'),COLORYELLOW; VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0); VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0); DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'←敢追吗? '),COLORred; a001:= CLOSE-REF(CLOSE,6); a002:= MA(a001,6); a003:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; a004:=SMA(a003,3,1); a005:=SMA(a004,3,1); a006:=EMA(3*a004-2*a005,2); a007:=(HIGH + LOW + CLOSE)/3; a008:=((a007-MA(a007,14))/(0.015*AVEDEV(a007,14)))/2; a009:=(a008+((EMA((-100*(HHV(HIGH,14)-CLOSE)/ (HHV(HIGH,14)-LLV(LOW,14))+100)/100,3)*200-100)))/2; a010:=a009-REF(a009,14); a011:=a009-REF(a009,26); a012:=(a009+a010+a011)/3; kkm:=EMA(a012,4); a013:=HHV(HIGH,34); a014:=(2*CLOSE+HIGH+LOW)/4; a015:=LLV(LOW,34); a016:=EMA((a014-a015)/(a013-a015)*100,13); a017:=EMA(0.667*REF(a016,1)+0.333*a016,2); KKMD:=a016-a017> 1 and a016<30 and a017<30; KKML:=a016-a017< 0 and a016>80 and a017>80 and REF(a016-a017,1)>0 ; KKMQ:=COUNT((a016-a017)>0,2)=2; KKAL:=(a016-a017)< 0; 阻力线:=MA(CLOSE,20),colorred; 操作线:=MA(CLOSE,10); EXPLAIN(KKMD,'最佳买入时机'); EXPLAIN(KKML,'最佳卖出时机'); EXPLAIN(KKMQ,'持仓区'); EXPLAIN(KKAL,'空仓区'); EXPLAIN(CLOSE/REF(CLOSE,1)>INDEXC/REF(INDEXC,1),'该股强于大盘'); {显示解盘文字(收盘价/向前引用(收盘价,1),'该股强于大盘'); } EXPLAIN(CROSS(MA(CLOSE,5),MA(CLOSE,10)),'出出手'); EXPLAIN(CROSS(MA(CLOSE,10),MA(CLOSE,5)),'收手了'); EXPLAIN((kkm > EMA(kkm,4) and kkm > REF(kkm,1)),'考虑介入!'); EXPLAIN((kkm > EMA(kkm,4) and kkm < REF(kkm,1)),'多看少动~'); EXPLAIN((kkm < EMA(kkm,4) and kkm > REF(kkm,1)),'防御能力'); EXPLAIN((kkm < EMA(kkm,4) and kkm < REF(kkm,1)),'危险快跑!'); VAR51:=3; VAR52:=(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)); DRAWTEXT(CROSS(VAR52,VAR51), LOW,'←启动')COLORMAGENTA; A0:=(LOW+HIGH+CLOSE*2)/4; AA:=EMA(A0,14)COLORYELLOW,LINETHICK1; BB:=EMA(A0,25)COLORYELLOW,LINETHICK2; A1X:=(AA-REF(AA,1))/REF(AA,1)*100; A2X:=(BB-REF(BB,1))/REF(BB,1)*100; G:=BARSLAST(CROSS(A1X,0)); 必卖止损:REF(A0,G),COLORCYAN,LINETHICK1; A5:=EMA(CLOSE,12)-EMA(CLOSE,26); A6:=EMA(A5,9); A7:=(A5<-0.1 AND A5>A6); DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19)); DEA:=EMA(DIFF,9); MACD:=0.90*(DIFF-DEA); TJ:=(DIFF>=DEA); TJ1:=(DIFF>=0); STICKLINE(TJ,HIGH,LOW,0.4,0),COLORYELLOW; STICKLINE(TJ,OPEN,CLOSE,4,1),COLOR0088FF; STICKLINE(TJ,OPEN,CLOSE,3.4,1),COLOR00AAFF; STICKLINE(TJ,OPEN,CLOSE,2.8,1),COLOR00CCFF; STICKLINE(TJ,OPEN,CLOSE,2,1),COLOR00DDFF; STICKLINE(TJ,OPEN,CLOSE,1.2,1),COLOR55FFFF; STICKLINE(TJ,OPEN,CLOSE,0.4,1),COLOR99FFFF; STICKLINE(TJ1 AND TJ,HIGH,LOW,0.4,0),COLORF00FF0; STICKLINE(TJ1 AND TJ,OPEN,CLOSE,4,1),COLORFF33FF; STICKLINE(TJ1 AND TJ,OPEN,CLOSE,3.4,1),COLORFF55FF; STICKLINE(TJ1 AND TJ,OPEN,CLOSE,2.8,1),COLORFF77FF; STICKLINE(TJ1 AND TJ,OPEN,CLOSE,2,1),COLORFF99FF; STICKLINE(TJ1 AND TJ,OPEN,CLOSE,1.2,1),COLORFFBBFF; STICKLINE(TJ1 AND TJ,OPEN,CLOSE,0.4,1),COLORFFDDFF; STICKLINE(DIFF<DEA,HIGH,LOW,0.4,0),COLORF0F000; STICKLINE(DIFF<DEA,OPEN,CLOSE,4,1),COLORFF3300; STICKLINE(DIFF<DEA,OPEN,CLOSE,3.4,1),COLORFF6600; STICKLINE(DIFF<DEA,OPEN,CLOSE,2.8,1),COLORFF9900; STICKLINE(DIFF<DEA,OPEN,CLOSE,2,1),COLORFFBB00; STICKLINE(DIFF<DEA,OPEN,CLOSE,1.2,1),COLORFFDD00; STICKLINE(DIFF<DEA,OPEN,CLOSE,0.4,1),COLORFFFF00; VAR1:=(CLOSE*2+HIGH+LOW)/4; SK:= EMA(VAR1,13)-EMA(VAR1,73); SD:= EMA(SK,2); SJ:=(CROSS(SK,SD) AND SK<-0.04 AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.03)OR(CROSS(SK,SD) AND SK<=-0.14 )OR(CROSS(SK,SD) AND SK<=0.05 AND (VOL/MA(VOL,5)>2 OR CLOSE/REF(CLOSE,1)>0.035)); STICKLINE(SJ,HIGH,LOW,0.5,0),COLORRED; STICKLINE(SJ,OPEN,CLOSE,5.5,0),LINETHICK3,COLOR000055; STICKLINE(SJ,OPEN,CLOSE,4.5,0),LINETHICK3,COLOR000077; STICKLINE(SJ,OPEN,CLOSE,3.5,0),LINETHICK3,COLOR000099; STICKLINE(SJ,OPEN,CLOSE,2.5,0),LINETHICK3,COLOR0000BB; STICKLINE(SJ,OPEN,CLOSE,1.5,0),LINETHICK3,COLOR0000DD; STICKLINE(SJ,OPEN,CLOSE,0.5,0),LINETHICK3,COLOR0000FF; //博弈线 //byx:=WMA(CLOSE,8),linethick1; //FILLRGN(byx>ref(byx,1),byx,ref(byx,1)),COLORRED; //FILLRGN(byx<ref(byx,1),byx,ref(byx,1)),COLORgreen; //黄金分割线 //黄191:(SYSPARAM(4)-SYSPARAM(5))*0.191+SYSPARAM(5),COLORYELLOW,POINTDOT; //黄382:(SYSPARAM(4)-SYSPARAM(5))*0.382+SYSPARAM(5),COLORYELLOW,POINTDOT; //黄500:(SYSPARAM(4)-SYSPARAM(5))*0.500+SYSPARAM(5),COLORGREEN,POINTDOT; //黄618:(SYSPARAM(4)-SYSPARAM(5))*0.618+SYSPARAM(5),COLORYELLOW,POINTDOT; //黄809:(SYSPARAM(4)-SYSPARAM(5))*0.809+SYSPARAM(5),COLORYELLOW,POINTDOT; //SYSPARAM(4),COLORRED,POINTDOT; //SYSPARAM(5),COLORWHITE,POINTDOT; N1:=SYSPARAM(3); 小号:=N1-SYSPARAM(2)+1; HH:=HHV(HIGH,小号); LL:=LLV(LOW,小号); 最高:=HH[N1]; 最低:=LL[N1]; 安全:最低+(最高-最低)*0.191,POINTDOT,LINETHICK3,PRECISION2,colorFF8900; 中枢:最低+(最高-最低)*0.5,LINEDOT,PRECISION2,colorFF00FF; 警惕:最低+(最高-最低)*0.809,LINEDOT,PRECISION2,colorFFFF; 临界:最低+(最高-最低)*0.609,LINEDOT,PRECISION3,colorFF00; //时间窗 VERTLINE(BARSLAST(LOW=LLV(LOW,240))=30); VERTLINE(BARSLAST(LOW=LLV(LOW,240))=60); VERTLINE(BARSLAST(LOW=LLV(LOW,240))=90); VERTLINE(BARSLAST(LOW=LLV(LOW,240))=120); VERTLINE(BARSLAST(LOW=LLV(LOW,240))=150); VERTLINE(BARSLAST(LOW=LLV(LOW,240))=180); VERTLINE(BARSLAST(LOW=LLV(LOW,240))=210); VERTLINE(BARSLAST(LOW=LLV(LOW,240))=2400); DRAWTEXT(BARSLAST(LOW=LLV(LOW,240))=30,HIGH,'第一时间'); DRAWTEXT(BARSLAST(LOW=LLV(LOW,240))=60,HIGH,'第二时间'); DRAWTEXT(BARSLAST(LOW=LLV(LOW,240))=90,HIGH,'第三时间'); DRAWTEXT(BARSLAST(LOW=LLV(LOW,240))=120,HIGH,'第四时间'); DRAWTEXT(BARSLAST(LOW=LLV(LOW,240))=150,HIGH,'第五时间'); DRAWTEXT(BARSLAST(LOW=LLV(LOW,240))=180,HIGH,'第六时间'); DRAWTEXT(BARSLAST(LOW=LLV(LOW,240))=210,HIGH,'第七时间'); DRAWTEXT(BARSLAST(LOW=LLV(LOW,240))=240,HIGH,'第八时间'); //买卖提示 Varr1:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100; DRAWICON(CROSS(82,Varr1),HIGH+0.108,2); DRAWICON(COUNT(CROSS(Varr1,18),5) and CROSS(WMA(CLOSE,5),ref(WMA(CLOSE,5),1)),l-0.108,1); //成交量 INPUT:N(5);//量柱高度调节! x:=SYSPARAM(5)-(SYSPARAM(4)-SYSPARAM(5)+MINDIFF)/n; y:=HHV(VOL,SYSPARAM(3)-SYSPARAM(2)+1); yvb:=y[SYSPARAM(3)]/(SYSPARAM(5)-x+MINDIFF); z:=VOL/yvb+x; STICKLINE(CLOSE>REF(CLOSE,1),x,z,7,1),Color0000FF; STICKLINE(CLOSE<=REF(CLOSE,1),x,z,7,0),ColorEAE00 |
