input:N1(3,1,100),N2(5,1,100),N3(9,1,100),N4(13,1,100);
DIFF:=EMA(CLOSE,N3)-EMA(CLOSE,N4);
DEA:=EMA(DIFF,N2);
DRAWICON(DIFF>DEA,1,12),ALIGN1;
DRAWICON(DIFF
A1:=DIFF>REF(DIFF,1);
RSV1:=(CLOSE-LLV(LOW,N3))/(HHV(HIGH,N3)-LLV(LOW,N3))*100;
K:=SMA(RSV1,N1,1);
D:=SMA(K,N1,1);
DRAWICON(K>REF(K,1),2,12),ALIGN1;
DRAWICON(K
DRAWTEXT(BARSTATUS=2,2,' kdj'),COLORFFFFFF;
A2:=K>REF(K,1);
LC:=REF(CLOSE,1);
rsi1:=(SMA(MAX(CLOSE-LC,0),N2,1))/(SMA(Abs(CLOSE-LC),N2,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),N4,1))/(SMA(ABS(CLOSE-LC),N4,1))*100;
DRAWICON(RSI1>RSI2,3,12),ALIGN1;
DRAWICON(RSI1
DRAWTEXTABS(5,5,' '),linethick1,COLOR00EEff;
A3:=RSI1>RSI2;
RSV:=-(HHV(HIGH,N4)-CLOSE)/(HHV(HIGH,N4)-LLV(LOW,N4))*100;
Lwr1:=SMA(RSV,N1,1);
LWR2:=SMA(LWR1,N1,1);
DRAWICON(LWR1>REF(LWR1,1),4,12),ALIGN1;
DRAWICON(LWR1
DRAWTEXT(BARSTATUS=2,4,' LWR'),COLORFFFFFF;
A4:=LWR1>REF(LWR1,1);
bbi:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4;
DRAWICON(CLOSE>BBI,5,12),ALIGN1;
DRAWICON(CLOSE
A5:=CLOSE>BBI;
mtm:=CLOSE-REF(CLOSE,1);
mms:=100*EMA(EMA(MTM,N2),N1)/EMA(EMA(ABS(MTM),N2),N1);
MMM:=100*EMA(EMA(MTM,N4),N3)/EMA(EMA(ABS(MTM),N4),N3);
DRAWICON(MMS>MMM,6,12),ALIGN1;
DRAWICON(MMS
{- }
MacD金叉:DIFF>DEA,COLOR0000FF;
kdJ金叉:K>D,COLORFF00FF;
RSI金叉:RSI1>RSI2,COLORFFFFFF;
LWR金叉:LWR1>LWR2,COLOR0000FF;
BBI金叉:CLOSE>BBI,COLOR00FFFF;
MMS金叉:MMS>MMM,COLOR00FF00;
MACD金叉 AND KDJ金叉 AND RSI金叉 AND LWR金叉 AND BBI金叉 AND MMS金叉,COLORRED,LINETHICK2;
六指全红:LAST(MACD金叉 AND KDJ金叉 AND RSI金叉 AND LWR金叉 AND BBI金叉 AND MMS金叉),COLORRED,LINETHICK0;