XX2:=(MA(CLOSE,80)-MA(CLOSE,13)/3)*XX1;
神奇线: MA((CLOSE-XX2)/XX2,1);
买点1: IF(CROSS(神奇线,0) AND LOW/REF(HIGH,1)< 1.012,0.5,0), STICK,COLORWHITE;
稳: IF(COUNT(神奇线>REF(神奇线,1),3)=3 AND COUNT(神奇线< 0,10)=10 AND REF(神奇线,3)=LLV(神奇线,10),0.5,0);
买点2: IF(REF(神奇线,2)=LLV(神奇线,20) AND REF(神奇线,2)< 0.071 AND REF(神奇线,2)< REF(神奇线,1) AND NOT(REF(LOW,1)>REF(HIGH,2) AND LOW>REF(HIGH,1)) AND CLOSE>REF(CLOSE,1),0.5,0),COLORRED;
DRAWTEXT( 买点1>0,0.2 ,'★神奇线1'),COLORWHITE;
DRAWTEXT( 买点2>0,0.4 , '★神奇线'),COLORRED;
VAR1:=INDEXC;
VAR2:=MA(VAR1,6);
VAR3:=MA(VAR1,24);
VAR4:=MA(VAR1,32);
VAR5:=MA(VAR1,62);
VAR6:=MA(VAR1,105);
VAR7:=VAR5< REF(VAR5,1) AND VAR6< REF(VAR6,1) AND VAR5< VAR6*0.98;
VAR8:=VAR4>VAR2*1.11 AND VAR3>VAR2*1.095;
VAR9:=VAR2>VAR1*0.95;
百发百中:VAR7 AND VAR8 AND VAR9 AND CLOSE/COST(8)<=0.8 AND (CLOSE>OPEN OR CLOSE< OPEN) AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)< REF(OPEN,1)) AND DATE< 1991231 OR CLOSE>0.1 AND DATE>1991231,COLORGREEN;
DRAWTEXT(百发百中>0 ,0.5 , '★百发百中'),COLORGREEN;
A:=99;
B:=LOW;
D:=REF(LOW,1);
E:=SMA(ABS(B-D),3,1)/SMA(MAX(B-D,0),3,1)*100;
F:=MA(IF(CLOSE*1.35<=A,E*10,E/10),3);
G:=LLV(LOW,30);
I:=HHV(F,30);
J:=99;
K:=CLOSE-REF(CLOSE,6);
M:=MA(K,6);
N:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
P:=SMA(N,3,1);
Q:=SMA(P,3,1);
R:=EMA(3*P-2*Q,2);
S:=(((K+100)/2+R)/2-50)*(-4);
T:=EMA(S,3);
U:=EMA(T,4);
W:=T;
X:=U;
Y:=100-W;
Z:=100-X;
ZZ:=IF(DATE<=J,MA(IF(LOW<=G,(F+I*2)/2,0),3),99);
长针1: Z< 9 AND ZZ>70000,COLORMAGENTA;
DRAWTEXT(长针1>0 ,0.7,'★长针1'),COLORMAGENTA;
V1:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE< REF(CLOSE,1),0-VOL,0)),0);
V2:=SUMBARS(VOL,CAPITAL);
V3:=IF(CLOSE>LLV(CLOSE,V2),1,-1);
V4:=IF(V1>LLV(V1,V2),1,-1);
V5:=V3*V4;
V6:=IF(V5=-1,1,0);
V7:=COUNT(V6=1,8)>2;
V8:=AMOUNT/VOL/100;
V9:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
VA:=SUM(AMOUNT,13)/V8/100;
VB:=DMA(V9,VOL/VA);
VC:=(CLOSE-VB)/VB*100< -15;
VD:=(CLOSE-MIN(REF(CLOSE,5)*0.865,REF(CLOSE,21)*0.772))/CLOSE< 0.05;
长针2:VC AND VD AND V7;
(长针2>0 AND REF(长针2,1)=0),COLORCYAN;
DRAWTEXT(长针2>0 AND REF(长针2,1)=0,0.9,'★长针2'),COLORCYAN;