分享

穿破

 星宇光辉图书馆 2024-04-15 发布于河北

{生命CCI线:CCI(42),DOTLINE,COLORGRAY;}

100,DOTLINE,COLORGRAY;

-100,DOTLINE,COLORGRAY;

{20,DOTLINE,COLORCYAN;}

KL:=100*(WINNER(CLOSE)-WINNER(REF(C,1))),NODRAW;

KL1:=100*(WINNER(CLOSE)-WINNER(REF(C,2))),NODRAW;

STICKLINE(KL>=0,KL,0,1,-1),COLORRED;

STICKLINE(KL<0,KL,0,1,-1),COLORGREEN;

LW:=SUM(KL,5),COLORWHITE;

LW10:=SUM(KL,10),COLORWHITE,COLORYELLOW, LINETHICK1;

LW20:=SUM(KL,20),COLORWHITE,COLORYELLOW, LINETHICK2;

DRAWICON(CROSS(LW20,0),0.1,5);

DRAWICON(CROSS(LW,0),0.1,5);

{百高:=REF(HHV(KL,100),1),COLORWHITE;

年高:=REF(HHV(KL,240),1),COLORWHITE;

百高1:=REF(HHV(KL1,100),1),COLORWHITE;

年高1:=REF(HHV(KL1,240),1),COLORWHITE;

T0:=BARSLAST(年高);

突破线:=REF(KL,T0);

DRAWSL(T0>=1 ,突破线,0,1,1),COLORWHITE;

突破1:=IF(KL=HHV(KL,240),C,0);

T1:=BARSLAST(突破1);突破线1:=REF(C,T1);突破2:=IF(KL=HHV(KL,100),C,0);

T2:=BARSLAST(突破2);突破线2:=REF(C,T2);

突破3:=IF(KL1=HHV(KL1,240),C,0);

T3:=BARSLAST(突破3);

突破线3:=REF(C,T3);

突破4:=IF(KL1=HHV(KL1,100),C,0);

T4:=BARSLAST(突破4);

突破线4:=REF(C,T4);

穿破:=(T1<=100 AND CROSS(C,突破线1)) OR (T2<=100 AND CROSS(C,突破线2)) OR (T3<=100 AND CROSS(C,突破线3)) OR (T4<=100 AND CROSS(C,突破线4));}

周:CCI#WEEK,COLORMAGENTA,LINETHICK1;

月:CCI#MONTH,COLORLIRED,LINETHICK1;

日:CCI,COLORGRAY,LINETHICK2;

周突破:(周>0 AND 周-REF(周,1)>90),COLORGREEN;

月突破:(月>0 AND 月-REF(月,1)>70),COLORGREEN;

周月突破:(周>0 AND 周-REF(周,1)>90) OR (月>0 AND 月-REF(月,1)>70),COLORGREEN;

STICKLINE(周突破,0,MAX(日,MAX(周,月)),1,0),COLORMAGENTA;

STICKLINE(月突破,0,MAX(日,MAX(周,月)),2,0),COLORMAGENTA;

{买卖条件};

{买入:=CROSS(日,-100) AND 周>0 AND 月>0;

卖出:=CROSS(-100,日) AND 周>150 AND 月>100;

DRAWTEXT_FIX(买入=1,0,0,0,'买入 '),COLORYELLOW;

DRAWTEXT_FIX(卖出=1,0.13,0,0,'卖出 '),COLORYELLOW;};

 VARR33:=HHV(HIGH,60);

 VARR34:=LLV(LOW,30);

 VARR35:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;

 VARR36:=(VARR33+VARR34+VARR35)/3;

 VARR37:=EMA(VARR36,5);

 K:=EMA(VARR37,5)*2, COLORFF00FF;

 D:=EMA(K,5), COLORWHITE;

 J:=K*3-D*2, COLORYELLOW;

 B:=(DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) 

 AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),L*0.98,1))*D*2/3;

 Q:=(DRAWICON((ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2))

 AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),H*1.01,2))*D*2/3;

买进:B*100,STICK,LINETHICK2,COLORYELLOW;

卖出:Q*100,STICK,LINETHICK2,COLORGREEN;

短线:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORYELLOW;

中线:=(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORWHITE;

红柱持股:=SMA(短线,3,1),LINETHICK0,COLORRED;

红柱:IF(红柱持股>0,IF(红柱持股>0,0,红柱持股),0),COLORRED,LINETHICK2;

A0:=((L+H+C*2)/4);

中:=EMA(A0,13)*1.0618,COLORWHITE,LINETHICK2;

下:=EMA(A0,13),COLORRED,LINETHICK2;

多空:=EMA((EMA(CLOSE,29)+EMA(CLOSE,31)+EMA(CLOSE,33))/3,3),COLORYELLOW,LINETHICK3;

{动能节奏}

AA:=EMA((2*C+H+L)/4,3);

A1:=SLOPE(AA*5-REF(AA,5),5)+C;

DIF:=EMA(A1,3) - EMA(A1,13);

DEA:=EMA(DIF,3);

动能线:IF(C>中 AND C>下 AND C>多空 AND (DIF-DEA)>0,(DIF-DEA)*50,0),COLORYELLOW;

STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线,2,0),COLORYELLOW;

STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.9,2,0),COLORYELLOW;

STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.8,2,0),COLORYELLOW;

STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.7,2,0),COLOR0000FF;

STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线> 0),0,动能线*0.6,2,0),COLOR0000FF;

STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.5,2,0),COLOR0000FF;

STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.4,2,0),COLOR0000FF;

STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.3,2,0),COLOR0000FF;

STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.2,2,0),COLOR0000FF;

STICKLINE(C>中 AND C>下 AND C>多空 AND (动能线 > 0),0,动能线*0.1,2,0),COLOR0000FF;

{龙头阻击}

龙:=CLOSE/REF(CLOSE,1)>1.048 AND CLOSE=HIGH AND BETWEEN(FORCAST(VOL,4),0.2*FORCAST(VOL,12),2.1*FORCAST(VOL,12));

龙头阻击:(动能线>0 AND FILTER(龙,19));

DRAWICON(龙头阻击,动能线*1.1,25);

涨幅:=(C/REF(C,1)-1)*100;

去ST:=NAMELIKE('ST')=0 AND NAMELIKE('*ST')=0 AND NAMELIKE('SST')=0 AND NAMELIKE('S*ST')=0;

去除停牌:=DYNAINFO(4)>0;

去除创业板:=IF(CODELIKE('300') OR CODELIKE('301') ,0,1) ;

去除科创板:=IF(CODELIKE('688'),0,1);

XG:=去ST AND 去除停牌 AND 去除科创板;

MA10:=MA(CLOSE,10);

MA54:=MA(CLOSE,54);

HJ_8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;

HJ_9:=FILTER(HJ_8,10);

HJ_10:=BARSLAST(HJ_9);

HJ_11:=REF(HIGH,HJ_10+2);

HJ_12:=REF(HIGH,HJ_10+1);

HJ_13:=REF(HIGH,HJ_10);

HJ_14:=MAX(HJ_11,HJ_12);

HJ_15:=MAX(HJ_14,HJ_13);

HJ_16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>3.5;

HJ_17:=HJ_10<150;

HJ_18:=(OPEN-HJ_15)/HJ_15*100<30;

HJ_19:=(CLOSE-LLV(LOW,HJ_10))/LLV(LOW,HJ_10)*100<50;

HJ_20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;

HJ_21:=VOL/MA(VOL,5)<3.5;

HJ_22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;

HJ_25:=HJ_16 AND HJ_17 AND HJ_18 AND HJ_19 AND HJ_20 AND HJ_21 AND HJ_22;

BOLL:=MA(CLOSE,20);

UPPER:=BOLL+2*STD(CLOSE,20);

PER:=CROSS(C,UPPER);

TPZ1:=MA((L+H+C)/3,5);

TPZ2:=HHV(TPZ1,60);

TPZ3:=CROSS(C,TPZ2*0.95) OR CROSS(C,TPZ2*0.98) ;

TPZ4:=PER AND HJ_25 AND TPZ3;

TPZ5:=MA(CLOSE,25)+MA(CLOSE,25)*20/100*0.35;

TPZ6:=(MA(MA(H,25),25)-MA(MA(L,25),25))*1+MA(MA(H,25),25);

TPZ7:=REF(C<TPZ6 OR C<TPZ5,1) AND C>TPZ6 AND C>TPZ5 ;

TPZ8:=TPZ4 OR TPZ7;

龙头趋势:动能线>0 AND ((涨幅>8 AND C=H) OR 涨幅>12)AND TPZ8 AND XG AND C/REF(C,1)>1.05 AND REF(C,1)/REF(C,2)<1.04 AND REF(C>3.7,1) AND REF(C<19,1) AND (CAPITAL/100)/10000<=15 AND O/REF(C,1)<1.05 AND C>O,COLORRED;

VAR36:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;

VAR38:=SMA(VAR36,3,1);

散户:=SMA(VAR38,3,1) ;

新庄:=SMA(散户,3,1);

GHYX:=FILTER(CROSS(散户,新庄) AND 散户<20,25)=1;

操盘底线:=0.812*MA(FORCAST(CLOSE,2),34)*1.05;

触及底线:=(LOW<操盘底线 OR LOW=操盘底线);

建仓区间:=(CLOSE<操盘底线 OR CLOSE=操盘底线);

最佳买点:=CROSS(CLOSE,操盘底线);

千年:=触及底线&&GHYX OR 建仓区间&&GHYX OR 最佳买点&&GHYX;

金剑:IF(千年,20,0),COLORMAGENTA;

VAR2N:=LLV(LOW,3)<=LLV(LOW,60);

VAR3N:= C>O AND (C/O>1.03 OR C>1.03*REF(C,1));

绝地反击:=IF(VAR2N AND VAR3N,90,0);

银剑:IF(绝地反击,20,0),COLORFF4242;

DIFA:=EMA(CLOSE,6)-EMA(CLOSE,13);

DEAA:=EMA(DIFA,5);

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

K1:=SMA(RSV,3,1);

D1:=SMA(K,3,1);

MK日金叉:=CROSS(DIFA,DEAA) AND CROSS(K1,D1);

铁剑:IF(MK日金叉,20,0),LINETHICK1,COLORYELLOW;

下穿:=CROSS(100,CCI);

T:=BARSLAST(下穿);

TJ1:=T<15;

出击:=ZIG(3,6)>REF(ZIG(3,6),1)AND REF(ZIG(3,6),1)<REF(ZIG (3,6),2);

AAQ:=TJ1 AND CCI>0 AND (买进 OR 铁剑 OR 银剑 OR金剑 OR 出击); 

DRAWTEXT(AAQ=1,CCI,'买进'),COLORCYAN;

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约