DRAWTEXT_FIX(ISLASTBAR,0.8,0,0,字),COLORYELLOW;
{红}STICKLINE(C>O,C,O,2,1),COLORRED ;STICKLINE(C>O,H,L,0,0),COLORRED;
{绿}STICKLINE(C
JJ:=(CLOSE+HIGH+LOW)/3;
A:=EMA(JJ,10);
B:=REF(A,1);
STICKLINE(A>B,A,B,3,0),COLORYELLOW;
STICKLINE(AM1:EMA(CLOSE,3);
M2:EMA(CLOSE,8);
M3:EMA(M2,13);
M4:EMA(M2,55);
VAR1:=EMA(M3,55);
M5:EMA(M4,81), COLORRED,LINETHICK2;
VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;
VAR3:=MA(CLOSE,21)+2*STD(CLOSE,21);
DRAWICON(CROSS(VAR2,VAR3),HIGH*1.035,2);
DRAWTEXT(CROSS(VAR2,VAR3),HIGH*1.02,'卖出'), COLORGREEN;
VAR4:=REF(CLOSE,1);
VAR5:=SMA(MAX(CLOSE-VAR4,0),7,1)/SMA(ABS(CLOSE-VAR4),7,1)*100;
VAR6:=CROSS(79,VAR5);
VAR7:=FILTER(VAR6,4);
DRAWICON(VAR7,HIGH*1.035,2);
DRAWTEXT(VAR7,HIGH*1.02,'卖出'), COLORGREEN;
A7:=(2*C+H+L)/4;
VAR10:=LLV(LOW,34);
VAR11:=HHV(HIGH,34);
SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
DRAWTEXT(IF(COUNT(CLOSE6/10 AND VOL>=1.5*MA(VOL,5) AND
COUNT(SK>=SD,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'●买进') ,COLORRED;
DRAWTEXT(IF(COUNT(CLOSE6/10 AND
COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND
REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND
OPEN>REF(CLOSE,1),1,0),LOW,'●买进'), COLORRED;
D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
DRAWTEXT(IF(CLOSE
AND CLOSE
TY:=H;
A1:=REF(TY,10)=HHV(TY,2*10+1);
B1:=FILTER(A1,10);
C1:=BACKSET(B1,10+1);
HD:=FILTER(C1,10);
波峰:REF(H,BARSLAST(HD)),COLOR00FF00,POINTDOT,LINETHICK4;
波峰1:STICKLINE(H,波峰,波峰,8,0),COLORYELLOW,LINETHICK4;
{===========}
AA:=EMA(JJ,5);
BB:=REF(AA,1);
持股:=AA>BB AND REF(AA,1)<=REF(BB,1);
VVAR1:=EMA(EMA(CLOSE,9),9);
控盘:=(VVAR1-REF(VVAR1,1))/REF(VVAR1,1)*1000;
Z:=MA(C,120);
VVAR4:=MA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3);
波段进场:=CLOSE>Z AND REF(VVAR4,1)<30 AND VVAR4>REF(VVAR4,1) AND REF(VVAR4,1)红色:=C>=MA(C,10);
红色进场:=波段进场 AND 红色;
XXG:=持股 AND CROSS(控盘,0) AND 红色进场;
DRAWTEXT(XXG,L*0.985,'↖三剑合一'),COLORYELLOW;
STICKLINE(XXG,CLOSE,OPEN,3,0),COLORRED ;