组合主图
LOCK:=1;
M8:=EMA(CLOSE,8);
M13:=EMA(M8,13);
VAR1:=EMA(M13,62);
VAR2:=(CLOSE+HIGH+LOW)/3;
VAR3:=EMA(VAR2,10)*LOCK;
VAR4:=REF(VAR3,1)*LOCK;
X26:STICKLINE(VAR3>VAR4,VAR3,VAR4,2.5,0),COLOR00FFFF;
X27:STICKLINE(VAR3<VAR4,VAR3,VAR4,2.5,0),COLORFF0000;
AAA:=MA(C,10);
BBB:=ATAN((AAA/REF(AAA,1)-1)*100)*180/3.1416;
CCC:=FILTER(CROSS(BBB,30),5);
DRAWTEXT(CCC AND C>AAA,AAA*0.95,'十日三十度角');
MA13:MA(C,13),COLORRED,LINETHICK2;
K1:=BACKSET(MA13<REF(MA13,1),2);
IF(K1,MA13,DRAWNULL),COLOR00CC33,LINETHICK2;
MA34:MA(C,34),COLORYELLOW,LINETHICK2;
K2:=BACKSET(MA34<REF(MA34,1),2);
IF(K2,MA34,DRAWNULL),COLORFFCC66,LINETHICK2;
MA55:MA(C,55),COLOR9933CC,LINETHICK2;
K3:=BACKSET(MA55<REF(MA55,1),2);
IF(K3,MA55,DRAWNULL),COLORBLUE,LINETHICK2;
阻力价:HHV(HIGH,19),LINETHICK1,NODRAW;
AR1:=MA55>MA34 AND MA34>MA13;
AR2:=BARSLAST((C-MA13)/MA13*100<-6);
AR3:=MA13>=REF(MA13,1);
AR4:=COUNT(CROSS(C,MA13),AR2)=1;
AR5:=AR1 AND AR2 AND AR3 AND AR4;
AR6:=AR5 AND FILTER(AR5,10);
X1:DRAWTEXT(AR6,L-0.5,'←红杏出墙'),COLORYELLOW;
Y:=(MA(C,13)-MA(C,55))/MA(C,13)*100;
YY1:=C>MA(C,13) AND OPEN<MA(C,13);{一阳三线}
YY3:=C>MA(C,34) AND OPEN<MA(C,34);
YY5:=C>MA(C,55) AND OPEN<MA(C,55);
X2:DRAWTEXT(YY1 AND YY5 AND YY3,LOW-0.1,'←一阳三线'),COLORRED;
SJ1:=ABS(MA(CLOSE,13)-MA(CLOSE,34))<C*0.01;{13线34线55线接近}
SJ2:=ABS(MA(CLOSE,34)-MA(CLOSE,55))<C*0.01;
SJ3:=CROSS(MA(CLOSE,13),MA(CLOSE,55));{13线上穿55线}
X3:DRAWTEXT(SJ1 AND SJ2 AND SJ3,HIGH+0.1,'←三军集结'),COLORRED;
RY1:=C/OPEN>1.04;{阳线4%}
RY2:=REF(OPEN,1)/REF(CLOSE,1)>1.04;{阴线4%}
RY3:=ABS(OPEN-REF(C,1))<C*0.02 AND ABS(C-REF(OPEN,1))<C*0.02;{两线相等}
X4:DRAWTEXT(RY1 AND RY2 AND RY3 ,LOW,'←日月合璧'),COLORYELLOW;
HK1:=CROSS(MA(C,13),MA(C,55));{13线上穿55线}
HK2:=C<O;{当日收阴}
HK3:=ABS(L-MA(C,13))<C*0.03 OR ABS(C-MA(C,13))<C*0.04;{收盘价或最低价在13线}
HK:=HK1 AND HK2 AND HK3;
X5:DRAWTEXT(HK,LOW,'←黑客》》 '),COLORGREEN;
JG1:=ABS(MA(C,13)-MA(C,34))<C*0.02 AND ABS(MA(C,13)-MA(C,55))<C*0.02;
JG2:=O>MA(C,13) OR O=MA(C,13);
JG3:=C/OPEN>1.03 ; {阳线3%}
JG:=JG1 AND JG2 AND JG3;
X6:DRAWTEXT(JG,LOW-0.2,'←揭竿而起'),COLORYELLOW; |