源码
多方强度:=EMA(CLOSE,2.5);
空方强度:=EMA(CLOSE,5);
趋势线:EMA(空方强度,18),CoLor00FFFF,LINETHICK2;
DRAWTEXT((多方强度>趋势线),LOW,'↑'),CoLor0000FF,LINETHICK2;
DRAWTEXT((多方强度<空方强度),HIGH,'↓'),CoLor008000,LINETHICK2;
多空均衡:=EMA(空方强度,2.5);
VARF1:=(COUNT(CROSS(多方强度,多空均衡),2)=1);
VARF2:=(COUNT(CROSS(空方强度,多空均衡),2)=1);
ZAI:=FILTER(VARF1 AND VARF2,2);
S:=(MA(VOL,5))/(MA(VOL,60));
A:=MA(S,5);
BIAS:=((CLOSE-MA(CLOSE,5))/(MA(CLOSE,5)))*(100);
F:=MA(S,121);
RSV:=((CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45)))*(100);
K:=SMA(RSV,15,1);
D:=SMA(K,15,1);
J:=(3)*(K)-(2)*(D);
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX(CLOSE-LC,0),6,1))/(SMA(ABS(CLOSE-LC),6,1)))*(100);
DRAWTEXT(CROSS(82,RSI),HIGH,' 减 '),CoLor00FF00;
DRAWTEXT(CROSS(63,RSI),HIGH,' 卖 '),CoLor00FF00;
S1:=IF((J<11) AND (BIAS>(-11)) AND CROSS(S,F) AND (S-F>0.01),2,0);