提示有敏感字符

TT:=240/FROMOPEN;
比:=TT;
J12:=(HIGH – ((HIGH – LOW) / 3));
J23:=(LOW + ((HIGH – LOW) / 3));
AAA:=CONST(HHV(H,90));
形态1{早晨之星}:=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));
形态2{黄昏之星}:=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));
形态3{长十字}:=CONST(IF((CLOSE=OPEN AND HIGH/LOW >1.03),1,0));
形态4{垂死十字}:=CONST(IF((CLOSE=OPEN AND CLOSE=LOW AND CLOSE!=HIGH),1,0));
形态5{早晨十字星}:=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));
形态6{黄昏十字星}:=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));
形态7{射击之星}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >
3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE > MA(CLOSE,5)),1,0));
形态8{倒转锤头}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >
3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE < MA(CLOSE,5)),1,0));
形态9{锤头}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >
3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE < MA(CLOSE,5)),1,0));
形态10{吊颈}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >
3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5)),1,0));
形态11{穿头破脚}:=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));
形态12{乌云盖顶}:=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));
形态13{曙光初现}:=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));
形态14{身怀六甲}:=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));
形态15{十字胎}:=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));
形态16{平顶}:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGH<0.001),1,0));
形态17{平底}:=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));
形态18{大阳烛}:=CONST(IF((CLOSE/OPEN>1.05 AND HIGH/LOW < CLOSE/OPEN+0.018),1,0));
形态19{三个白武士}:=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));
形态20{双飞乌鸦}:=CONST(IF((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN
AND CLOSE/OPEN<0.98),1,0));
形态21{孕育线}:=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));
形态22{多方炮}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1)
AND CLOSE>OPEN),1,0));
形态23{出水芙蓉}:=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));
形态24{上升三部曲}:=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));
形态25{下跌三部曲}:=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));
形态26{跳空缺口}:=CONST(IF(HIGH<REF(LOW,1) OR LOW>REF(HIGH,1),1,0));
形态27{三只乌鸦}:=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));
形态28{光脚阴线}:=CONST(IF((LOW=CLOSE AND HIGH!=LOW),1,0));
形态29{光头阳线}:=CONST(IF((HIGH=CLOSE AND HIGH!=LOW),1,0));
形态30{分离}:=CONST(IF((OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1)
-REF(OPEN,1))<0),1,0));
形态31{长下影}:=CONST(IF(((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667),1,0));
形态32{长上影}:=CONST(IF(((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667),1,0));
形态33{十字星}:=CONST(IF((CLOSE=OPEN AND HIGH!=LOW),1,0));
形态34{大阴烛}:=CONST(IF((OPEN/CLOSE > 1.05 AND HIGH/LOW < OPEN/CLOSE+0.018),1,0));
形态35{好友反攻}:=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));
形态36{倾盆大雨}:=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));
形态37{M9}:=CONST(V*比>REF(V,1) AND MA(V,5)>REF(MA(V,5),1));
形态38{M10}:=CONST(V*比<REF(V,1) AND MA(V,5)>REF(MA(V,5),1));
形态39{M11}:=CONST(V*比>REF(V,1)AND MA(V,5)<REF(MA(V,5),1));
形态40{M12}:=CONST(V*比<REF(V,1)AND MA(V,5)<REF(MA(V,5),1));
形态41{M13}:=CONST((((IF((CLOSE = OPEN),1,0) + IF((CLOSE >= J12),1,0)) + IF((CLOSE <= J23),1,0)) > 1));
形态42{M14}:=CONST((((AMOUNT / VOL) / 100) > REF(HIGH,1)));
形态43{M15}:=CONST((((AMOUNT / VOL) / 100) < REF(LOW,1)));
形态S1:=IF(形态1=1,0+0.03,0);
形态S2:=IF(形态2=1,形态S1+0.03,形态S1);
形态S3:=IF(形态3=1,形态S2+0.03,形态S2);
形态S4:=IF(形态4=1,形态S3+0.03,形态S3);
形态S5:=IF(形态5=1,形态S4+0.03,形态S4);
形态S6:=IF(形态6=1,形态S5+0.03,形态S5);
形态S7:=IF(形态7=1,形态S6+0.03,形态S6);
形态S8:=IF(形态8=1,形态S7+0.03,形态S7);
形态S9:=IF(形态9=1,形态S8+0.03,形态S8);
形态S10:=IF(形态10=1,形态S9+0.03,形态S9);
形态S11:=IF(形态11=1,形态S10+0.03,形态S10);
形态S12:=IF(形态12=1,形态S11+0.03,形态S11);
形态S13:=IF(形态13=1,形态S12+0.03,形态S12);
形态S14:=IF(形态14=1,形态S13+0.03,形态S13);
形态S15:=IF(形态15=1,形态S14+0.03,形态S14);
形态S16:=IF(形态16=1,形态S15+0.03,形态S15);
形态S17:=IF(形态17=1,形态S16+0.03,形态S16);
形态S18:=IF(形态18=1,形态S17+0.03,形态S17);
形态S19:=IF(形态19=1,形态S18+0.03,形态S18);
形态S20:=IF(形态20=1,形态S19+0.03,形态S19);
形态S21:=IF(形态21=1,形态S20+0.03,形态S20);
形态S22:=IF(形态22=1,形态S21+0.03,形态S21);
形态S23:=IF(形态23=1,形态S22+0.03,形态S22);
形态S24:=IF(形态24=1,形态S23+0.03,形态S23);
形态S25:=IF(形态25=1,形态S24+0.03,形态S24);
形态S26:=IF(形态26=1,形态S25+0.03,形态S25);
形态S27:=IF(形态27=1,形态S26+0.03,形态S26);
形态S28:=IF(形态28=1,形态S27+0.03,形态S27);
形态S29:=IF(形态29=1,形态S28+0.03,形态S28);
形态S30:=IF(形态30=1,形态S29+0.03,形态S29);
形态S31:=IF(形态31=1,形态S30+0.03,形态S30);
形态S32:=IF(形态32=1,形态S31+0.03,形态S31);
形态S33:=IF(形态33=1,形态S32+0.03,形态S32);
形态S34:=IF(形态34=1,形态S33+0.03,形态S33);
形态S35:=IF(形态35=1,形态S34+0.03,形态S34);
形态S36:=IF(形态36=1,形态S35+0.03,形态S35);
形态S37:=IF(形态37=1,形态S36+0.03,形态S36);
形态S38:=IF(形态38=1,形态S37+0.03,形态S37);
形态S39:=IF(形态39=1,形态S38+0.03,形态S38);
形态S40:=IF(形态40=1,形态S39+0.03,形态S39);
形态S41:=IF(形态41=1,形态S40+0.03,形态S40);
形态S42:=IF(形态42=1,形态S41+0.03,形态S41);
形态S43:=IF(形态43=1,形态S42+0.03,形态S42);
DRAWTEXT(形态1=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S1),’早晨之星,见底回升‖’),COLORGREEN ;
DRAWTEXT(形态2=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S2),’黄昏之星,见顶回落‖’),COLORGREEN ;
DRAWTEXT(形态3=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S3),’长十字,重要的警告信号,原趋势停顿或反转‖’),COLORGREEN ;
DRAWTEXT(形态4=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S4),’垂死十字,下跌信号‖’),COLORGREEN ;
DRAWTEXT(形态5=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S5),’早晨十字星,上涨信号,见底回升‖’),COLORGREEN ;
DRAWTEXT(形态6=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S6),’黄昏十字星,趋势停顿或反转,下跌或,见顶回落‖’),COLORGREEN ;
DRAWTEXT(形态7=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S7),’射击之星,市场顶部就在眼前,可能见顶回落,可靠性低‖’),COLORGREEN ;
DRAWTEXT(形态8=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S8),’倒转锤头构成一个看涨信号,可能见底回升‖’),COLORGREEN ;
DRAWTEXT(形态9=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S9),’锤头,可能见底回升,如有量配合,信号强烈‖’),COLORGREEN ;
DRAWTEXT(形态10=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S10),’吊颈,上升行情中见顶回落,顶部出现,见顶信号‖’),COLORGREEN ;
DRAWTEXT(形态11=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S11),’穿头破脚,顶部出现,见顶回落信号‖’),COLORGREEN ;
DRAWTEXT(形态12=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S12),’乌云盖顶,见顶回落信号‖’),COLORGREEN ;
DRAWTEXT(形态13=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S13),’曙光初现,将演化为V型反转或横盘。后市见底回升‖’),COLORGREEN ;
DRAWTEXT(形态14=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S14),’身怀六甲,底部,是见底回升,顶部,是见顶回落信号‖’),COLORGREEN ;
DRAWTEXT(形态15=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S15),’十字胎‖’),COLORYELLOW ;
DRAWTEXT(形态16=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S16),’平顶,行情见顶,股价将反转。但下跌力度较小‖’),COLORYELLOW ;
DRAWTEXT(形态17=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S17),’平底,行情探低见底,股价行将反转上升,但力度较小‖’),COLORYELLOW ;
DRAWTEXT(形态18=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S18),’大阳烛,上升中,剧烈地向上攀升。下行中,剧烈地向上反弹

