灏然天空
MA5:=MA(CLOSE,5);
B1:=CLOSE/INDEXC;
B2:=MA(B1,5);
B3:=MA(B1,10);
B4:=MA(CLOSE,20);
B5:=CLOSE>MA(CLOSE,5);
B6:=MA(CLOSE,5)>MA(CLOSE,10);
B7:=CLOSE>MA(CLOSE,10);
B8:=MA(CLOSE,5)>MA(CLOSE,20);
B9:=CLOSE>MA(CLOSE,20);
B10:=REF(B4,1);
B11:=B4>B10;
B12:=IF(B5,10,-10)+IF(B6,10,-10)+IF(B7,10,-10)+IF(B8,10,-10)+IF(B9,10,-10)+IF(B11,10,-10);
DRAWBKBMP(B12>0 OR B2>B3,'sun');
DRAWBKBMP(B12<=0,'moon');
FA:=MA(CLOSE,10);
FB:=MA(CLOSE,30);
FC:=BARSLAST(CROSS(FA,MA5)) AND CROSS(MA5,FA);
FD:=FC AND MA5>FB AND FA>FB AND FA>REF(FA,1);
DRAWBKBMP(FD>0,'xxht');
MA3:=MA(CLOSE,3);
MA14:=MA(CLOSE,14);
MA25:=MA(CLOSE,25);
YX1:=SYSPARAM(1);
YX2:=SYSPARAM(3);
YX3:=YX2-YX1;
MA10:=FA;
MA30:=MA(CLOSE,30);
MA55:=MA(CLOSE,55);
MA60:=MA(CLOSE,60);
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
CCIDY:=CCI>REF(CCI,1);
冲涨回调:=FD AND NOT(CROSS(MA3,MA10) AND LOW<MA3) AND NOT(CROSS(MA3,MA60) AND LOW<MA3);
DRAWTEXT(冲涨回调,HIGH*1.02,'小心回头'),colorCC00;
MMV:=EMA(SLOPE(CLOSE,22)*20+CLOSE,55);
HJX:=IF(DATATYPE>5 AND DATATYPE<9,MA(MMV,1),IF(DATATYPE=5,MA(MMV,4),IF(DATATYPE=4,MA(MMV,8),IF(DATATYPE=3,MA(MMV,16),IF(DATATYPE=2,MA(MMV,32),MMV)))));
HJXCS:=(EMA(CLOSE,3)+MA(CLOSE,3))/2>HJX;
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;
RSV13:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
K13:=SMA(RSV13,3,1);
D13:=SMA(K13,3,1);
J13:=3*K13-2*D13;
RSV55:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K55:=SMA(RSV55,3,1);
D55:=SMA(K55,3,1);
J55:=3*K55-2*D55;
ZD:=IF(CROSS(J55,J13),HIGH,REF(HIGH,BARSLAST(CROSS(J55,J13))));
XC:=LLV(HIGH,30);
VA:=CLOSE/REF(CLOSE,1)>=1.045 OR OPEN=LOW AND HIGH=CLOSE OR CLOSE/OPEN>=1.07;
SJ1:=BARSLAST(VA=1);
JC:=IF(VA=1,LOW*1,REF(LOW,SJ1));
VA1:=CLOSE/REF(CLOSE,1)>=1.095 OR CLOSE/OPEN>=1.1;
SJ2:=BARSLAST(VA1=1);
ZCYL:=IF(VA1=1,LOW,REF(LOW,SJ2));
VAR1:=(LOW+HIGH+CLOSE)/3;
VAR2:=MA(VAR1,5);
VAR3:=HHV(VAR2,13);
VAR4:=HHV(HIGH,27)*0.995;
VAR5:=LLV(LOW,27)*1.006;
VAR6:=LLV(VAR2,13);
VAR7:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
VAR8:=SMA(VAR7,3,1);
VAR9:=SMA(VAR8,2,1);
VAR10:=3*VAR8-2*VAR9;
VAR11:=MA(VAR10,2);
VAR12:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR13:=BARSLAST(REF(CROSS(VAR10,VAR11),1) AND VAR11<20);
VAR14:=REF(VAR11,VAR13+1)<VAR11 AND CROSS(VAR10,VAR11) AND VAR11<50 AND REF(VAR10,1)>REF(REF(VAR10,VAR13+1),1) AND REF(VAR11,1)>REF(REF(VAR11,VAR13+1),1) AND VAR13<20 AND BARSLAST(REF(CROSS(50,VAR10),1))<3;
VAR15:=COUNT(CROSS(VAR10,VAR11),BARSLAST(VAR11>=20));
VAR16:=CROSS(VAR10,VAR11) AND VAR11<20 AND (COUNT(VAR15=2,21))=1;
VAR17:=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);
VAR18:=CROSS(VAR17,3);
VAR19:=MA("KDJ.J#week"(9,3,3),5);
VAR20:=CROSS(J,REF(J,1)) AND VAR19-REF(VAR19,1)>0.2 AND J<60 AND VAR19<50;
VAR21:=CROSS(J13,1) AND CROSS(J55,1) AND (CROSS(K55,1) OR K55>REF(K55,1) AND D55<5) OR VAR17<5 AND CROSS(J13,3) AND CROSS(J55,3) AND CROSS(K55,3);
VAR22:=VAR17<3 AND J13<1 AND J55<1 AND K55<2 OR VAR18 AND VAR17<6 AND REF(D55<20,3) OR VAR20 OR VAR21;
TP1:=LLV(LOW,60)*1.01;
TP2:=LLV(HIGH,30)*1.01;
TP3:=VAR5;
TP4:=BARSLAST(CROSS(TP1,TP3));
TP5:=REF(LOW,TP4);
TP6:=BARSLAST(CROSS(TP3,TP1));
TP7:=REF(LOW,TP6);
TP8:=BARSLAST(CROSS(TP3,TP2));
TP9:=REF(LOW,TP8);
TP10:=IF(TP4>TP6,TP7,TP5);
TP:=IF(TP8<TP6 AND TP8<TP4,TP9,TP10);
IF YX3<1 OR YX3>2 THEN BEGIN
五天:MA5,colorFFFFFF;
十天:FA,colorFFEE;
操作:MA14,colorFF00FF;
牛熊:MA25,colorCC00;
六零:MA60,LINETHICK2,colorFAABEC;
黄金线:HJX,LINETHICK2,color9999;
PARTLINE(HJXCS,HJX),LINETHICK2,color88;
短顶:VAR4,colorFF6699;
短底:VAR5,color999999;
END;
IF YX3=1 THEN BEGIN
突破:TP,LINEDOT,colorAA66AA;
进出:JC,color99FF;
支撑压力:ZCYL,colorFF66FF;
上轨:MA(HIGH,6),SHIFT2,colorAA00;
下轨:MA(LOW,6),SHIFT2,colorAA;
阻挡:ZD,LINETHICK2,colorAAAAAA;
底部:XC,LINETHICK1,colorD0D000;
END;
MA5DY:=MA5>REF(MA5,1);
MA10DY:=MA10>REF(MA10,1);
MA14DY:=MA14>REF(MA14,1);
MA25DY:=MA25>REF(MA25,1);
MA20DY:=B4>REF(B4,1);
MA60DY:=MA60>REF(MA60,1);
HJXDY:=HJX>REF(HJX,1);
MADY:=MA5DY AND MA14DY AND MA25DY AND HJXDY;
MXA:=LOW<REF(MAX(CLOSE,OPEN),1);
XGDY1:=K13>REF(K13,1);
XGDY2:=D13>REF(D13,1);
XGDY3:=J13>REF(J13,1);
XGDY4:=K55>REF(K55,1);
XGDY5:=D55>REF(D55,1);
XGDY6:=J55>REF(J55,1);
XGDY7:=VAR10>REF(VAR10,1);
XGDY8:=VAR11>REF(VAR11,1);
XGDY9:=XGDY1 AND XGDY2 AND XGDY3 AND XGDY4 AND XGDY5 AND XGDY6;
XGDY10:=XGDY1 AND XGDY3 AND XGDY4 AND XGDY6;
XGDY:=VAR5=REF(VAR5,1) AND XC=REF(XC,1);
XGSC1:=CROSS(K13,D13);
XGSC2:=CROSS(K55,D55);
XGSC3:=CROSS(VAR10,VAR11) AND XGDY7;
XGSC4:=(BARSLAST(CROSS(J13,0) OR CROSS(J13,K55) AND CROSS(J13,D55) OR XGSC1))<2 AND (CROSS(J55,0) OR J55<0 AND XGDY6);
LK:=CROSS(CLOSE,TP) AND VA=1;
YS1:=DMA(CLOSE,VOL/MA(VOL,4)/4);
YS2:=DMA(CLOSE,VOL/MA(VOL,32)/32);
YS3:=(CLOSE-YS1)/YS1*100<-8;
YS4:=(YS1-YS2)/YS2*100<-21;
逆势出招:=YS3 AND YS4 AND VAR22 AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.05 OR CROSS(VAR17,1) AND XGSC1 AND D55<5 AND (XGSC3 OR XGDY7 AND XGDY8) AND (CROSS(VAR11,50) OR VAR10<50);
CD1:=REF(CLOSE,2)*0.865;
CD2:=REF(CLOSE,13)*0.772;
CD3:=100*VOL/CAPITAL;
CD4:=REF((CLOSE-MIN(CD1,CD2))/CLOSE<0.1 AND SUM(CD3,5)/5<1.8,1);
CD5:=VAR20 AND (CROSS(J55,0) AND D55<20 OR CROSS(VAR17,10) OR CROSS(VAR17,1) AND D55<3 OR VAR21) AND XGDY8;
CD6:=VAR18 AND REF(D55<20,3) AND (CROSS(J,0) AND CROSS(J13,0) AND CROSS(J55,0) OR CROSS(VAR17,10) OR VAR20) AND VAR12>99.5;
CD7:=J<-24 AND J13<-24 AND VAR17<18 OR CROSS(VAR17,10) AND CROSS(K13,D13) AND CROSS(K55,D55) AND D55<VAR17;
CD8:=REF(D55<20,3) AND CROSS(J,0) AND CROSS(J13,0) AND CROSS(J55,0) AND VAR17<5 AND D55<3 AND K13<10;
CD9:=CROSS(J,-4) AND CROSS(J13,-4) AND CROSS(J55,-4) AND (CROSS(VAR17,0) OR VAR18);
CD10:=VAR18 AND REF(CROSS(20,VAR11),1) AND CROSS(VAR11,20);
CD11:=CROSS(VAR10,20) AND CROSS(VAR11,20) AND VAR10<36 AND REF(CROSS(20,VAR10) AND CROSS(20,VAR11),1);
CD12:=LOW<=VAR5 AND CLOSE>REF(OPEN,1) AND CROSS(VAR11,20) AND REF(CROSS(VAR10,20),1) AND REF(CROSS(20,VAR10) AND CROSS(20,VAR11),2);
抄底:=逆势出招=0 AND VAR11<20 AND (CD4 AND (VAR22 AND VAR12>99.5 OR CD11) OR CD5 OR CD6 OR CD7 OR CD8 OR CD9 OR CD10 OR CD12) AND (XGSC3 OR XGDY7 AND XGDY8) AND (CROSS(VAR11,50) OR VAR10<50) OR XGSC3 AND CROSS(VAR11,20) AND REF(XGDY8,1) AND REF(XGDY8,2) AND VAR5=REF(VAR5,9);
DRAWTEXT(FILTER(抄底,3) AND REF(逆势出招=0,1),LOW-0.05,'抄底'),colorFF00;
DRAWTEXT(FILTER(逆势出招,3),LOW*0.96,'逆势出招'),colorF0F000;
ZZ1:=MA5DY AND MA10DY AND VAR17>REF(VAR17,1) AND (CROSS(CLOSE,MA14) AND HJXCS OR MA5>MA14 AND XGDY7) AND VAR10>REF(VAR10,3);
ZZ2:=CROSS(MA5 |