M5:=MA(C,5);
MM:MA(C,10);
MM2:MA(C,10),COLOR80FFFF,LINETHICK2;
M25:=MA(C,250);{程序化指标官方网址 www.honghaie.com}
MM3:IF(MM2>REF(MM2,1),MM2,DRAWNULL),COLORMAGENTA,LINETHICK1;
搏杀持股线:IF(MM>REF(MM,1),MM,DRAWNULL),COLORRED,LINETHICK2;
MM55:IF(MM<>
A:=(C+O)/2;
Z:=C>REF(C,1)*1.05;
D:=C<>
STICKLINE(Z,A,O,1,0),COLORMAGENTA;
STICKLINE(D,A,O,1,0),COLORFFFF00;
ZT:=C>REF(C,1)*1.08;
DT:=C<>
STICKLINE(ZT,C,O,2,0),COLORRED;
STICKLINE(DT,C,O,2,0),COLORFFFF00;
ZTT:=C>REF(C,1)*1.093;
S:=(C+O)/2;
STICKLINE(ZTT,S,C,0.01,0),COLORYELLOW;
YS1:=(HIGH+LOW+CLOSE*2)/4;
RK3:=EMA(YS1,10);
RK4:=STD(YS1,10);
RK5:=(YS1-RK3)*100/RK4;
RK6:=EMA(RK5,5);
RK7:=EMA(RK6,10);
涨:=EMA(RK6,10)+100/2-5,COLORRED;
跌:=EMA(涨,4),COLORWHITE;
决杀线:MA(C,20),COLORFFFFFF;
VAR11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)
-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
黑马线O:=EMA(VAR11,5);
VAR12:=(黑马线O-REF(黑马线O,1))/REF(黑马线O,1)*100;
熊线:=100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60));
T1:=CROSS(黑马线O,熊线) AND 涨<150;
AA:= CLOSE=OPEN AND HIGH<>LOW OR CLOSE=OPEN AND HIGH/LOW>1.03 OR CLOSE=OPEN AND CLOSE=LOW AND CLOSE<>HIGH OR REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.97 and="" open="">REF(CLOSE,1) AND CLOSECLOSE AND OPEN/REF(C,1)>= 1+4/100 AND CLOSE/OPEN<=1-5/100 OR ABS(HIGH-REF(HIGH,1))/HIGH<0.001
OR OPEN>=CLOSE AND ABS(HIGH-OPEN)>=ABS(OPEN-LOW) OR CLOSE>=OPEN AND ABS(HIGH-CLOSE)>=ABS(CLOSE-LOW) OR OPEN>REF(CLOSE,1) AND OPEN>CLOSE ;
BB:=CLOSE>=OPEN AND ABS(HIGH-OPEN)<=ABS(OPEN-LOW) OR CLOSE<=OPEN AND ABS(HIGH-CLOSE)<=ABS(CLOSE-LOW);
CC:=AA OR BB;
DD:=涨>REF(涨,1) AND C<>O AND C/REF(C,1)<1.099 ;
王五:=涨>170 AND CC AND DD AND COUNT(C/REF(C,1)>1.090 AND C<>O,20)<=4>=5;
麻子:=涨>170 AND COUNT(C/REF(C,1)>1.093,15)>=5 OR BARSLASTCOUNT(C/REF(C,1)>=1.093)>=5 AND C<>O;
DRAWICON((HIGH-LLV(L,90))/LLV(L,90)*100>120 AND 黑马线O>=REF(黑马线O,1) AND 黑马线O>98 AND C/REF(C,1)<1.099 AND C<>O AND REF(C,1)<>REF(O,1),H+0.5,2);
DRAWICON(黑马线O>100 AND C<>O AND REF(C,1)<>REF(O,1),H+0.5,2);
DRAWICON(王五 OR 麻子 AND C>MA(C,5) AND C>MA(C,30) AND MA(C,5)>MA(C,10) AND C>MA(C,60) AND REF(C,1)/REF(C,2)<1.08 and="">REF(O,1),H+0.5,2);
K3:= ABS(L-O)1.093 AND REF(C,1)/REF(C,2)<1.093 AND REF(C,2)/REF(C,3)<1.093 AND REF(C,3)/REF(C,4)<1.093 AND REF(C,4)/REF(C,5)<1.093 AND REF(C,5)/REF(C,6)<1.093 and="" c="O">1.099) ;
K4:=C/REF(C,1)>1.093 AND V<1.093="" c="""">1.093,20)<3;
程序1:=王五 OR 麻子 AND C>MA(C,5) AND C>MA(C,30) AND MA(C,5)>MA(C,10) AND C>MA(C,60) AND REF(C,1)/REF(C,2)<1.08 and="">C/REF(O,1);
程序2:=(HIGH-LLV(L,90))/LLV(L,90)*100>120 AND 黑马线O>=REF(黑马线O,1) AND 黑马线O>95 AND C/REF(C,1)<1.099;
程序3:=黑马线O>100 AND C<>O AND C/REF(C,1)<>C/REF(O,1);
开心:=程序1 OR 程序2 OR 程序3 ;
指标线:=K3 OR K4 AND COUNT(C/REF(C,1)>1.05,10)<=4 AND SUM(开心,12)<1;
DRAWICON(K3 OR K4 AND COUNT(C/REF(C,1)>1.05,10)<=4 AND SUM(开心,12)<1 AND SUM(指标线,20)<2 ,O,23);
DRAWTEXT(K3 OR K4 AND COUNT(C/REF(C,1)>1.05,10)<=4 AND SUM(开心,12)<1 AND SUM(指标线,20)<2 ,L-0.05,"有妖气"),COLORFF00FF;
STICKLINE(K3 OR K4 AND COUNT(C/REF(C,1)>1.05,10)<=4 AND SUM(开心,12)<1 AND SUM(指标线,20)<2 ,S,C,0.005,0),COLORFFFFFF;