‖’),COLORYELLOW ;
DRAWTEXT(形态19=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S19),’三个白武士,每日收盘价上移,表示可能见底回升‖’),COLORYELLOW ;
DRAWTEXT(形态20=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S20),’双飞乌鸦,行情开始疲软将见顶回落‖’),COLORYELLOW ;
DRAWTEXT(形态21=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S21),’孕育线,注意股价位置‖’),COLORYELLOW ;
DRAWTEXT(形态22=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S22),’多方炮,底部可能上涨,中间上涨中继,顶部见顶信号‖’),COLORYELLOW ;
DRAWTEXT(形态23=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S23),’出水芙蓉,阳线穿过20、40、60日均线,上攻势头初现‖’),COLORYELLOW ;
DRAWTEXT(形态24=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S24),’上升三部曲,上涨信号‖’),COLORYELLOW ;
DRAWTEXT(形态25=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S25),’下跌三部曲,下跌信号‖’),COLORYELLOW ;
DRAWTEXT(形态26=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S26),’跳空缺口,突破盘整,向上涨、向下跌开始‖’),COLORYELLOW ;
DRAWTEXT(形态27=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S27),’三只乌鸦站枝头,可能见顶回落‖’),COLORYELLOW ;
DRAWTEXT(形态28=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S28),’光脚阴线,下跌信号‖’),COLORYELLOW ;
DRAWTEXT(形态29=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S29),’光头阳线,多方积极上攻态势,后市看涨‖’),COLORYELLOW ;
DRAWTEXT(形态30=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S30),’分离,注意看涨分离和看跌分离‖’),COLORYELLOW ;
DRAWTEXT(形态31=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S31),’长下影,有可能止跌回升,升势末期,须小心‖’),COLORYELLOW ;
DRAWTEXT(形态32=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S32),’长上影,表明行情上档压力沉重,升势受阻‖’),COLORYELLOW ;
DRAWTEXT(形态33=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S33),’十字星,重要的警告信号,原趋势停顿或反转‖’),COLORYELLOW ;
DRAWTEXT(形态34=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S34),’大阴烛,后市向淡,发生逆转‖’),COLORYELLOW ;
DRAWTEXT(形态35=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S35),’好友反攻,跌势已尽,要展开一段反弹行情‖’),COLORYELLOW ;
DRAWTEXT(形态36=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S36),’倾盆大雨,见顶信号‖’),COLORYELLOW ;
DRAWTEXT(形态37=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S37),’今日成交量大于昨日,且有继续增大趋势’),COLORYELLOW ;
DRAWTEXT(形态38=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S38),’今日成交量小于昨日,但有放大迹象’),COLORYELLOW ;
DRAWTEXT(形态39=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S39),’今日成交量大于昨日, 但有缩小迹象’),COLORRED ;
DRAWTEXT(形态40=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S40),’今日成交量小于昨日,且有缩小迹象’),COLORRED ;
DRAWTEXT(形态41=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S41),’极端行情,在未来的几日内有85%的机会变更方向’),COLORWHITE ;
DRAWTEXT(形态42=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S42),’上涨趋势’),COLORRED ;
DRAWTEXT(形态43=1 AND CURRBARSCOUNT=58,AAA-(AAA*形态S43),’下跌趋势’),COLORGREEN ;

 

备注:你把源码中所有的CURRBARSCOUNT=58,改成CURRBARSCOUNT=130

k线上标注1、2、3只能在日k线的附近某一位置标注才能随k线移动而位置不变。如果标注在顶端,当后来股价不在原股价附近波动时,很可能就被隐去看不到了。

 

 

全部在副图里面呈现了


声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。