{北斗七星副}
15,COLOR111111;
F:=71;
F10:=13;
F15:=3;
F11:=12;
F12:=9;
F13:=7;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
DRAWICON(C>BBI,105,1);
DRAWTEXT(ISLASTBAR=1,IF(C>BBI,100,100),' 1'),COLORWHITE;
DIFF:=EMA(C,F11)-EMA(C,F);
DEA:=EMA(DIFF,F12);
MACD:=2*(DIFF-DEA);
DRAWICON(MACD>REF(MACD,1),90,1);
DRAWTEXT(ISLASTBAR=1,IF(MACD>REF(MACD,1),90,90),' 2'),COLORWHITE;
RSV:=(C-LLV(L,F))/(HHV(H,F)-LLV(L,F))*100;
K:=SMA(RSV,F10,1);
D:=SMA(K,F15,1);
J:=3*K-2*D;
DRAWICON(J>REF(J,1),80,1);
DRAWTEXT(ISLASTBAR=1,IF(J>REF(J,1),80,80),' 3'),COLORWHITE;
MA1:=EMA(C,F13);
DRAWICON(C>MA1,70,1);
DRAWTEXT(ISLASTBAR=1,IF(C>MA1,70,70),' 4'),COLORWHITE;
WLC:= REF(C,1);
RSI1:=SMA(MAX(C-WLC,0),F13,1)/SMA(ABS(C-WLC),F13,1)*100;
RSI2:=SMA(MAX(C-WLC,0),F10,1)/SMA(ABS(C-WLC),F10,1)*100;
DRAWICON(RSI1>RSI2,60,1);
DRAWTEXT(ISLASTBAR=1,IF(RSI1>RSI2,60,60),' 5'),COLORWHITE;
VAR6:=(2*C+H+L)/4;
VAR8:=LLV(L,34);
VARB:=HHV(H,34);
VARC:=EMA((VAR6-VAR8)/(VARB-VAR8)*100,8);
VARD:=EMA(VARC,5);
DRAWICON (VARC-VARD< 0,50,2);
DRAWICON(VARC-VARD>0,50,1);
DRAWTEXT(ISLASTBAR=1,IF(VARC-VARD>0,50,50),' 6'),COLORWHITE;
VAR2:=AMOUNT/VOL/100;
VAR18:=MA(VAR2,10);
DRAWICON (C< VAR18,40,2);
DRAWICON(C>VAR18,40,1);
DRAWTEXT(ISLASTBAR=1,IF(C< VAR18 OR C>VAR18,40,40),' 7'),COLORWHITE;
RSX:=(HHV(H,F)-C)/(HHV(H,F)-LLV(L,F))*100;
LWR1:=SMA(RSX,F13,1);
LWR2:=SMA(LWR1,F15,1);
DRAWICON (LWR1>LWR2,30,2);
DRAWTEXT(ISLASTBAR=1,IF(LWR1>LWR2,30,30),' 8'),COLORWHITE;