均线自己设置
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
HC1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
HC2:=REF(HC1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2),NODRAW;
HC3:=REF(HC2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2),NODRAW;
HC4:=REF(HC3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2),NODRAW;
HC5:=REF(HC4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2),NODRAW;
HC6:=REF(HC5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2),NODRAW;
HC7:=REF(HC6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2),NODRAW;
HC8:=REF(HC7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2),NODRAW;
HC9:=REF(HC8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2),NODRAW;
HCA:=REF(HC9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2),NODRAW;
HCB:=REF(HCA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2),NODRAW;
HCC:=REF(HCB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2),NODRAW;
HCD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
HCE:=REF(HCD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
HCF:=REF(HCE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
HC10:=REF(HCF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
HC11:=REF(HC10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
HC12:=REF(HC11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
HC13:=REF(HC12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
HC14:=REF(HC13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
HC15:=REF(HC14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
HC16:=REF(HC15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
HC17:=REF(HC16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
HC18:=REF(HC17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
HC19:=REF(HCD OR HCE OR HCF OR HC10 OR HC11 OR HC12 OR HC13 OR
HC14 OR HC15 OR HC16 OR HC17 OR HC18,1) AND HC1;
HC1A:=REF(HC1 OR HC2 OR HC3 OR HC4 OR HC5 OR HC6 OR HC7 OR
HC8 OR HC9 OR HCA OR HCB OR HCC,1) AND HCD;
STICKLINE(HC1A,H*1.010,H*1.006,1,0),COLORGREEN;
STICKLINE(HC19,L*0.994,L*0.99,1,0),COLORYELLOW;
{VAR6:=(( ABS((O-C))/(H-L))*V);
VAR7:=(( (H-IF((C>O),C,O))/(H-L))*V);
VAR8:=(( (IF((C>O),O,C)-L)/(H-L))*V);
VAR9:=IF(((V/CAPITAL)>0.001),1,EXP(ABS(LOG(((V/CAPITAL)*100)))));
加仓:=VAR6>=VAR7 AND VAR6>=VAR8 AND C>O,NODRAW,COLORRED;
减仓:=VAR6>=VAR7 AND VAR6>=VAR8 AND C<O,NODRAW,COLORGREEN;
洗盘:=VAR8>VAR6 AND VAR8>VAR7,NODRAW,COLORWHITE;
高抛:=VAR7>VAR6 AND VAR7>VAR8,NODRAW,COLORMAGENTA;
地量:=VAR9>2 AND V<MA(V,5)/2,NODRAW,COLORGREEN;
STICKLINE(加仓,O,C,1,0),COLORRED;
STICKLINE(洗盘,O,C,1,0),COLORWHITE;
STICKLINE(减仓,O,C,1,0),COLORBLUE;
STICKLINE(高抛,O,C,1,0),COLORMAGENTA;
STICKLINE(地量,O,C,1,0),COLORGREEN;}
JJ:=(3*C+H+L+O)/6;
VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;
TJ1:=V=HHV(V,10) AND V>2*REF(V,1) AND C>VAR1 AND C>REF(C,1);
LJL:=FILTER(TJ1,5);
STICKLINE(C,REF(L,BARSLAST(LJL)),REF(L,BARSLAST(LJL)),1,0),COLORRED;
STICKLINE(C,REF(C,BARSLAST(LJL)),REF(C,BARSLAST(LJL)),1,0),COLORYELLOW;
STICKLINE(LJL,O,C,1,0),COLORYELLOW;
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
前期高位:REF(H,BARSLAST(HD)), COLORFF00FF,POINTDOT,LINETHICK3;
前期低位:REF(L,BARSLAST(LD)), COLORGREEN,POINTDOT,LINETHICK3;
{DRAWTEXT_FIX(1,0.02.0,0.30,0,'蓝芯-主力低位深度洗盘或高位出货坚决'),COLORYELLOW,LINETHICK1;
DRAWTEXT_FIX(1,0.02,0.36,0,'白芯-主力轻度洗盘'),COLORWHITE,LINETHICK1;
DRAWTEXT_FIX(1,0.02,0.42,0,'棕芯-出现了近期相对地量'),COLORGREEN,LINETHICK1;
DRAWTEXT_FIX(1,0.02,0.48,0,'粉芯-主力在做高抛低吸或低吸高抛'),COLORFF00FF,LINETHICK1;
DRAWTEXT_FIX(1,0.02,0.54,0,'红芯-主力吸筹进货积极主动'),COLORRED,LINETHICK1;
DRAWTEXT_FIX(1,0.02,0.60,0,'黄芯-主力吸筹进货强并且成交量出现黄金柱'),COLORYELLOW,LINETHICK1;}
TT:=240/FROMOPEN;
比:=TT;
J12:=(HIGH - ((HIGH - LOW) / 3));
J23:=(LOW + ((HIGH - LOW) / 3));
D1:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1)
< REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND
CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));
D2:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.03 AND REF(OPEN,1)
> REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02
AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2)),1,0));
D3:=CONST(IF((CLOSE=OPEN AND HIGH/LOW >1.03),1,0));
D4:=CONST(IF((CLOSE=OPEN AND CLOSE=LOW AND CLOSE!=HIGH),1,0));
D5:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1)
< REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND
CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));
D6:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.05 AND REF(OPEN,1)
> REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND
CLOSE/OPEN<0.95 AND CLOSE<REF(CLOSE,2)),1,0));
D7:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >
3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE > MA(CLOSE,5)),1,0));
D8:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >
3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE < MA(CLOSE,5)),1,0));
D9:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >
3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE < MA(CLOSE,5)),1,0));
D10:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >
3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5)),1,0));
D11:=CONST(IF(((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.96
AND CLOSE<REF(OPEN,1)
AND OPEN>REF(CLOSE,1))OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04
AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1))),1,0));
D12:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.97
AND OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1)),1,0));
D13:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.03
AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1)),1,0));
D14:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04
AND ABS(CLOSE-OPEN)/CLOSE<0.005 AND
MAX(CLOSE,OPEN) < MAX(REF(CLOSE,1),REF(OPEN,1)) AND MIN(CLOSE,OPEN)
> MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));
D15:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04
AND CLOSE=OPEN AND
CLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1)
,REF(OPEN,1))),1,0));
D16:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGH<0.001),1,0));
D17:=CONST(IF(((ABS(LOW-REF(LOW,1))/LOW<0.001 AND ABS(REF(LOW,1)
-REF(LOW,2))/REF(LOW,1)<=0.001)),1,0));
D18:=CONST(IF((CLOSE/OPEN>1.05 AND HIGH/LOW <
CLOSE/OPEN+0.018),1,0));
D19:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)
>REF(OPEN,1) AND CLOSE>OPEN
AND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1)),1,0));
D20:=CONST(IF((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN
AND CLOSE/OPEN<0.98),1,0));
D21:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2)
-REF(OPEN,2))/REF(OPEN,2)>=2/100 AND REF(OPEN,1)>=REF(CLOSE,1)
AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1)
<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND C>=OPEN
AND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) AND OPEN<=REF(CLOSE,1)
AND (MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2))
<=1/100),1,0));
D22:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1)
AND CLOSE>OPEN),1,0));
D23:=CONST(IF(((OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN<
EMA(C,60)) AND (C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))AND (V/MA(V,30)
>1.2 AND C/REF(C,1)>1.049)),1,0));
D24:=CONST(IF((REF(CLOSE,4)/REF(OPEN,4)>1.03 AND REF(CLOSE,3)
<REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1)
AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)
<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2)
AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 AND CLOSE>REF
(CLOSE,4)),1,0));
D25:=CONST(IF(( REF(CLOSE,4)/REF(OPEN,4)<0.97 AND REF(CLOSE,3)
>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1)
AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)
<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF
(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN<0.97 AND
CLOSE<REF(CLOSE,4)),1,0));
D26:=CONST(IF(HIGH<REF(LOW,1) OR LOW>REF(HIGH,1),1,0));
D27:=CONST(IF((REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)
<REF(OPEN,1) AND CLOSE<OPEN AND REF(CLOSE,1)<REF(CLOSE,2)
AND CLOSE<REF(CLOSE,1)),1,0));
D28:=CONST(IF((LOW=CLOSE AND HIGH!=LOW),1,0));
D29:=CONST(IF((HIGH=CLOSE AND HIGH!=LOW),1,0));
D30:=CONST(IF((OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1)
-REF(OPEN,1))<0),1,0));
D31:=CONST(IF(((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667),1,0));
D32:=CONST(IF(((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667),1,0));
D33:=CONST(IF((CLOSE=OPEN AND HIGH!=LOW),1,0));
D34:=CONST(IF((OPEN/CLOSE > 1.05 AND HIGH/LOW <
OPEN/CLOSE+0.018),1,0));
D35:=CONST(IF(((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN
AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002) OR (REF(CLOSE,1)>REF(OPEN,1)
AND CLOSE<OPEN AND ABS(CLOSE-REF(CLOSE,1))
/CLOSE<0.002)),1,0));
D36:=CONST(IF((REF(C,1)/REF(O,1)>=1.03 AND O<REF(C,1) AND O
>REF(O,1) AND C<REF(O,1)),1,0));
D37:=CONST(V*比>REF(V,1) AND MA(V,5)>REF(MA(V,5),1));
D38:=CONST(V*比<REF(V,1) AND MA(V,5)>REF(MA(V,5),1));
D39:=CONST(V*比>REF(V,1)AND MA(V,5)<REF(MA(V,5),1));
D40:=CONST(V*比<REF(V,1)AND MA(V,5)<REF(MA(V,5),1));
D41:=CONST((((IF((CLOSE = OPEN),1,0) + IF((CLOSE >= J12),1,0)) + IF
((CLOSE <= J23),1,0)) > 1));
D42:=CONST((((AMOUNT / VOL) / 100) > REF(HIGH,1)));
D43:=CONST((((AMOUNT / VOL) / 100) < REF(LOW,1)));
KS1:=IF(D1=1,0+0.03,0),NODRAW;
KS2:=IF(D2=1,KS1+0.03,KS1),NODRAW;
KS3:=IF(D3=1,KS2+0.03,KS2),NODRAW;
KS4:=IF(D4=1,KS3+0.03,KS3),NODRAW;
KS5:=IF(D5=1,KS4+0.03,KS4),NODRAW;
KS6:=IF(D6=1,KS5+0.03,KS5),NODRAW;
KS7:=IF(D7=1,KS6+0.03,KS6),NODRAW;
KS8:=IF(D8=1,KS7+0.03,KS7),NODRAW;
KS9:=IF(D9=1,KS8+0.03,KS8),NODRAW;
KS10:=IF(D10=1,KS9+0.03,KS9),NODRAW;
KS11:=IF(D11=1,KS10+0.03,KS10),NODRAW;
KS12:=IF(D12=1,KS11+0.03,KS11),NODRAW;
KS13:=IF(D13=1,KS12+0.03,KS12),NODRAW;
KS14:=IF(D14=1,KS13+0.03,KS13),NODRAW;
KS15:=IF(D15=1,KS14+0.03,KS14),NODRAW;
KS16:=IF(D16=1,KS15+0.03,KS15),NODRAW;
KS17:=IF(D17=1,KS16+0.03,KS16),NODRAW;
KS18:=IF(D18=1,KS17+0.03,KS17),NODRAW;
KS19:=IF(D19=1,KS18+0.03,KS18),NODRAW;
KS20:=IF(D20=1,KS19+0.03,KS19);
KS21:=IF(D21=1,KS20+0.03,KS20);
KS22:=IF(D22=1,KS21+0.03,KS21);
KS23:=IF(D23=1,KS22+0.03,KS22);
KS24:=IF(D24=1,KS23+0.03,KS23);
KS25:=IF(D25=1,KS24+0.03,KS24);
KS26:=IF(D26=1,KS25+0.03,KS25);
KS27:=IF(D27=1,KS26+0.03,KS26);
KS28:=IF(D28=1,KS27+0.03,KS27);
KS29:=IF(D29=1,KS28+0.03,KS28);
KS30:=IF(D30=1,KS29+0.03,KS29);
KS31:=IF(D31=1,KS30+0.03,KS30);
KS32:=IF(D32=1,KS31+0.03,KS31);
KS33:=IF(D33=1,KS32+0.03,KS32);
KS34:=IF(D34=1,KS33+0.03,KS33);
KS35:=IF(D35=1,KS34+0.03,KS34);
KS36:=IF(D36=1,KS35+0.03,KS35);
KS37:=IF(D37=1,KS36+0.03,KS36);
KS38:=IF(D38=1,KS37+0.03,KS37);
KS39:=IF(D39=1,KS38+0.03,KS38);
KS40:=IF(D40=1,KS39+0.03,KS39);
KS41:=IF(D41=1,KS40+0.03,KS40);
KS42:=IF(D42=1,KS41+0.03,KS41);
KS43:=IF(D43=1,KS42+0.03,KS42);
DRAWTEXT_FIX(D1=1,0.55,0.05,0,'早晨之星,见底回升'),COLORFF00FF ;
DRAWTEXT_FIX(D2=1,0.55,0.05,0,'黄昏之星,见顶回落'),COLORFFFF00 ;
DRAWTEXT_FIX(D3=1,0.55,0.35,0,'长十字,重要的警告信号,原趋势停顿或反转'),COLOR00FFFF ;
DRAWTEXT_FIX(D4=1,0.55,0.05,0,'垂死十字,下跌信号'),COLORFFFF00 ;
DRAWTEXT_FIX(D5=1,0.55,0.05,0,'早晨十字星,上涨信号,见底回升'),COLORFF00FF ;
DRAWTEXT_FIX(D6=1,0.55,0.05,0,'黄昏十字星,趋势停顿或反转,下跌或,见顶回落'),COLORFFFF00 ;
DRAWTEXT_FIX(D7=1,0.55,0.05,0,'射击之星,市场顶部就在眼前,可能见顶回落,可靠性低'),COLORFFFF00 ;
DRAWTEXT_FIX(D8=1,0.55,0.05,0,'倒转锤头构成一个看涨信号,可能见底回升'),COLORFF00FF ;
DRAWTEXT_FIX(D9=1,0.55,0.35,0,'锤头,可能见底回升,如有量配合,信号强烈'),COLOR0000FF ;
DRAWTEXT_FIX(D10=1,0.55,0.05,0,'吊颈,上升行情中见顶回落,顶部出现,见顶信号'),COLORFFFF00 ;
DRAWTEXT_FIX(D11=1,0.55,0.10,0,'穿头破脚,顶部出现,见顶回落信号'),COLORFFFF00 ;
DRAWTEXT_FIX(D12=1,0.55,0.05,0,'乌云盖顶,见顶回落信号'),COLORFFFF00 ;
DRAWTEXT_FIX(D13=1,0.55,0.25,0,'曙光初现,将演化为V型反转或横盘,后市见底回升'),COLORFF00FF ;
DRAWTEXT_FIX(D14=1,0.55,0.15,0,'身怀六甲,底部,是见底回升,顶部,是见顶回落信号'),COLOR00FFFF ;
DRAWTEXT_FIX(D15=1,0.55,0.20,0,'十字胎'),COLOR00FFFF;
DRAWTEXT_FIX(D16=1,0.55,0.35,0,'平顶,行情见顶,股价将反转,但下跌力度较小'),COLORFFFFFF ;
DRAWTEXT_FIX(D17=1,0.55,0.05,0,'平底,行情探低见底,股价行将反转上升,但力度较小'),COLORFFFFFF ;
DRAWTEXT_FIX(D18=1,0.55,0.20,0,'大阳烛,上升中,剧烈地向上攀升。下行中,剧烈地向上反弹'),COLOR0000FF ;
DRAWTEXT_FIX(D19=1,0.55,0.30,0,'三个白武士,每日收盘价上移,表示可能见底回升'),COLORFFFFFF ;
DRAWTEXT_FIX(D20=1,0.55,0.10,0,'双飞乌鸦,行情开始疲软将见顶回落'),COLORGREEN ;
DRAWTEXT_FIX(D21=1,0.55,0.15,0,'孕育线,注意股价位置'),COLOR00FFFF ;
DRAWTEXT_FIX(D22=1,0.55,0.15,0,'多方炮,底部可能上涨,中间上涨中继,顶部见顶信号'),COLOR00FFFF ;
DRAWTEXT_FIX(D23=1,0.55,0.30,0,'出水芙蓉,阳线穿过20、40、60日均线,上攻势头初现'),COLORFF00FF ;
DRAWTEXT_FIX(D24=1,0.55,0,0,'上升三部曲,上涨信号'),COLORFF00FF ;
DRAWTEXT_FIX(D25=1,0.55,0,0,'下跌三部曲,下跌信号'),COLORFFFF00 ;
DRAWTEXT_FIX(D26=1,0.55,0.05,0,'跳空缺口,突破盘整,向上涨、向下跌开始'),COLOR00FFFF ;
DRAWTEXT_FIX(D27=1,0.55,0.15,0,'三只乌鸦站枝头,可能见顶回落'),COLORGREEN ;
DRAWTEXT_FIX(D28=1,0.55,0.20,0,'光脚阴线,下跌信号'),COLORFFFF00 ;
DRAWTEXT_FIX(D29=1,0.55,0.25,0,'光头阳线,多方积极上攻态势,后市看涨'),COLOR0000FF ;
DRAWTEXT_FIX(D30=1,0.55,0.10,0,'分离,注意看涨分离和看跌分离'),COLOR00FFFF ;
DRAWTEXT_FIX(D31=1,0.55,0.35,0,'长下影,有可能止跌回升,升势末期,须小心'),COLOR00FFFF ;
DRAWTEXT_FIX(D32=1,0.55,0.10,0,'长上影,表明行情上档压力沉重,升势受阻'),COLORFFFF00 ;
DRAWTEXT_FIX(D33=1,0.55,0.20,0,'十字星,重要的警告信号,原趋势停顿或反转'),COLOR00FFFF ;
DRAWTEXT_FIX(D34=1,0.55,0.05,0,'大阴烛,后市向淡,发生逆转'),COLORGREEN ;
DRAWTEXT_FIX(D35=1,0.55,0.30,0,'好友反攻,跌势已尽,要展开一段反弹行情'),COLORFF00FF ;
DRAWTEXT_FIX(D36=1,0.55,0.10,0,'倾盆大雨,见顶信号'),COLORFFFF00 ;
DRAWTEXT_FIX(D37=1,0.02,0.20,0,'今日成交量大于昨日,且有继续增大趋势'),COLORYELLOW ;
DRAWTEXT_FIX(D38=1,0.02,0.20,0,'今日成交量小于昨日,但有放大迹象'),COLORFFFF00 ;
DRAWTEXT_FIX(D39=1,0.02,0.20,0,'今日成交量大于昨日,但有缩小迹象');
DRAWTEXT_FIX(D40=1,0.02,0.20,0,'今日成交量小于昨日,且有缩小迹象');
DRAWTEXT_FIX(D41=1,0.55,0.40,0,'极端行情,在未来的几日内有85%的机会变更方向');
DRAWTEXT_FIX(D43=1,0.02,0.25,0,'下跌趋势'),COLORGREEN;
DRAWTEXT_FIX(D42=1,0.02,0.25,0,'上涨趋势'),COLORRED;
AY2:=EMA(CLOSE,12)-EMA(CLOSE,26);
AZ2:=EMA(AY2,9);
LT2:=(AY2-AZ2);
L211:=IF(LT2,LLV(L,21),DRAWNULL),COLOR217158,CIRCLEDOT;
ZGD:=HHV(H,80)*0.99;
ZGD2:=CONST(ZGD);
ZDD:=LLV(L211,80);
ZDD2:=CONST(ZDD);
YYA4:=MA(CLOSE,20);
YYA5:=(CLOSE > MA(CLOSE,5));
YYA6:=(MA(CLOSE,5) > MA(CLOSE,10));
YYA7:=(CLOSE > MA(CLOSE,10));
YYA8:=(MA(CLOSE,5) > MA(CLOSE,20));
YYA9:=(CLOSE > MA(CLOSE,20));
YYA10:=REF(YYA4,1);
YYA11:=(YYA4 > YYA10);
YYAVX:=(((((IF(YYA5,10,(0 - 10)) + IF(YYA6,10,(0 - 10))) + IF(YYA7,10,(0 - 10))) + IF(YYA8,10,(0 - 10))) + IF(YYA9,10,(0 - 10))) + IF(YYA11,10,(0 - 10)));
DSLX:=(CLOSE / INDEXC);
DSLX1:=MA(DSLX,5);
DSLX2:=MA(DSLX,10);
YYV1:=MA(VOL,5);
YYV2:=MA(VOL,10);
J1:=CONST(IF( YYAVX > 0,200,100));
J2:=CONST(IF( YYAVX > 0,00,100));
J3:=CONST(IF( YYAVX > 0,100,100));
ZGD3:=ZGD2;
ZDD3:=ZDD2;
ZGD4:=ZGD2;
情况1:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0)),NODRAW;
情况2:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况3:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 > YYV2)) AND (DSLX < DSLX1)),1,0));
情况4:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 <= YYV2)) AND (DSLX < DSLX1)),1,0));
情况5:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况6:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况7:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0));
情况8:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
情况9:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况10:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况11:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0)),NODRAW;
情况12:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
情况13:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况14:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况15:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0));
情况16:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
大盘1:=CONST(IF((CROSS(YYAVX,1) AND (YYV1 >= YYV2)),1,0));
大盘2:=CONST(IF((CROSS(YYAVX,1) AND (YYV1 < YYV2)),1,0));
大盘3:=CONST(IF((CROSS(1,YYAVX) AND (YYV1 >= YYV2)),1,0));
大盘4:=CONST(IF((CROSS(1,YYAVX) AND (YYV1 < YYV2)),1,0));
大盘5:=CONST(IF((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)),1,0));
大盘6:=CONST(IF((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)),1,0));
大盘7:=CONST(IF((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)),1,0));
大盘8:=CONST(IF((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)),1,0));
MFI:=(HIGH-LOW)*1000000/(VOL*比);
绿灯:=MFI>=REF(MFI,1)AND VOL*比>=REF(VOL,1);
MMM1:=CONST(绿灯);
衰退:=MFI<REF(MFI,1)AND VOL*比<REF(VOL,1);
MMM2:=CONST(衰退);
伪装:=MFI>=REF(MFI,1)AND VOL*比<REF(VOL,1);
MMM3:=CONST(伪装);
蛰伏:=MFI<REF(MFI,1)AND VOL*比>=REF(VOL,1);
MMM4:=CONST(蛰伏);
WJ:=(H+L+C)/3;
V1:=IF(H=L,1,H-MAX(O,C));
V2:=IF(H=L,1,MAX(C,O)-WJ);
V3:=IF(H=L,1,MIN(O,C)-L);
V4:=IF(H=L,1,WJ-MIN(C,O));
V5:=VOL/IF(H=L,4,H-L);
V6:=(V1*V5);
V7:=(V2*V5);
V8:=(V3*V5);
V9:=(V4*V5);
买盘1:=DYNAINFO(23)*比;
卖盘1:=DYNAINFO(22)*比;
买盘2:=IF(ISLASTBAR AND C>300,(V9+V8)*TT,(V9+V8));
卖盘2:=IF(ISLASTBAR AND C>300,(V6+V7)*TT,(V6+V7));
买盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,买盘1,买盘2);
卖盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,卖盘1,卖盘2);
量大:=(卖盘+买盘)/REF(VOL,1)>2;
MMM5:=CONST(量大);
量缩:=REF(VOL,1)/(卖盘+买盘)>1.5;
MMM6:=CONST(量缩);
卖量大:=(卖盘-买盘)/买盘>0.4;
MMM7:=CONST(卖量大);
买量大:=(买盘-卖盘)/卖盘>0.4;
MMM8:=CONST(买量大);
TS1:=IF(情况1=1,0.06+0.06,0.06); TS2:=IF(情况2=1,TS1+0.06,TS1);
TS3:=IF(情况3=1,TS2+0.06,TS2); TS4:=IF(情况4=1,TS3+0.06,TS3);
TS5:=IF(情况5=1,TS4+0.06,TS4); TS6:=IF(情况6=1,TS5+0.06,TS5);
TS7:=IF(情况7=1,TS6+0.06,TS6); TS8:=IF(情况8=1,TS7+0.06,TS7);
TS9:=IF(情况9=1,TS8+0.06,TS8); TS10:=IF(情况10=1,TS9+0.06,TS9);
TS11:=IF(情况11=1,TS10+0.06,TS10); TS12:=IF(情况12=1,TS11+0.06,TS11);
TS13:=IF(情况13=1,TS12+0.06,TS12); TS14:=IF(情况14=1,TS13+0.06,TS13);
TS15:=IF(情况15=1,TS14+0.06,TS14); TS16:=IF(情况16=1,TS15+0.06,TS15);
TS17:=IF(大盘1=1,TS16+0.06,TS16); TS18:=IF(大盘2=1,TS17+0.06,TS17);
TS19:=IF(大盘3=1,TS18+0.06,TS18); TS20:=IF(大盘4=1,TS19+0.06,TS19);
TS21:=IF(大盘5=1,TS20+0.06,TS20); TS22:=IF(大盘6=1,TS21+0.06,TS21);
TS23:=IF(大盘7=1,TS22+0.06,TS22); TS24:=IF(大盘8=1,TS23+0.06,TS23);
{TS25:=IF(MMM1=1,TS24+0.06,TS24);
TS26:=IF(MMM2=1,TS25+0.06,TS25);
TS27:=IF(MMM3=1,TS26+0.06,TS26);
TS28:=IF(MMM4=1,TS27+0.06,TS27);
TS29:=IF(MMM5=1,TS28+0.03,TS28);
TS30:=IF(MMM6=1,TS29+0.03,TS29);
TS31:=IF(MMM7=1,TS30+0.03,TS30);
TS32:=IF(MMM8=1,TS31+0.03,TS31);}
DRAWTEXT_FIX(情况1=1 ,0.02,0.10,0,'量能理想,明显走强,中线参与,仓位控制在70%左右'),COLORFF00FF;
DRAWTEXT_FIX(情况2=1 ,0.02,0.10,0,'走势趋强,量能不足,短线进场,仓位控制在50%左右'),COLORFF00FF;
DRAWTEXT_FIX(情况3=1 ,0.02,0.10,0,'量价良好,并无明显走强,短线可进场,仓位50%左右'),COLORFF00FF;
DRAWTEXT_FIX(情况4=1 ,0.02,0.10,0,'形态尚可,量能不足,未全走强,短入,仓位30%左右'),COLORFF00FF;
DRAWTEXT_FIX(情况5=1 ,0.02,0.10,0,'形态已变坏,走势尚可,重仓者减大半,清仓者%观望'),COLOR00FFFF;
DRAWTEXT_FIX(情况6=1 ,0.02,0.10,0,'随大盘下跌,明显缩量,考虑大盘风险,减持或清仓'),COLOR00FFFF;
DRAWTEXT_FIX(情况7=1 ,0.02,0.10,0,'该股放量下跌,走势明显偏弱,不抢反弹,离场观望'),COLORFFFFFF;
DRAWTEXT_FIX(情况8=1 ,0.02,0.10,0,'该股缩量下跌,走势偏弱无力,人气散失,离场观望'),COLORFFFF00;
DRAWTEXT_FIX(情况9=1 ,0.02,0.10,0,'该股形态良好,强势明显,量能充足,可以继续持有'),COLOR00FFFF;
DRAWTEXT_FIX(情况10=1,0.02,0.10,0,'上行趋势不变,强势依然,量能开始转弱,注意风险'),COLOR00FFFF;
DRAWTEXT_FIX(情况11=1,0.02,0.10,0,'该股仍然具备上涨潜力,但股性偏弱,可以考虑减仓'),COLORFFFFFF;
DRAWTEXT_FIX(情况12=1,0.02,0.10,0,'该股走势趋弱,量能明显不足,减大部分筹码或空仓'),COLORFFFF00;
DRAWTEXT_FIX(情况13=1,0.02,0.10,0,'该股形态不佳,注意成交量变化,但目前不适合参与'),COLORFFFF00;
DRAWTEXT_FIX(情况14=1,0.02,0.10,0,'该股趋势不明,股价偏弱,注意量能变化,暂不参与'),COLORFFFF00;
DRAWTEXT_FIX(情况15=1,0.02,0.10,0,'有走强迹象,但量能不足,趋势不明朗,不适合操作'),COLORFFFF00;
DRAWTEXT_FIX(情况16=1,0.02,0.10,0,'该股走势太弱,主动性买盘弱,没有太大的参与价值'),COLORFFFFFF;
DRAWTEXT_FIX(大盘1,0.02,0.15,0,'总势量能理想,70%仓位, 若最佳买点,否则谨慎介入'),COLOR00FF00;
DRAWTEXT_FIX(大盘2,0.02,0.15,0,'总势趋强,量不足,若前轮下跌,短进50%,量大加仓'),COLORFF00FF;
DRAWTEXT_FIX(大盘3,0.02,0.15,0,'总势形态走坏,重仓者可减去大部分仓位或放空筹码'),COLORAAAAAA;
DRAWTEXT_FIX(大盘4,0.02,0.15,0,'总势缩量调整,注意大盘系统风险,短线可清仓观望'),COLORFFFFFF;
DRAWTEXT_FIX(大盘5,0.02,0.15,0,'总势走势良好,量能理想,可继续持有或加仓强势股'),COLOR00FFFF;
DRAWTEXT_FIX(大盘6,0.02,0.15,0,'总势形态良好,但量能稍显不足,随时准备减仓调仓'),COLOR00FF00;
DRAWTEXT_FIX(大盘7,0.02,0.15,0,'总势趋势不明,注意成交量变化,目前暂不适宜进场'),COLORFFFFFF;
DRAWTEXT_FIX(大盘8,0.02,0.15,0,'总势趋势向下,量能萎缩,短线可杀跌,不适合进场'),COLORFFFFFF;
{DRAWTEXT_FIX(MMM1,0.02,0.10,0,'[绿灯]实计交易量增加。MFI促进指数增加'),COLORFFFFFF;
DRAWTEXT_FIX(MMM2,0.02,0.10,0,'[衰退]实计交易量减少。MFI促进指数减少'),COLORGREEN;
DRAWTEXT_FIX(MMM3,0.02,0.10,0,'[伪装]实计交易量减少。MFI促进指数增加'),COLORGREEN;
DRAWTEXT_FIX(MMM4,0.02,0.10,0,'[蛰伏]实计交易量增加。MFI促进指数减少'),COLORYELLOW;
DRAWTEXT_FIX(MMM5,0.02,0.15,0,'★今天比昨天的成交量放大一倍以上'),COLORGREEN;
DRAWTEXT_FIX(MMM6,0.02,0.15,0,'★今天比昨天的成交量缩量一半以上'),COLORYELLOW;
DRAWTEXT_FIX(MMM7,0.02,0.20,0,'☆该股今天卖出量大于买入量40%以上'),COLORGREEN;
DRAWTEXT_FIX(MMM8,0.02,0.20,0,'☆该股今天买入量大于卖出量40%以上'),COLORYELLOW;}
Z1:=STRCAT(DYBLOCK,' ');
Z2:=STRCAT(Z1,HYBLOCK);
Z3:=STRCAT(Z2,' ');
Z4:=STRCAT(Z3,GNBLOCK);
Z5:=STRCAT(Z4,' ');
Z6:=STRCAT(Z5,FGBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.02,0,0,STRCAT(Z6,ZHBLOCK)),COLORCYAN;
动态市盈:C/FINANCE(33),COLOR16CDEC,NODRAW;
市净率:CLOSE/FINANCE(34),COLORBBFF3F,NODRAW;
股东人数:FINANCE(8),NODRAW;
人均持股:FINANCE(7)/FINANCE(8),NODRAW;
每股公积金:FINANCE(18),NODRAW;
每股现金流量:FINANCE(25)/FINANCE(1),COLORGREEN,NODRAW;
未分配利润:FINANCE(31)/FINANCE(1),NODRAW;
{DRAWTEXT(C-O>=0 AND O/L>1.05 AND L<=LLV(L,30),L,'★<--极品绝底'), LINETHICK1;}
DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1)>C AND REF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1)<"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA")>0,L-0.02,'★M'),COLOR00FFFF;{MACD底背离}
DRAWTEXT(REF(C,BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1))+1)>C AND REF("KDJ.K",BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1))+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D"),L-0.12,'◎K'),COLORFF00FF;{KDJ底背离}
DRAWTEXT(REF(C,BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1))+1)>C AND REF("RSI.RSI1",BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1))+1)<"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2")>0,L-0.22,'◆R'),COLOR0000FF;{RSI底背离};
DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1))+1)<C AND REF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1))+1)>"MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF")>0,H+0.24,'★M'),COLOR00FF00;{MACD顶背离};
DRAWTEXT(REF(C,BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1))+1)<C AND REF("KDJ.K",BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1))+1)>"KDJ.K" AND CROSS("KDJ.D","KDJ.K")>0,H+0.14,'◎K'),COLORFFFFCC;{KDJ顶背离}
DRAWTEXT(REF(C,BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1))+1)<C AND REF("RSI.RSI1",BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1))+1)>"RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1")>0,H+0.04,'◆R'),COLORFF9900;{RSI顶背离};
{MTM1:=C-REF(C,1);
DX1:=100*EMA(EMA(MTM1,6),6)/EMA(EMA(ABS(MTM1),6),6);
AA:=IF(LLV(DX1,2)=LLV(DX1,7) AND COUNT(DX1<0,2)>0 AND CROSS(DX1,MA(DX1,2)),1,0);
DRAWICON(FILTER(AA=1,5),L*0.97,23);}
FS:=MA(CLOSE,13)+MA(CLOSE,13)-REF(MA(CLOSE,13),1);
CG:=IF(MA(CLOSE,13)<FS,FS,MA(CLOSE,13));
A:=CG-(EMA(C,3)-CG);
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
卖1:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0);
DRAWICON(FILTER(卖1=1,1),H*1.015,2);
买1:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
DRAWICON(FILTER(买1=1,5),L*0.982,1);
今总成交(亿):=AMOUNT/100000000,COLORFF00FF,NODRAW;
成交:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
今总流入(亿):=IF(CLOSE>OPEN,成交*(HIGH-LOW),IF(CLOSE<OPEN,成交*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/100000000,COLORRED,NODRAW;
今总流出(亿):=IF(CLOSE>OPEN,0-成交*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-成交*(HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00,NODRAW;
今净流入(亿):=今总流入(亿)+今总流出(亿),COLORYELLOW,NODRAW;
今总成交:=STRCAT(STRCAT('今总成交: ',CON2STR(今总成交(亿),2)),'亿');
今总流入:=STRCAT(STRCAT('今总流入: ',CON2STR(今总流入(亿),2)),'亿');
今总流出:=STRCAT(STRCAT('今总流出: ',CON2STR(今总流出(亿),2)),'亿');
今净流入:=STRCAT(STRCAT('今净流入: ',CON2STR(今净流入(亿),2)),'亿');
今资金流:=STRCAT('今资金流: ',STRCAT(STRCAT(STRCAT(STRCAT(今总成交,今总流入),今总流出), 今净流入),0));
DRAWTEXT_FIX(ISLASTBAR,0.02,0.05,0,今资金流),COLORYELLOW;
|