精 彩 内 容 呈 现
DRAWGBK(C>0,RGB(0,0,110),RGB(0,25,0),0,' ',0);
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORYELLOW;
天:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),DOTLINE,COLORGREEN,LINETHICK1;
地:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK1,DOTLINE,COLORYELLOW;
DRAWBAND(天,RGB(34,0,68),地,RGB(55,0,0));
AA05:MA(C,5),LINETHICK1,COLORYELLOW;
五日乖离率:=(C-AA05)/AA05*100;
BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;
速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);
加速度5:=EMA((速度5-REF(速度5,1)),3);
IF(BB05>30 AND AA05>REF(AA05,1),AA05,DRAWNULL),LINETHICK1,COLORRED;
IF(BB05< 0 AND AA05< REF(AA05,1),AA05,DRAWNULL),LINETHICK1,COLORGREEN;
DRAWKLINE(H,O,L,C);
TT:=240/FROMOPEN;
比:=TT;
J12:=(HIGH - ((HIGH - LOW) / 3));
J23:=(LOW + ((HIGH - LOW) / 3));
章鱼哥:=CONST(HHV(H,90));
BBB:=CONST(LLV(L,100));
MA3:=MA(CLOSE,3),COLORFFFFFF;
MA13:=MA(CLOSE,13),COLORFF00FF,POINTDOT,LINETHICK4;
MA55:=MA(CLOSE,55);
MA89:=MA(CLOSE,89);
MA250:=MA(CLOSE,250);
DRAWKLINE(H,O,L,C);
T1:=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));
T2:=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));
T3:=CONST(IF((CLOSE=OPEN AND HIGH/LOW >1.03),1,0));
T4:=CONST(IF((CLOSE=OPEN AND CLOSE=LOW AND CLOSE!=HIGH),1,0));
T5:=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));
T6:=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));
T7:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW > 3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE > MA(CLOSE,5)),1,0));
T8:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW > 3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE < MA(CLOSE,5)),1,0));
T9:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW > 3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE < MA(CLOSE,5)),1,0));
T10:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW > 3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5)),1,0));
T11:=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));
T12:=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));
T13:=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));
T14:=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));
T15:=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));
T16:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGH< 0.001),1,0));
T17:=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));
T18:=CONST(IF((CLOSE/OPEN>1.05 AND HIGH/LOW < CLOSE/OPEN+0.018),1,0));
T19:=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));
T20:=CONST(IF((REF(CLOSE,1)< REF(OPEN,1) AND CLOSE< OPEN AND CLOSE/OPEN< 0.98),1,0));
T21:=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));
T22:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)< REF(OPEN,1) AND CLOSE>OPEN),1,0));
T23:=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));
T24:=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));
T25:=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));
T26:=CONST(IF(HIGH< REF(LOW,1) OR LOW>REF(HIGH,1),1,0));
T27:=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));
T28:=CONST(IF((LOW=CLOSE AND HIGH!=LOW),1,0));
T29:=CONST(IF((HIGH=CLOSE AND HIGH!=LOW),1,0));
T30:=CONST(IF((OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1) -REF(OPEN,1))< 0),1,0));
T31:=CONST(IF(((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667),1,0));
T32:=CONST(IF(((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667),1,0));
T33:=CONST(IF((CLOSE=OPEN AND HIGH!=LOW),1,0));
T34:=CONST(IF((OPEN/CLOSE > 1.05 AND HIGH/LOW < OPEN/CLOSE+0.018),1,0));
T35:=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));
T36:=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));
T37:=CONST(V*比>REF(V,1) AND MA(V,5)>REF(MA(V,5),1));
T38:=CONST(V*比< REF(V,1) AND MA(V,5)>REF(MA(V,5),1));
T39:=CONST(V*比>REF(V,1)AND MA(V,5)< REF(MA(V,5),1));
T40:=CONST(V*比< REF(V,1)AND MA(V,5)< REF(MA(V,5),1));
T41:=CONST((((IF((CLOSE = OPEN),1,0) + IF((CLOSE >= J12),1,0)) + IF((CLOSE <= J23),1,0)) > 1));
T42:=CONST((((AMOUNT / VOL) / 100) > REF(HIGH,1)));
T43:=CONST((((AMOUNT / VOL) / 100) < REF(LOW,1)));
ZYG1:=IF(T1=1,0+0.03,0);
ZYG2:=IF(T2=1,ZYG1+0.03,ZYG1);
ZYG3:=IF(T3=1,ZYG2+0.03,ZYG2);
ZYG4:=IF(T4=1,ZYG3+0.03,ZYG3);
ZYG5:=IF(T5=1,ZYG4+0.03,ZYG4);
ZYG6:=IF(T6=1,ZYG5+0.03,ZYG5);
ZYG7:=IF(T7=1,ZYG6+0.03,ZYG6);
ZYG8:=IF(T8=1,ZYG7+0.03,ZYG7);
ZYG9:=IF(T9=1,ZYG8+0.03,ZYG8);
ZYG10:=IF(T10=1,ZYG9+0.03,ZYG9);
ZYG11:=IF(T11=1,ZYG10+0.03,ZYG10);
ZYG12:=IF(T12=1,ZYG11+0.03,ZYG11);
ZYG13:=IF(T13=1,ZYG12+0.03,ZYG12);
ZYG14:=IF(T14=1,ZYG13+0.03,ZYG13);
ZYG15:=IF(T15=1,ZYG14+0.03,ZYG14);
ZYG16:=IF(T16=1,ZYG15+0.03,ZYG15);
ZYG17:=IF(T17=1,ZYG16+0.03,ZYG16);
ZYG18:=IF(T18=1,ZYG17+0.03,ZYG17);
ZYG19:=IF(T19=1,ZYG18+0.03,ZYG18);
ZYG20:=IF(T20=1,ZYG19+0.03,ZYG19);
ZYG21:=IF(T21=1,ZYG20+0.03,ZYG20);
ZYG22:=IF(T22=1,ZYG21+0.03,ZYG21);
ZYG23:=IF(T23=1,ZYG22+0.03,ZYG22);
ZYG24:=IF(T24=1,ZYG23+0.03,ZYG23);
ZYG25:=IF(T25=1,ZYG24+0.03,ZYG24);
ZYG26:=IF(T26=1,ZYG25+0.03,ZYG25);
ZYG27:=IF(T27=1,ZYG26+0.03,ZYG26);
ZYG28:=IF(T28=1,ZYG27+0.03,ZYG27);
ZYG29:=IF(T29=1,ZYG28+0.03,ZYG28);
ZYG30:=IF(T30=1,ZYG29+0.03,ZYG29);
ZYG31:=IF(T31=1,ZYG30+0.03,ZYG30);
ZYG32:=IF(T32=1,ZYG31+0.03,ZYG31);
ZYG33:=IF(T33=1,ZYG32+0.03,ZYG32);
ZYG34:=IF(T34=1,ZYG33+0.03,ZYG33);
ZYG35:=IF(T35=1,ZYG34+0.03,ZYG34);
ZYG36:=IF(T36=1,ZYG35+0.03,ZYG35);
ZYG37:=IF(T37=1,ZYG36+0.03,ZYG36);
ZYG38:=IF(T38=1,ZYG37+0.03,ZYG37);
ZYG39:=IF(T39=1,ZYG38+0.03,ZYG38);
ZYG40:=IF(T40=1,ZYG39+0.03,ZYG39);
ZYG41:=IF(T41=1,ZYG40+0.03,ZYG40);
ZYG42:=IF(T42=1,ZYG41+0.03,ZYG41);
ZYG43:=IF(T43=1,ZYG42+0.03,ZYG42);
DRAWTEXT(T1=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG1),'早晨之星,见底回升‖'),COLORFF00FF ;
DRAWTEXT(T2=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG2),'黄昏之星,见顶回落‖'),COLORFFFF00 ;
DRAWTEXT(T3=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG3),'长十字,重要的警告信号,原趋势停顿或反转‖'),COLOR00FFFF ;
DRAWTEXT(T4=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG4),'垂死十字,下跌信号‖'),COLORFFFF00 ;
DRAWTEXT(T5=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG5),'早晨十字星,上涨信号,见底回升‖'),COLORFF00FF ;
DRAWTEXT(T6=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG6),'黄昏十字星,趋势停顿或反转,下跌或,见顶回落‖'),COLORFFFF00 ;
DRAWTEXT(T7=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG7),'射击之星,市场顶部就在眼前,可能见顶回落,可靠性低‖'),COLORFFFF00 ;
DRAWTEXT(T8=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG8),'倒转锤头构成一个看涨信号,可能见底回升‖'),COLORFF00FF ;
DRAWTEXT(T9=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG9),'锤头,可能见底回升,如有量配合,信号强烈‖'),COLOR0000FF ;
DRAWTEXT(T10=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG10),'吊颈,上升行情中见顶回落,顶部出现,见顶信号‖'),COLORFFFF00 ;
DRAWTEXT(T11=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG11),'穿头破脚,顶部出现,见顶回落信号‖'),COLORFFFF00 ;
DRAWTEXT(T12=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG12),'乌云盖顶,见顶回落信号‖'),COLORFFFF00 ;
DRAWTEXT(T13=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG13),'曙光初现,将演化为V型反转或横盘。后市见底回升‖'),COLORFF00FF ;
DRAWTEXT(T14=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG14),'身怀六甲,底部,是见底回升,顶部,是见顶回落信号‖'),COLOR00FFFF ;
DRAWTEXT(T15=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG15),'十字胎‖'),COLOR00FFFF ;
DRAWTEXT(T16=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG16),'平顶,行情见顶,股价将反转。但下跌力度较小‖'),COLORFFFFFF ;
DRAWTEXT(T17=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG17),'平底,行情探低见底,股价行将反转上升,但力度较小‖'),COLORFFFFFF ;
DRAWTEXT(T18=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG18),'大阳烛,上升中,剧烈地向上攀升。下行中,剧烈地向上反弹‖'),COLOR0000FF ;
DRAWTEXT(T19=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG19),'三个白武士,每日收盘价上移,表示可能见底回升‖'),COLORFFFFFF ;
DRAWTEXT(T20=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG20),'双飞乌鸦,行情开始疲软将见顶回落‖'),COLORFF0000 ;
DRAWTEXT(T21=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG21),'孕育线,注意股价位置‖'),COLOR00FFFF ;
DRAWTEXT_FIX(C>O,0,0.2,0,'更多实用指标指标,请关注微信公众号:通达信指标指标'),COLOR333333;
DRAWTEXT(T22=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG22),'多方炮,底部可能上涨,中间上涨中继,顶部见顶信号‖'),COLOR00FFFF ;
DRAWTEXT(T23=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG23),'出水芙蓉,阳线穿过20、40、60日均线,上攻势头初现‖'),COLORFF00FF ;
DRAWTEXT(T24=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG24),'上升三部曲,上涨信号‖'),COLORFF00FF ;
DRAWTEXT(T25=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG25),'下跌三部曲,下跌信号‖'),COLORFFFF00 ;
DRAWTEXT(T26=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG26),'跳空缺口,突破盘整,向上涨、向下跌开始‖'),COLOR00FFFF ;
DRAWTEXT(T27=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG27),'三只乌鸦站枝头,可能见顶回落‖'),COLORFFFF00 ;
DRAWTEXT(T28=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG28),'光脚阴线,下跌信号‖'),COLORFFFF00 ;
DRAWTEXT(T29=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG29),'光头阳线,多方积极上攻态势,后市看涨‖'),COLOR0000FF ;
DRAWTEXT(T30=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG30),'分离,注意看涨分离和看跌分离‖'),COLOR00FFFF ;
DRAWTEXT(T31=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG31),'长下影,有可能止跌回升,升势末期,须小心‖'),COLOR00FFFF ;
DRAWTEXT(T32=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG32),'长上影,表明行情上档压力沉重,升势受阻‖'),COLORFFFF00 ;
DRAWTEXT(T33=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG33),'十字星,重要的警告信号,原趋势停顿或反转‖'),COLOR00FFFF ;
DRAWTEXT(T34=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG34),'大阴烛,后市向淡,发生逆转‖'),COLORFF0000 ;
DRAWTEXT(T35=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG35),'好友反攻,跌势已尽,要展开一段反弹行情‖'),COLORFF00FF ;
DRAWTEXT(T36=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG36),'倾盆大雨,见顶信号‖'),COLORFFFF00 ;
DRAWTEXT(T37=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG37),'今日成交量大于昨日,且有继续增大趋势'),COLORYELLOW ;
DRAWTEXT(T38=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG38),'今日成交量小于昨日,但有放大迹象'),COLORFFFF00 ;
DRAWTEXT(T39=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG39),'今日成交量大于昨日, 但有缩小迹象'),COLORRED ;
DRAWTEXT(T40=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG40),'今日成交量小于昨日,且有缩小迹象'),COLORRED ;
DRAWTEXT(T41=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG41),'极端行情,在未来的几日内有85%的机会变更方向'),COLORWHITE ;
DRAWTEXT(T42=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG42),'上涨趋势'),COLORRED ;
DRAWTEXT(T43=1 AND CURRBARSCOUNT=58,章鱼哥-(章鱼哥*ZYG43),'下跌趋势'),COLORGREEN ;
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
A:=(3*C+L+O+H)/6;
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);
CB:=EMA(X,13);
卖:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0);
DRAWTEXT(FILTER(卖=1,1),HIGH*1.02,'卖'),COLORWHITE;
买1:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX< 0,2) AND CROSS(DX,MA(DX,2)),1,0);
DRAWTEXT(FILTER(买1=1,5),LOW-0.03,'买'),COLORRED;
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
BDGD:=HHV(J,2)=HHV(J,8) AND J>80;
小心:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0);
DRAWTEXT(小心 AND 卖!=1,HIGH*1.01,'减'),COLORLIBLUE;
加仓A:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
DRAWTEXT(FILTER((CROSS(加仓A,0) OR CROSS(CLOSE,CB)) AND 买1=1,3),LOW-0.03,'加'),COLOR0080FF;
MA18:=MA(C,18);
跟:=IF(MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18),1,0);
DRAWTEXT(MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18),LOW*0.99,'跟'),COLOR7F52AF;
买入价:=((C-REF(MA5,1))/5+MA5)*1.004;
买入条件:=CROSS(C,买入价) AND 买入价>REF(买入价,1);
白K线买进:IF(买入条件,L,H),COLORWHITE,POINTDOT;
STICKLINE(买入条件,H,L,0,1),COLORWHITE,LINETHICK2;
STICKLINE(买入条件,O,C,4,1),COLORWHITE,LINETHICK2;
增仓价:=((C-REF(MA10,1))/20+MA10)*1.004;
增仓条件:=CROSS(C,增仓价) AND 增仓价>REF(增仓价,1);
黄K线增仓:IF(增仓条件,L,H),COLORYELLOW,POINTDOT;
STICKLINE(增仓条件,H,L,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(增仓条件,O,C,4,1),COLORYELLOW,LINETHICK2;
P1:=5;
P2:=10;
P3:=20;
P4:=30;
P5:=60;
P6:=120;
P7:=240;
P8:=340;
N:=4;
WX:=MA(CLOSE,0);
M1:=MA(CLOSE,P1);
M2:=(MA(CLOSE,P2) * IF((N < 2),WX,1));
M3:=(MA(CLOSE,P3) * IF((N < 3),WX,1));
M4:=(MA(CLOSE,P4) * IF((N < 4),WX,1));
M5:=(MA(CLOSE,P5) * IF((N < 5),WX,1));
M6:=(MA(CLOSE,P6) * IF((N < 6),WX,1));
M7:=(MA(CLOSE,P7) * IF((N < 7),WX,1));
M8:=(MA(CLOSE,P8) * IF((N < 8),WX,1));
C1:=REF(CLOSE,1);
C2:=HHV(C1,2);
C3:=LLV(C1,1);
ET:=HHV(C1,2);
ET1:=REF(ET,1);
XB:=LLV(C1,1);
XB1:=REF(XB,1);
M:=BARSLAST(((CLOSE < XB) AND (C1 >= XB1)));
M11:=REF(M,1);
N9:=BARSLAST(((CLOSE > ET) AND (C1 <= ET1)));
N1:=REF(N9,1);
M21:=(BARSLAST((((M - N9) > 0) AND (M11 <= N1))) + 1);
N2:=(BARSLAST((((N9 - M) > 0) AND (N1 <= M11))) + 1);
ET2:=HHV(ET,M21);
XB2:=LLV(XB,N2);
H1:=IF(((M - N9) > 0),CLOSE,ET2);
H2:=IF((A = 1),CLOSE,C2);
H3:=IF(((M - N9) < 0),CLOSE,XB2);
H4:=IF((A = 1),CLOSE,XB2);
H5:=IF((((M - N9) > 0) OR (A = 1)),CLOSE,H3);
H6:=REF(H5,1);
H7:=REF(H5,2);
H8:=(H5 > H6);
H9:=(((H4 = REF(H4,1)) AND (REF(H4,1) < REF(H4,2))) AND (H5 > REF(H5,2)));
H10:=(((H2 = REF(H2,1)) AND (H4 = REF(H4,1))) AND (H5 = REF(H5,2)));
W:=((H8 OR H9) OR H10);
T09:=((H5 < H6) AND (H5 < REF(H5,2)));
T010:=((H4 = REF(H4,1)) AND (H5 < REF(H5,2)));
T011:=((H3 > REF(H3,1)) AND (H5 < REF(H5,1)));
T012:=((H5 = REF(H5,1)) AND (H3 = H4));
T013:=((H2 = REF(H2,1)) AND (H2 = H5));
TW:=((((T9 OR T10) OR T11) OR T12) OR T13);
PK:=((AMOUNT * (((OPEN + CLOSE) + HIGH) + LOW)) / 4);
PK1:=IF((VOL > 0),(PK / AMOUNT),((((OPEN + CLOSE) + HIGH) + LOW) / 4));
BBP:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
DRAWTEXT((ISLASTBAR AND (BBP >= 96.5)),(H5 * 1.022),'明见-短高-龙头-除外'),COLORRED;
DRAWTEXT((ISLASTBAR AND (BBP < 1)),((H5 + H4) / 1.96),'明见-短低-跌停-除外'),COLORGREEN;
DRAWTEXT(((ISLASTBAR AND W) AND (BBP < 96.5)),(H5 * 1.022),'明日看涨'),COLORYELLOW;
DRAWTEXT(((ISLASTBAR AND TW) AND (BBP > 1)),((H5 + H4) / 2),'明日看跌'),COLORGREEN;
DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.978,'底'),LINETHICK2,COLORYELLOW;
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,'顶'),LINETHICK2,COLORYELLOW;
X01:=IF(MA(C,5)>MA(C,10),20,0);
X02:=IF(MA(C,20)>MA(C,60),10,0);
X3:=IF(KDJ.J>KDJ.K,10,0);
X4:=IF(MACD.DIF>MACD.DEA,10,0);
X5:=IF(MACD.MACD>0,10,0);
X6:=IF(V>MA(V,60),10,0);
X7:=IF(WINNER(C)>0.5,10,0);
X8:=IF(C/REF(C,1)>1.03,10,0);
XX:=X01+X02+X3+X4+X5+X6+X7+X8;
DRAWTEXT_FIX(V>O,0.41,0,0,STRCAT('趋势评分: ',STRCAT(CON2STR(XX,0),' '))),COLORLIMAGENTA;
总额:=AMOUNT;
买0:=IF(O=C AND (C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L));
买%:=买0/AMOUNT*100;
流入:=AMOUNT*买%/10000000000;
流出:=AMOUNT/100000000-流入;
净流:=(流入-流出);
总额3:=SUM(AMOUNT,3);
流入3:=SUM(流入,3);
流出3:=SUM(流出,3);
净流3:=SUM(流入-流出,3);
总额5:=SUM(AMOUNT,5);
流入5:=SUM(流入,5);
流出5:=SUM(流出,5);
净流5:=SUM(流入-流出,5);
DRAWTEXT_FIX(1,0.58,0,0,'净流(亿):'),COLOR8080FF,COLORWHITE;
DRAWNUMBER_FIX(1,0.7,0,0,CONST((净流))),COLORWHITE;
DRAWNUMBER_FIX(1,0.83,0,0,CONST((净流3))),COLORWHITE;
DRAWNUMBER_FIX(1,1,0,0,CONST((净流5))),COLORWHITE;
竞价额:=DYNAINFO(15)/10000;
DRAWTEXT_FIX(C>0,0,0.15,0,VARCAT(VARCAT('竞价: ',VAR2STR(竞价额,0)),' 万')), COLORMAGENTA;
章鱼K0:=SUMBARS(V,CAPITAL*1);
章鱼K1:=SUM(COST(10),章鱼K0)/章鱼K0;
章鱼K2:=SUM(COST(20),章鱼K0)/章鱼K0;
章鱼K3:=SUM(COST(30),章鱼K0)/章鱼K0;
章鱼K4:=SUM(COST(40),章鱼K0)/章鱼K0;
章鱼K5:=SUM(COST(50),章鱼K0)/章鱼K0;
庄家成本2:=(5*章鱼K1+4*章鱼K2+3*章鱼K3+2*章鱼K4+章鱼K5)/15,COLOR0080FF,DOTLINE;
庄家成本1:REFDATE(庄家成本2,DATE),COLORLIGRAY,DOTLINE;
DRAWTEXT(CURRBARSCOUNT=50,庄家成本1,STRCAT('庄本:',CON2STR(庄家成本1,2))),COLORLIGRAY;
P:=21;
章鱼1:=IF(L=LLV(L,P),L,DRAWNULL);
章鱼2:=CONST(BARSLAST(章鱼1!=DRAWNULL));
章鱼3:=CONST(IF(章鱼2=0,H,REF(H,章鱼2)));
章鱼4:=CONST(REF(BARSLAST(H>章鱼3),章鱼2+1)+章鱼2+1);
章鱼5:=CONST(IF(章鱼4=0,H,REF(H,章鱼4)));
章鱼6:=CONST(REF(BARSLAST(H>章鱼5),章鱼4+1)+章鱼4+1);
顾比:IF(CURRBARSCOUNT<=章鱼2+21,CONST(IF(章鱼6=0,H,REF(H,章鱼6))),DRAWNULL),DOTLINE,COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=20,顾比,STRCAT(('顾比:'),CON2STR(顾比,1))),COLORYELLOW;
XP1:=V=HHV(V,60) AND C< O;
XP2:=V< REF(V,1) AND H/C>1.04 AND C< O AND EXIST(H>HHV(L,60),5);
STICKLINE(XP2,O,C,1,1), COLORGREEN;
MV5:=MA(V,5);
破5:=CROSS(MV5,V);
断量:DRAWLINE(破5 AND CURRBARSCOUNT< 9,C,REF(破5,1),REF(C,1),1),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,断量,STRCAT((''),CON2STR(断量,2))),COLORWHITE;
下降压力线:DRAWLINE(CURRBARSCOUNT< 20 AND HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORGRAY ,LINETHICK1,DOTLINE;
VAR30:=PEAKBARS(3,15,1)< 10;
VAR50:=IF(VAR30=1,2,0);
顶1:= IF(VAR50=2,2,0);
顶A:=IF(顶1>REF(顶1,1),2,0),COLORGREEN;
DRAWICON(顶A=2,H*1.02,2);
AR1:=EMA(OPEN,7);
AR2:=EMA(AR1,21);
AR3:=CROSS(AR1,AR2);
AR5:=EMA(SMA((CLOSE-LLV(LOW,20))/(HHV(HIGH,16)-LLV(LOW,20))*100,8,1),3);
短买:=IF(TROUGHBARS(1,6,1)=0 AND HIGH>LOW+0,2,0),COLORRED;
DRAWICON(短买=2,L*0.98,1);
H01:=REF(C,9)=HHV(C,2*9+1);
H02:=FILTER(H01,9);
H03:=BACKSET(H02,9+1);
H04:=FILTER(H03,9);
小压:=REF(C*0.999,BARSLAST(H04)),COLORWHITE,NODRAW;
H05:=ABS(REF(小压,1)-小压)>小压*0.075 AND H4;
小压2:REF(C*0.999,BARSLAST(H05)),COLORLIGREEN,DOTLINE;
使用说明:
无
.点击下方通达信指标公式公众号名片,关注星标后,每天免费获取更多精彩指标公式!
温馨提示
如果你喜欢本文,请分享到朋友圈,想要获得更多信息,请关注我。