{STICKLINE(C 0,-120,5,4,0),COLORBLACK;}
F1:=ZIG(3,15);
F2:=IF((F1 REF(F1,1)),100,80);
周J1:=MA( KDJ.J#WEEK (9,3,3),5);
关注:=F2=100 AND 周J1 =REF(周J1,1);
MAU5:=EMA(C,5);
MAU13:=EMA(C,6);
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MAU5,MAU13))+1),HHV(H,BARSLAST(CROSS(MAU5,MAU13))+1),L=LLV(L,BARSLAST(CROSS(MAU13,MAU5))+1),LLV(L,BARSLAST(CROSS(MAU13,MAU5))+1),0);
V1:=MA(C,3)=HHV(MA(C,3),7);
V2:=MA(C,3) MA(C,5);
DIFX:=EMA(CLOSE,7) - EMA(CLOSE,19);
DEAX:=EMA(DIFX,9);
VAR101B:=PEAKBARS(3,15,1)
VAR121B:=IF(VAR101B=1,50,0);
头部1:=IF(VAR121B=50,100,0);
AT:=IF(头部1 REF(头部1,1),50,0);
必卖:=IF(PEAKBARS(3,15,1)=1,80,100);
高卖:=IF(PEAKBARS(3,6,1) 1=1,8,0);
泥淖:=IF((F1 REF(F1,1)),100,80);
Z:=ISLASTBAR;
VAROD:=(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));
减仓:=IF(VAROD,60,80);
空仓:=REF(C,2) REF(O,2) REF(C,1) =REF(O,1) C =O
调整:=REF(C,2) REF(O,2) REF(C,1) REF(O,1) C =O
看跌:=REF(C,2) =REF(O,2) REF(C,1) REF(O,1) C =O
V1S:=LLV(LOW,10);
V2S:=HHV(H,25);
势:=EMA((C-V1S)/(V2-V1S)*4,4);
RSV1:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
K1:=SMA(RSV1,3,1);
D1:=SMA(K1,3,1);
J1:=3*K1-2*D1;
J值:=IF(J1 100 AND J1 REF(J1,1),100,J1);
RSV:=((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*(100);
TJ0:=IF((RSV 5),0,RSV);
H1:=IF(H=HHV(H,21),H,DRAWNULL);
H2:=CONST(BARSLAST(H1!=DRAWNULL));
止:=IF(CURRBARSCOUNT =H2+1 AND H=HHV(H,21),1,0);
操作:=IF((TJ0 95),100,TJ0);
危量:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100 100,100,
(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);
走势1:=EMA(CLOSE,6);
白线:=(走势1-REF(走势1,1))/REF(走势1,1)*10000;
BX:=IF(白线 100,100,白线);
多方:=100-(100*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3)));
DL:=IF(多方 REF(多方,1) AND REF(多方,1) 90,100,多方);
RE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)+20;
乖离:=IF(RE 100,100,0);
顶率:=(J值+操作+危量+DL+BX+乖离)/6;
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
VQ1:=(C-REF(C, 1))/REF(C, 1)*100;
VQ2:=(C-LLV(L, 18))/(HHV(H, 18)-LLV(L, 18))*100;
VQ3:=SMA(VQ2, 9, 1);
VQ4:=SMA(VQ3, 3, 1);
AAA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买:=IF(CLOSE OPEN,AAA*(HIGH-LOW),IF(CLOSE OPEN,AAA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主买%:主买/V*100,NODRAW;
A0:=IF(CROSS(0,DEA),1,0);
AD1:=IF(DIF 0 AND CROSS(DIF,DEA),1,0);
SS:=IF(A0,SUM(AD1,0),0);
SSB:=HHV(SS,0);
SSS:=SUM(AD1,0);
提前低吸:IF(F2=100 AND SSS-SSB=2 AND SSS REF(SSS,1),DEA,0),COLOR2828FF;
VR1:=(CLOSE REF(CLOSE,1) AND CLOSE REF(CLOSE,2));
VRD:=(CLOSE REF(CLOSE,1) AND CLOSE REF(CLOSE,2));
VRE:=(REF(VRD,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VRF:=(REF(VRE,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VR10:=(REF(VRF,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VR11:=(REF(VR10,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VR12:=(REF(VR11,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VR13:=(REF(VR12,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VR14:=(REF(VR13,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VR15:=(REF(VR14,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VR16:=(REF(VR15,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VR17:=(REF(VR16,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VR18:=(REF(VR17,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX 0,2) AND CROSS(DX,MA(DX,2)),1,0);
RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K1C:=SMA(RSV9,3,1);
DK1:=K1C-REF(K1C,1);
买:=IF(DK1 7 AND REF(DK1,1) 0 AND (DK1-REF(DK1,1)) 9,50,0);
JCD:=买=50 AND (FILTER(YXF=1,5) ) AND ((REF(VRD OR VRE OR VRF OR VR10 OR VR11 OR VR12 OR VR13 OR VR14 OR VR15 OR VR16 OR VR17 OR VR18,1)) AND VR1)
OR (REF( KDJ.J ,1) 0 AND KDJ.J 0) AND (FILTER(YXF=1,5) ) AND ((REF(VRD OR VRE OR VRF OR VR10 OR VR11 OR VR12 OR VR13 OR VR14 OR VR15 OR VR16 OR VR17 OR VR18,1)) AND VR1);
要拉升:IF(JCD AND F2=100,MACD,0)COLORYELLOW;
RSV5:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
快:=SMA(RSV5,3,1);
预侧要拉升:IF(F2=100 AND 快 20,MACD,0),COLORRED;
PLL10:=ZIG(3,10);
ZTJZL5:=IF(PLL10 REF(PLL10,1),1,0);
ENL2:=ZIG(3,10) REF(ZIG(3,10),1) AND REF(ZIG(3,10),1) =REF(ZIG(3,10),2) AND REF(ZIG(3,10),2) =REF(ZIG(3,10),3);
ENL3:=ZIG(3,20) REF(ZIG(3,20),1) AND REF(ZIG(3,20),1) =REF(ZIG(3,20),2) AND REF(ZIG(3,20),2) =REF(ZIG(3,20),3);
PLL20:=ZIG(3,20);
走强L3:=BARSLAST(PLL20 REF(PLL20,1));
ZTJZL10:=IF(PLL20 REF(PLL20,1),COUNT(ENL2,走强L3),0);
TJD:=ENL3 AND ZTJZL10=1 AND ENL2 AND ZTJZL5=1;
RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
VARB2:=(RSVV/2+22)*1;
PL5:=ZIG(3,5);
EN1:=PL5 REF(PL5,1) AND REF(PL5,1) =REF(PL5,2) AND REF(PL5,2) =REF(PL5,3);
PL10:=ZIG(3,10);
EN2:=PL10 REF(PL10,1) AND REF(PL10,1) =REF(PL10,2) AND REF(PL10,2) =REF(PL10,3);
PL20:=ZIG(3,20);
走强2:=BARSLAST(PL10 REF(PL10,1));
走强3:=BARSLAST(PL20 REF(PL20,1));
ZTJZ5:=IF(PL10 REF(PL10,1),COUNT(EN1,走强2),0);
ZTJZ10:=IF(PL20 REF(PL20,1),COUNT(EN2,走强3),0);
ZD1:=EN1 AND PL10 REF(PL10,1) AND ZTJZ5=2;
ZD2:=EN1 AND PL10 REF(PL10,1) AND ZTJZ5=3;
ZD3:=EN2 AND PL20 REF(PL20,1) AND ZTJZ10=2;
ZD4:=EN2 AND PL20 REF(PL20,1) AND ZTJZ10=3;
ME2:=EMA(CLOSE,6);
超短线:=EMA(ME2,11);
持股:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
持股角度:=ATAN((持股/REF(持股,1)-1)*100)*180/3.1416,NODRAW;
月线:=EMA(持股,30);
双月线:=EMA(持股,60);
短线回调:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1);
短线回调0:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1);
短线看空:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1);
短线看空0:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1);
短线空仓:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND DOWNNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1);
短线空仓0:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1);
条件1:=短线回调 OR 短线看空 OR 短线空仓;
条件:=F2=100 AND 顶率 90 AND 势 3.5 AND NOT(AT=50) AND NOT(必卖=80) AND NOT(高卖=8) AND NOT(减仓=60) AND NOT(空仓) AND NOT(调整) AND NOT(看跌);
ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算}
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//小筹码估算}
ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//小股民套牢筹码比率}
ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比率}
ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量}
ZZNTS:=BARSLAST(ZSHTL 90 AND REF(ZSHTL,1) {//走牛天数}
ZSHJJ:=EMA(ZSHTL,89);{//小股民警戒}
ZZLJJ:=EMA(ZZLKP,89);{//主力警戒}
ZJLRQD:=INTPART(ZZLKP-ZZLJJ);{//资金流入强度}
SH8:=EMA(ZSHTL,8);
DKB:=IF(ZZLKP-REF(ZZLKP,1) ZSHTL-REF(ZSHTL,1),1,0);
RRSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
RK1:=SMA(RRSV,10,1);
RD1:=SMA(RK1,5,1);
RKK:=INTPART(RK1);
RDD:=INTPART(RD1);
TFXXS:=RKK+RDD;{//变异KD风险系数}
TGLD:=MOD(TFXXS,10);{//踏浪涨停概率点}
TGLXS:=(TFXXS-REF(TFXXS,1))*10;{//变异KD乖离系数}
TYCFX:=TFXXS+TGLXS;{//变异KD预测风险}
T1:=CONST( ZCMZL REF(ZCMZL,1) AND DKB=1);
T2:=CONST( ZCMZL REF(ZCMZL,1) AND DKB=0);
T3:=CONST( ZCMZL=REF(ZCMZL,1));
T4:=CONST( ZCMZL REF(ZCMZL,1) AND DKB=1);
T5:=CONST( ZCMZL REF(ZCMZL,1) AND DKB=0 AND KDJ.J KDJ.D);
T6:=CONST(TFXXS =50 );
T7:=CONST(TFXXS =160 );
T8:=CONST(TFXXS 50 AND TFXXS 160 AND TFXXS =REF(TFXXS,1) AND TFXXS =100 );
T9:=CONST( TFXXS 50 AND TFXXS 160 AND TFXXS =REF(TFXXS,1) AND TFXXS 100);
T10:=CONST(TFXXS 50 AND TFXXS 160 AND TFXXS REF(TFXXS,1) AND TFXXS 100 AND KDJ.J REF(KDJ.J,1));
T11:=CONST(TFXXS 50 AND TFXXS 160 AND TFXXS REF(TFXXS,1) AND TFXXS =100 AND KDJ.J REF(KDJ.J,1));
T12:=CONST( ZSHTL 90 );
T13:=CONST( ZZLKP 75 );
T14:=CONST(CROSS(ZCMZL,ZZLJJ) AND ZZLKP ZZLJJ AND ZZLKP 10 AND ZZLJJ REF(ZZLJJ,1) AND ZCMZL REF(ZCMZL,1) );
T15:=CONST(CROSS(ZCMZL,ZZLKP) AND ZZLKP ZZLJJ AND ZZLKP ZSHTL AND ZZLKP 10 AND ZZLJJ REF(ZZLJJ,1) AND ZCMZL REF(ZCMZL,1) );
T16:=CONST( CROSS(ZCMZL,ZSHTL) AND ZSHTL ZZLKP AND ZCMZL REF(ZCMZL,1));
T17:=CONST( CROSS(ZCMZL,100) AND ZCMZL REF(ZCMZL,1));
T18:=CONST(REF(ZSHTL,1) 90 AND ZSHTL 90 );
TS1:=IF(T1=1,0+0.03,0);
TS2:=IF(T2=1,TS1+0.03,TS1);
TS3:=IF(T3=1,TS2+0.03,TS2);
TS4:=IF(T4=1,TS3+0.03,TS3);
TS5:=IF(T5=1,TS4+0.03,TS4);
TS6:=IF(T6=1,0+0.73,0);
TS7:=IF(T7=1,TS6+0.03,TS6);
TS8:=IF(T8=1,TS7+0.03,TS7);
TS9:=IF(T9=1,TS8+0.03,TS8);
TS10:=IF(T10=1,TS9+0.03,TS9);
TS11:=IF(T11=1,TS10+0.03,TS10);
TS12:=IF(T12,0+0.03,0);
TS13:=IF(T13=1,TS12+0.03,TS12);
TS14:=IF(T14=1,TS13+0.03,TS13);
TS15:=IF(T15=1,TS14+0.03,TS14);
TS16:=IF(T16=1,TS15+0.03,TS15);
TS17:=IF(T17=1,TS16+0.03,TS16);
TS18:=IF(T8=1,TS17+0.03,TS17);
MA5:=MA(CLOSE,5);
V00:= HIGH REF(HIGH,1) AND LOW REF(LOW,1);
V01:= HIGH REF(HIGH,1) AND LOW REF(LOW,1);
V02:= HIGH REF(HIGH,1) AND LOW REF(LOW,1);
V03:= HIGH REF(HIGH,1) AND LOW REF(LOW,1);
V04:= REF(HIGH,2) HIGH AND REF(LOW,2) LOW
AND REF(HIGH,2) REF(HIGH,1) AND REF(LOW,2) REF(LOW,1);
VF1:= COUNT(V00,6) =3 AND COUNT(V01 OR V02,5)=0 AND LLVBARS(LOW,6) = 1 AND HHVBARS(HIGH,6) = 5 AND V03;
VF2:= COUNT(V00,7) =3 AND COUNT(V01 OR V02,6)=1 AND LLVBARS(LOW,7) = 2 AND HHVBARS(HIGH,7) = 6 AND V04;
VF3:= COUNT(V00,7) =3 AND COUNT(V01 OR V02,6)=1 AND LLVBARS(LOW,7) = 1 AND HHVBARS(HIGH,7) = 6 AND V03;
VF4:= COUNT(V00,8) =3 AND COUNT(V01 OR V02,7) =2 AND LLVBARS(LOW,8) = 2 AND HHVBARS(HIGH,8) = 7 AND V04;
VF5:= COUNT(V00,8) =3 AND COUNT(V01 OR V02,7) =2 AND LLVBARS(LOW,8) = 1 AND HHVBARS(HIGH,8) = 7 AND V03;
VF6:= COUNT(V00,9) =3 AND COUNT(V01 OR V02,8) =3 AND LLVBARS(LOW,9) = 2 AND HHVBARS(HIGH,9) = 8 AND V04;
VF7:= COUNT(V00,9) =3 AND COUNT(V01 OR V02,8) =3 AND LLVBARS(LOW,9) = 1 AND HHVBARS(HIGH,9) = 8 AND V03;
VF8:= COUNT(V00,10) =3 AND COUNT(V01 OR V02,9) =4 AND LLVBARS(LOW,10) = 2 AND HHVBARS(HIGH,10) = 9 AND V04;
VF9:= COUNT(V00,10) =3 AND COUNT(V01 OR V02,9) =4 AND LLVBARS(LOW,10) = 1 AND HHVBARS(HIGH,10) = 9 AND V03;
VF10:= COUNT(V00,11) =3 AND COUNT(V01 OR V02,10) =5 AND LLVBARS(LOW,11) = 2 AND HHVBARS(HIGH,11) = 10 AND V04;
DFX:=VF1 OR VF2 OR VF3 OR VF4 OR VF5 OR VF6 OR VF7 OR VF8 OR VF9 OR VF10 AND CLOSE MA5;
XG:=DEAX REF(DEAX,1) AND 条件 AND 关注 AND DFX AND C
MAA5:=MA(C,5);
条件5:=MAA5 REF(MAA5,1) AND REF(MAA5,1) REF(MAA5,2) AND REF(MAA5,2) REF(MAA5,3);
MAA10:=MA(C,10);
条件10:=MAA10 REF(MAA10,1) AND REF(MAA10,1) REF(MAA10,2) AND REF(MAA10,2) REF(MAA10,3);
MAA30:=MA(C,30);
条件30:=MAA30 REF(MAA30,1) AND REF(MAA30,1) REF(MAA30,2) AND REF(MAA30,2) REF(MAA30,3);
泥沼:=F2=80 AND DOWN;
上涨:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND UPNDAY(超短线,1) AND UPNDAY(持股,1);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND NOT(T7) AND NOT(T5) AND NOT(T13) AND F2=100 AND 条件 AND 上涨 AND KDJ.J KDJ.K ,0.46,0.3,0,'★上 涨 趋 势★'),COLORYELLOW;
短线上涨:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1);
短线上涨0:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1);
短线上涨1:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND UPNDAY(持股,1);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND F2=100 AND MA(C,30) =REF(MA(C,30),1) AND 条件 AND (短线上涨 OR 短线上涨0 OR 短线上涨1),0.46,0.2,0,'★短 线 上 涨★'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (短线回调 OR 短线回调0),0.46,0.2,0,'★短 线 回 调★'),COLORFFFF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND NOT(TJD) AND (短线空仓 OR 短线空仓0 OR 短线看空 OR 短线看空0),0.46,0.2,0,'【★短 线 空 仓★】'),COLORGREEN;
五日线角:=ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*57.03;
DRAWTEXT_FIX(T1,0.54,TS1,0,'★主力动向:主力增仓'),COLORRED;
DRAWTEXT_FIX(T2,0.54,TS2,0,'★主力动向:主力减仓'),COLORFFFF00;
DRAWTEXT_FIX(T4,0.54,TS4,0,'★主力动向:主力回补'),COLORFF9933;
DRAWTEXT_FIX(T5,0.54,TS5,0,'★主力动向:主力出逃'),COLORGREEN;
DRAWTEXT_FIX(T8,0.68,TS8,0,'★操作提示:追涨博弈'),COLORRED;
DRAWTEXT_FIX(T9,0.68,TS9,0,'★操作提示:稳健持股'),COLORMAGENTA;
DRAWTEXT_FIX(T10,0.68,TS10,0,'★操作提示:盘跌减仓'),COLORWHITE;
DRAWTEXT_FIX(T11,0.68,TS11,0,'★操作提示:杀跌空仓'),COLORGREEN;
DRAWTEXT_FIX(T12,0.36,TS12,0,'☆特别信号提示:筑底散兵坑 '),COLOR66FFCC;
DRAWTEXT_FIX(T13,0.36,TS13,0,'☆特别信号提示:筑顶风险区'),COLORCYAN;
DRAWTEXT_FIX(T14,0.36,TS14,0,'☆特别信号提示:穿越主力 '),COLORRED;
DRAWTEXT_FIX(T15,0.36,TS15,0,'☆特别信号提示:穿越主力 '),COLORYELLOW;
DRAWTEXT_FIX(T16,0.36,TS16,0,'☆特别信号提示:穿越散户 '),COLORFFFFFF;
DRAWTEXT_FIX(T17,0.36,TS17,0,'☆特别信号提示:全盘穿越 '),COLOR3399FF;
DRAWTEXT_FIX(T18,0.36,TS18,0,'☆特别信号提示:神秘黑洞 '),COLOR9966FF;
VAR92:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);
VAR102:=SMA(VAR92,3,1);
VAR112:=SMA(VAR102,3,1);
VAR122:=SMA(VAR112,3,1);
主力出现:DRAWICON(CROSS(VAR112,VAR122) AND (VAR112 40),0,11);
周DIFF:= MACD.DIF#WEEK
周DEA:= MACD.DEA#WEEK
这周猛涨:CROSS(周DIFF,周DEA),COLORYELLOW;
均价:=(3*C+H+L+O)/6;
QVAR1:=(8*均价+7*REF(均价,1)+6*REF(均价,2)+5*REF(均价,3)+
4*REF(均价,4)+3*REF(均价,5)+2*REF(均价,6)+REF(均价,8))/36;
VAR2:=(LLV(QVAR1,2)+LLV(QVAR1,4)+LLV(QVAR1,6))/3;
SZ1:=REF(QVAR1,1)=REF(VAR2,1) AND QVAR1 VAR2 AND CLOSE QVAR1;
SZ2:=QVAR1 VAR2 AND QVAR1 REF(QVAR1,1) AND VAR2 REF(VAR2,1)
AND H/QVAR1 1.1 AND L VAR2 AND CLOSE QVAR1;
SZ3:=QVAR1 VAR2 AND QVAR1 REF(QVAR1,1) AND VAR2 =REF(VAR2,1) AND H/QVAR1
SZ4:=QVAR1 VAR2 AND QVAR1 REF(QVAR1,1) AND VAR2 REF(VAR2,1)
AND CLOSE VAR2 AND CLOSE QVAR1;
SZ5:=(QVAR1 VAR2 AND VAR2 REF(VAR2,1) AND QVAR1 REF(QVAR1,1)
AND CLOSE VAR2) OR (QVAR1 VAR2 AND QVAR1 REF(QVAR1,1)
AND VAR2 REF(VAR2,1) AND CLOSE VAR2);
SZ6:=REF(QVAR1,1) REF(VAR2,1) AND QVAR1=VAR2 AND CLOSE VAR2;
XD1:=QVAR1=VAR2 AND CLOSE VAR2 OR (QVAR1 REF(QVAR1,1) AND VAR2 REF(VAR2,1)
AND REF(QVAR1,1)=REF(VAR2,1) AND CLOSE VAR2);
XD2:=QVAR1=VAR2 AND CLOSE QVAR1;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
DRAWTEXT_FIX(BARSTATUS=2 AND SZ1,0.83,0.04,0,'★趋势:调整结束短线介入'),COLORRED;
DRAWTEXT_FIX(BARSTATUS=2 AND SZ2,0.83,0.04,0,'★趋势:上升通道走势良好'),COLORRED;
DRAWTEXT_FIX(BARSTATUS=2 AND SZ3,0.83,0.04,0,'★趋势:股价偏离注意调整'),COLORRED;
DRAWTEXT_FIX(BARSTATUS=2 AND SZ4,0.83,0.04,0,'★趋势:上升通道调整洗盘'),COLORGREEN;
DRAWTEXT_FIX(BARSTATUS=2 AND SZ5,0.83,0.04,0,'★趋势:转向特征注意离场'),COLORGREEN;
DRAWTEXT_FIX(BARSTATUS=2 AND SZ6,0.83,0.04,0,'★趋势:通道改变坚决离场'),COLORGREEN;
DRAWTEXT_FIX(BARSTATUS=2 AND XD1 AND NOT(SZ6),0.83,0.04,0,'★趋势:下跌通道只宜观望'),COLORGREEN;
DRAWTEXT_FIX(BARSTATUS=2 AND XD2,0.83,0.04,0,'★趋势:短期底部准备进入'),COLORYELLOW;
{TS:=DATETODAY(DATE)-DATETODAY(REF(DATE,1))
DRAWTEXT(TS,65,'事件'),COLORRED;}
M:=32;P2:=100;
VAR1:=(C+H+O+L)/4;
买入:=XMA(VAR1,32)*(1-100/1000);
DSA1:=IF(COUNT(买入 =C,6) =4,20,0);
DSA:=IF(DSA1,20,0);
DRAWTEXT(FILTER(DSA,15)=1,MACD,'预期'),COLORYELLOW;
V3:=100-(100-3*SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))
*100,20,1)+2*SMA(SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))
*100,20,1),15,1));
V4:=100-(100-3*SMA((O-LLV(L,75))/(HHV(H,75)-LLV(L,75))
*100,20,1)+2*SMA(SMA((O-LLV(L,75))/(HHV(H,75)-LLV(L,75))
*100,20,1),15,1));
江:=V3 REF(V4,1);
DSA2:=COUNT(DSA1=20,16)
买时间:=DSA2 AND 江;
DRAWTEXT(FILTER(买时间,30)=1,MACD,'有利好'),COLORWHITE,LINETHICK5;
ZK:= KDJ.K#WEEK (19,3,3);
ZD:= KDJ.D#WEEK (19,3,3);
ZJ:= KDJ.D#WEEK (19,3,3);
这周猛涨2:CROSS(ZK,ZD),COLORYELLOW;
{画白柱线}
VA1:=HHVBARS(MACD,BARSLAST(MACD 0)+1);
VA2:=CROSS(BACKSET(CROSS(0,MACD),REF(VA1,1)+2),0.5);
QG:=CROSS(BACKSET(CROSS(0,MACD) OR (ISLASTBAR AND MACD 0),REF(VA1,1)+2),0.5);
前高:=DRAWLINE(VA2,MACD,REF(VA2,1),REF(MACD,1),1),COLORMAGENTA;
VA3:=LLVBARS(MACD,BARSLAST(MACD 0)+1);
VA4:=CROSS(BACKSET(CROSS(MACD,0),REF(VA3,1)+2),0.5);
前低:=DRAWLINE(VA4,MACD,REF(VA4,1),REF(MACD,1),1);
BD:=BARSLAST(FILTERX(CROSS(0,MACD),BARSCOUNT(C)));
BDTJ:=IF(MACD 0,FILTERX(MACD=LLV(MACD,BARSLAST(MACD 0)),
BARSCOUNT(C)),DRAWNULL);
TSBDTJ:=BARSLAST(BDTJ);
BDZH:=FILTERX(MACD CONST(LLV(MACD,BD+1)),BARSCOUNT(C));
BDTS:=BARSLAST(BDZH);
本低:=IF(BD+1 =1,CONST(LLV(MACD,BD+1)),DRAWNULL);
BDCL:=CROSS(COUNT(CROSS(MACD 本低/2 AND MACD 0,0.5),TSBDTJ)=1,0.5) AND TSBDTJ
终点:=IF(ISLASTBAR AND MACD 0 AND MACD=HHV(MACD,BARSLAST(MACD 0)),1,
IF(FILTERX(QG,BARSCOUNT(C)),2,DRAWNULL));
UU:=(终点=1 OR 终点=2) AND MACD
ZZ:=FILTERX(UU,BARSCOUNT(C));
本高:=DRAWLINE(ZZ,MACD,REF(ZZ,1),REF(MACD,1),1),COLORRED;
WQG:=CROSS(COUNT(CROSS(MACD 本高/2 AND MACD 0,0.5),ZZ)=1,0.5) AND ZZ
{形态}
A:=IF(CROSS(0,DEA),1,0);
A111:=IF(DIF 0 AND CROSS(DIF,DEA),1,0);
SS1:=IF(A,SUM(A111,0),0);
SSB1:=HHV(SS1,0);
SSS1:=SUM(A111,0);
W底:=SSS1-SSB1=2 AND SSS1 REF(SSS1,1);
DRAWTEXT(W底,DIF,'↖W底'),COLOR0080FF;
DRAWICON(CROSS(DIF,DEA),DEA,1);
DRAWICON(CROSS(DEA,DIF),DEA,2);
VARX2:=LLV(DEA,43);
VARX3:=DEA-(DIF-DEA);
低点线:=IF(DIF VARX2 AND DEA=VARX2,MIN(HHV(VARX2,10),VARX3),VARX2);
VL:=REF(LOW,1);
VAR12:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;
VAR14:=MA(VAR12,13);
VAR15:=LLV(LOW,34);
VAR18:=EMA(IF(LOW =VAR15,VAR14,0),3);
VAR110:=SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,7,1),5,1);
VAR111:=SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,8,1)*15-VAR110*10.38;
T:=FILTER(IF(VAR111 =VAR110 AND VAR18 0,VAR18*8,0),5);
止跌:DRAWTEXT(T AND DIF 低点线,DIF*1.01,'止跌'),COLORYELLOW;
FH1:=REF(MACD,1) REF(MACD,2) AND REF(MACD,2) REF(MACD,3) AND REF(MACD,3) REF(MACD,4);
FH2:=MACD =0 AND COUNT(MACD REF(MACD,1),1)=1;
FH3:=FH1 AND FH2 AND EMA(C,13) REF(EMA(C,13),1);
FH4:=FH1 AND FH2 AND ABS((DIF-DEA)/C) 0.018;
FH5:=FH1 AND FH2 AND MACD 0.10;
VV:=CLOSE OPEN AND MA(CLOSE,5) MA(CLOSE,10) AND MA(CLOSE,10) MA(CLOSE,30)
AND DIF DEA AND MACD REF(MACD,1) AND DIF 0 AND DEA 0 AND
MA(VOL,5) MA(VOL,34) AND MA(CLOSE,30) =REF(MA(CLOSE,30),1);
加码:=CROSS(DIF,DEA) AND DIF 0,COLORYELLOW,NODRAW;
DRAWTEXT(CROSS(DIF,DEA) AND DIF 0,DEA-0.05,'↖加码'),COLORYELLOW;
MACDP:=2*(DIF-DEA), COLORSTICK,LINETHICK2;
AP1:=BARSLAST(REF(CROSS(DIF,DEA),1));
底背离:=REF(CLOSE,AP1+1) CLOSE AND DIF REF(DIF,AP1+1) AND CROSS(DIF,DEA);
STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;
DRAWTEXT(底背离,0.12,' 底背离'),COLORFF00FF;
N:=9;
M1:=3;
M2:=3;
RSVP:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSVP,M1,1);
D:=SMA(K,M2,1);
J:=3*K-2*D;
KDJ金叉:=CROSS(J,K);
SHORT:=7;
LONG:=10;
MID:=5;
DIFP:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEAP:=EMA(DIFP,MID);
M金叉:=CROSS(DIFP,DEAP);
MK接近:KDJ金叉 AND M金叉,COLORFF6EC7,LINETHICK1;