N:=5;
P:=HIGH-LOW;
AA:=(O+H+L+C)/4;
BB:=MA(AA,3);
CC:=SUM(IF(AA>REF(AA,1),AA*vol,0),4)/SUM(IF(AA
DD:=REF(100-(100/(1+CC)),1);
A1:=HHV(AA,15);
A2:=LLV(AA,15);
A3:=A1-A2;
A4:=EMA((AA-A2)/A3,2)*100;
B1:=HHV(AA,60);
B2:=LLV(AA,60);
B3:=B1-B2;
B4:=EMA((AA-B2)/B3,2)*100;
C1:=HHV(AA,240);
C2:=LLV(AA,240);
C3:=C1-C2;
C4:=EMA((AA-C2)/C3,2)*100;
短期:=A4;
中期:=B4;
长期:=C4;
MID:MA(CLOSE,N);
UPPER:MID + P*STD(CLOSE,N), LINETHICK2;
LOWER:MID - P*STD(CLOSE,N), LINETHICK2;
EMA1: MA (CLOSE,5), COLORGREEN;
S13V:=V+REF(V,1)+REF(V,2)+REF(V,3)+REF(V,4)
DRAWTEXT(S13V,LOW-0.04,'↑'), COLORRED;
VD30:=V
DRAWTEXT(VD30,LOW-0.04,'日');
VD30B:=V>REF(V,1)AND V>REF(V,2)AND V>REF(V,3)AND V>REF(V,4)AND V>REF(V,5)AND V>REF(V,6)AND V>REF(V,7)AND V>REF(V,8)AND V>REF(V,9)AND V>REF(V,10)AND V>REF(V,11);
DRAWTEXT(VD30B,HIGH+0.08,'大');
V3:=REF(V,2)+REF(V,3)+REF(V,4);
V3X:=V3/3;
V3Y:=REF(V,1)/V3X>2;
DRAWTEXT(V3Y AND A4<15 ,HIGH+0.04,'抢筹'), COLORRED;
DRAWTEXT(V3Y AND C4<20 AND A4>50 ,HIGH+0.06,'加码'), COLORRED;
VD14:=
V
V
M:=13;
DL:=100*(V-LLV(V,M))/(HHV(V,M)-LLV(V,M));
股旁网:=(V<=HHV(V,13)*0.33 OR DL<5 ) AND V
DRAWTEXT(VD14 AND EMA1>MID ,HIGH+0.06,'转'), COLORRED;
量价系数:=V/P;
P2:=REF(HIGH,1)-REF(LOW,1);
量价系数2:=REF(V,1)/P2;
DRAWTEXT(OPEN