精 彩 内 容 呈 现
ZYG1:=SUM((WINNER(C)*100),30)/30*0.1;
ZYG2:=SUM((WINNER(C)*100),20)/20*0.4;
ZYG3:=SUM((WINNER(C)*100),10)/10*0.3;
ZYG4:=SUM((WINNER(C)*100),5)/5*0.1;
ZYG5:=SUM((WINNER(C)*100),3)/3*0.1;
ZYGZ:=ZYG1+ZYG2+ZYG3+ZYG4+ZYG5;
赚钱效应:IF(ZYGZ>38,ZYGZ,ZYGZ*1.3),NODRAW;
活跃度:IF(SUMBARS(VOL,CAPITAL)< 100,100-SUMBARS(VOL,CAPITAL),1),NODRAW;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0.02,0,STRCAT(Z3,GNBLOCK)),COLORYELLOW;
DRAWKLINE(H,O,L,C);
获利筹码:IF(WINNER(CLOSE),WINNER(CLOSE)*100,0),NODRAW;
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.02,0.99,0,STRCAT('趋势评分:',STRCAT(CON2STR(XX,0),' '))),COLORYELLOW;
均线25:=MA(CLOSE,25);
均线43:=MA(CLOSE,43);
均线50:=MA(CLOSE,50),COLOR0000FF;
均线88:=MA(CLOSE,88);
N8:=STRCAT(CON2STR(YEAR,0),'年');
Y8:=STRCAT(CON2STR(MONTH,0),'月');
R8:=STRCAT(CON2STR(DAY,0),'日');
K:=BARSLAST(CURRBARSCOUNT=120);
GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0));
DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0));
KJ:=GD-DD;
GD4:=IF(CURRBARSCOUNT<=120/30,GD,DRAWNULL);
低:=IF(CURRBARSCOUNT<=120/30,DD,DRAWNULL),COLORFFFF00;
高:=IF(CURRBARSCOUNT<=120/30,GD,DRAWNULL),COLOR00FFFF;
支撑:=IF(CURRBARSCOUNT<=120/30,DD+KJ*0.191,DRAWNULL),COLOR00FFFF;
强势:=IF(CURRBARSCOUNT<=120/30,DD+KJ*0.382,DRAWNULL),COLORFF00FF;
突破:=IF(CURRBARSCOUNT<=120/30,DD+KJ/2,DRAWNULL),COLOR0000FF;
警示:=IF(CURRBARSCOUNT<=120/30,DD+KJ*0.618,DRAWNULL),COLORCYAN;
压力:=IF(CURRBARSCOUNT<=120/30,DD+KJ*0.809,DRAWNULL),COLORGREEN;
低涨:=IF(CURRBARSCOUNT<=120/30,(C/LLV(LOW,K)-1)*100,DRAWNULL),COLOR0000FF,NODRAW;
天数:=BARSLAST(L=DD),COLORCYAN,NODRAW;
今日保护价:=(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299,NODRAW;
顶点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORLIBLUE,DOTLINE;
低点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORLIRED,DOTLINE;
STICKLINE(CCI>=200 AND H>=顶点,O,C,2,0),COLORLIGRAY;
STICKLINE(CCI<=100 AND L<=低点,O,C,2,0),COLORRED;
DRAWTEXT(CURRBARSCOUNT=4,压力,CON2STR(压力,2)),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=4,警示,CON2STR(警示,2)),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=4,突破,CON2STR(突破,2)),COLOR0000FF;
DRAWTEXT(CURRBARSCOUNT=4,强势,CON2STR(强势,2)),COLORFF00FF;
DRAWTEXT(CURRBARSCOUNT=4,支撑,CON2STR(支撑,2)),COLOR00FFFF;
紫色倍量:=V/REF(V,1)>=2 AND C>O;
STICKLINE(紫色倍量,C,O,2.5,0),COLORMAGENTA;
MA5:MA(C,5)LINETHICK2,COLOR00CCFF;
五日乖离率:=(C-MA5)/MA5*100;
BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;
速度5:=SMA(EMA((MA5-REF(MA5,1))/REF(MA5,1),3)*100,3,1);
加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;
IF(BB5>30 AND MA5>REF(MA5,1),MA5,DRAWNULL),LINETHICK2,COLORRED;
IF(BB5< 0 AND MA5< REF(MA5,1),MA5,DRAWNULL),LINETHICK2,COLORGREEN;
A:=EMA(CLOSE,26)+ABS(EMA(CLOSE,26)-REF(EMA(CLOSE,26),1));
B:=EMA(CLOSE,26)+EMA(CLOSE,26)-REF(EMA(CLOSE,26),1);
操盘线:IF(EMA(CLOSE,26)< B,B,EMA(CLOSE,26)),COLORRED,LINETHICK2;
防守线:=操盘线-(EMA(C,6)-操盘线),COLORLIGRAY,LINETHICK1;
攻击线:=EMA(C,6),COLORYELLOW,LINETHICK1;
IF(操盘线< REF(操盘线,1),操盘线,DRAWNULL),COLORLIGREEN,LINETHICK2;
IF(攻击线>防守线,操盘线,DRAWNULL),COLORLIRED,LINETHICK2;
章鱼1:=SMA(C,6.5,1);
章鱼2:=SMA(C,14.5,1);
章鱼11:=SMA(C,3,1);
章鱼21:=SMA(C,8,1);
章鱼12:=SMA(C,3.5,1);
A7:=(2*C+H+L)/4;
鱼哥:=MA(A7,5),COLORBLUE,LINETHICK2;
鱼哥1:=MA(A7,5)*1.03,LINETHICK2;
鱼哥2:=MA(A7,5)*0.97,LINETHICK2;
M1:=1000*鱼哥/章鱼2<=1015 AND 1000*鱼哥/章鱼2>=975;
M2:=1000*章鱼21/章鱼2<=1020 AND 章鱼21/章鱼2>=980;
M3:=1000*章鱼1/章鱼2<=1015 AND 章鱼1/章鱼2>=985;
买1:=DRAWTEXT( CROSS(章鱼11,章鱼1) AND 章鱼11>鱼哥,LOW,'买进' ),COLORYELLOW;
买2:=DRAWTEXT( CROSS(章鱼11,鱼哥) AND M1 AND M2 AND M3,LOW,'买进' ),COLORYELLOW;
买点:=买1 OR 买2;
STICKLINE(买点,C,O,2,0),COLORYELLOW;
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;
IF(CURRBARSCOUNT<=章鱼哥2+1,IF(L=LLV(L,P),L,DRAWNULL),DRAWNULL),CIRCLEDOT,COLORYELLOW;
H1:=REF(C,9)=HHV(C,2*9+1);
H2:=FILTER(H1,9);
H3:=BACKSET(H2,9+1);
H4:=FILTER(H3,9);
小压:=REF(C*0.999,BARSLAST(H4)),COLORWHITE,NODRAW;
H5:=ABS(REF(小压,1)-小压)>小压*0.075 AND H4;
小压2:REF(C*0.999,BARSLAST(H5)),COLORLIGREEN,NODRAW,DOTLINE;
STICKLINE(C*0.999,小压2,小压2,1,1), COLORLIGREEN;
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,2,0), COLORGREEN;
YC:=REF(CLOSE,1);
止损:=(YC*1.0035*97+0.2)/99.65;
DRAWTEXT_FIX(C!=0,0.4,0.02,0,STRCAT('止损: ',STRCAT(CON2STR(止损,2),' 元'))),COLORLIGRAY;
火箭起爆点:=(DCLOSE-REF(C,1))/REF(C,1)*100;
XG9:=CROSS(火箭起爆点,20) OR CROSS(火箭起爆点,18);
STICKLINE(XG9,C,O,1,0),COLORFF0066;
AL0:=SUMBARS(V,CAPITAL*1);
AL1:=SUM(COST(10),AL0)/AL0;
AL2:=SUM(COST(20),AL0)/AL0;
AL3:=SUM(COST(30),AL0)/AL0;
AL4:=SUM(COST(40),AL0)/AL0;
AL5:=SUM(COST(50),AL0)/AL0;
庄家成本1:=(5*AL1+4*AL2+3*AL3+2*AL4+AL5)/15,COLOR0080FF,DOTLINE;
庄家成本:REFDATE(庄家成本1,DATE),COLORWHITE,DOTLINE;
DRAWTEXT(CURRBARSCOUNT=30,庄家成本,STRCAT('庄本:',CON2STR(庄家成本,2))),COLORWHITE;
LT:=LLVBARS(L,60);
LT1:=LLVBARS(L,60);
LTT:=BARSLAST(CURRBARSCOUNT=CONST(LT)+1);
HT:=FINDHIGHBARS(H,LT+1,60,1);
DT:=FINDLOW(L,LT1+1,60,1);
前峰:DRAWLINE(CURRBARSCOUNT=CONST(HT)+1,H,ISLASTBAR,REF(H,HT),0),COLORLIGREEN ,LINETHICK1;
X_2:=REF(CLOSE,1);
X_3:=REF(CLOSE,1)*1.097;
X_4:=CLOSE>=X_3 AND CLOSE=HIGH;
STICKLINE(X_4,CLOSE-(CLOSE-OPEN)/3,CLOSE,2,0),COLORRED;
X_5:=IF(DTPRICE(REF(CLOSE,1),0.1)=CLOSE,2,0);
STICKLINE((C-REF(C,1))/REF(C,1)<=-0.0985,CLOSE+(OPEN-CLOSE)/3,CLOSE,2,0),COLORBLUE;
章鱼哥K6:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
章鱼哥K7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
章鱼哥K8:=章鱼哥K6< REF(章鱼哥K7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
STICKLINE(章鱼哥K8 AND COUNT(章鱼哥K8,30)=1,C-(C-O)/3,C,2,0),COLORYELLOW;
STICKLINE(章鱼哥K8 AND COUNT(章鱼哥K8,30)=1,C-(C-O)/3,C,0.1,0),COLORBLUE;
DRAWTEXT(章鱼哥K8 AND COUNT(章鱼哥K8,30)=1,L*0.99,'庄'),COLORWHITE;
章鱼哥O3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
章鱼哥O4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)< 1.01) AND (章鱼哥O3AA>0),91,0);
XG8:=(FILTER((章鱼哥O4AA>90),45)),COLORYELLOW;
STICKLINE(XG8,C-(C-O)/3,C,2,0),COLORYELLOW;
STICKLINE(XG8,C-(C-O)/3,C,0.1,0),COLORMAGENTA;
DRAWTEXT(XG8,H*1.01,'异'),COLORYELLOW;
均价线:=AMOUNT/V/100;
C2:=REF(C,1);
涨停:=IF(REF(C,1)*1.1-C< 0.01 ,1,0);
支撑线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
LC:=REF(CLOSE,1);
操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
震仓线:=45;
震仓线2:=50;
逃命线:=80;
抄底线:=20;
绝底线:=5;
章鱼哥P2:=操作线< 震仓线2 AND REF(操作线,1)>震仓线2 ;
章鱼哥P:=操作线< 震仓线 AND REF(操作线,1)>震仓线 ;
章鱼哥P3:=操作线< 抄底线 AND REF(操作线,1)>抄底线;
章鱼哥H:=COUNT(涨停,14)>=1;
A8:=SMA(L,4,3) ;
STICKLINE(A8 AND REF(章鱼哥P,1) AND 章鱼哥H ,L*0.9999,L*0.9989,5,0),COLORLIRED;
STICKLINE(A8 AND REF(章鱼哥P3,1) AND 章鱼哥H ,L*0.9999,L*0.9989,5,0),COLORYELLOW;
HD:=COUNT(涨停,14)>=1;
A1:=SMA(H,4,3);
STICKLINE(A1 AND HD ,H,H*1.001,0.5,0),COLORWHITE;
N:=9;
M11:=3;
M12:=3;
试试:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K0:=SMA(试试,5,1);
D0:=SMA(K0,M11,1);
J0:=3*K0-2*D0;
章鱼哥OB2:=(试试/2+22)*1;
V13:=EMA(VOL,13);
章鱼哥X1:=EMA(AMOUNT,13);
章鱼哥X2:=((章鱼哥X1 /V13) / 100);
章鱼哥X3:=(((CLOSE -章鱼哥X2) / 章鱼哥X2) * 100);
章鱼哥X4:=((章鱼哥X3 < (0)) AND ZXNH),COLORRED;
章鱼哥X5:=章鱼哥X4 AND 试试< 章鱼哥OB2-2;
DRAWTEXT(章鱼哥X5,L*0.99,'▲'),COLORYELLOW;
底:DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),H,''),LINETHICK2,COLORYELLOW;
DRAWICON(底,L*0.999,36);
顶:DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),H,''),LINETHICK2,COLORYELLOW;
DRAWICON(顶,H*1.01,37);
章鱼哥O30:=PEAKBARS(3,15,1)< 10;
章鱼哥O50:=IF(章鱼哥O30=1,2,0);
顶1:= IF(章鱼哥O50=2,2,0);
顶A:=IF(顶1>REF(顶1,1),3,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,3,0),COLORRED;
DRAWICON(短买=2,L*0.98,1);DRAWTEXT_FIX(C>O,0,0.2,0,'更多实用指标指标,请关注微信公众号:通达信指标指标'),COLOR333333;
成妖趋势:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK1,COLORRED,DOTLINE;
STICKLINE(成妖趋势>LOW AND 成妖趋势< HIGH,成妖趋势,MIN(MIN(OPEN,CLOSE),成妖趋势),0.5,0),COLOR0099FF;
STICKLINE(成妖趋势>MIN(C,O) AND 成妖趋势< MAX(C,O),成妖趋势,MIN(OPEN,CLOSE),0.5,0),COLOR0099FF;
STICKLINE(成妖趋势>HIGH,OPEN,CLOSE,0.5,0),COLOR0099FF;
STICKLINE(成妖趋势>HIGH,HIGH,LOW,0,0),COLOR0099FF;
V1:=CLOSE/REF(CLOSE,3)>=1.1;
V2:=BACKSET(V1,2);
仙人指:=V2 AND COUNT(V2,2)=1;
DRAWICON(仙人指,L*0.99,11);
HJXX_1:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
HJXX_2:=EMA(HIGH,30)*1.15;
HJXX_3:=EMA(HIGH,3)*1.03;
游资接力:=CROSS(CLOSE,HJXX_3) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1) > 0.04 ;
DRAWTEXT(游资接力,L*0.99,'▲'),COLORWHITE;
DRAWTEXT(游资接力,L*0.98,'▲'),COLORRED;
A章鱼哥O2:=REF(LOW,1);
A章鱼哥O3:=SMA(ABS(LOW-A章鱼哥O2),13,1)/SMA(MAX(LOW-A章鱼哥O2,0),13,1)*100;
A章鱼哥O4:=EMA(IF(CLOSE*1.2,A章鱼哥O3*13,A章鱼哥O3/13),13);
A章鱼哥O5:=LLV(LOW,34);
A章鱼哥O6:=HHV(A章鱼哥O4,34);
A章鱼哥O7:=IF(LLV(LOW,56),1,0);
A章鱼哥O8:=EMA(IF(LOW<=A章鱼哥O5,(A章鱼哥O4+A章鱼哥O6*2)/2,0),3)/618*A章鱼哥O7;
AA:=A章鱼哥O8>REF(A章鱼哥O8,1);
RR1:=MA(CLOSE,27);
RR2:=(CLOSE-RR1)/RR1*100;
RRA:=MA(RR2,2);
RRB:=BARSLAST(CROSS(-1,RRA)=1);
RRD:=RRA< -10 AND RRB>3;
建仓区1:=STICKLINE(IF(RRD,-12,0),-7,0,3,0),COLORGRAY;
起爆点:=IF(RRD,-7,0),COLOR00FF66,COLORLIBLUE,DOTLINE;
DR:=100;
ZRQ:=3;
DJ1:=REF(LLV(L,100),3);
ZD1:=REFDATE(DJ1,DATE);
XG0:=L=ZD1;
XG0A:=AA AND XG0,COLORRED,LINETHICK1;
XG01:=XG0A>REF(XG0A,1);
牛股起爆点:=XG01>REF(XG01,1)COLORRED,LINETHICK1;
DJ:=REF(LLV(L,100),3);
ZD:=REFDATE(DJ,DATE);
XG09:=L=ZD;
XGA:=AA AND XG09;
XG1:=XGA>REF(XGA,1);
底部9:=XG1>REF(XG1,1);
DRAWICON(底部9,L*0.98,9);
JRH:=HHV(C,2);
JRL:=LLV(C,2);
MA3:=MA(CLOSE,3);
YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;
章鱼哥O1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));
章鱼哥O2:=(REF(章鱼哥O1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥O3:=(REF(章鱼哥O2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥O4:=(REF(章鱼哥O3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥O5:=(REF(章鱼哥O4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥O6:=(REF(章鱼哥O5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥O7:=(REF(章鱼哥O6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥O8:=(REF(章鱼哥O7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥O9:=(REF(章鱼哥O8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥OA:=(REF(章鱼哥O9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥OB:=(REF(章鱼哥OA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥OC:=(REF(章鱼哥OB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥OD:=(CLOSE< REF(CLOSE,1) AND CLOSE< REF(CLOSE,2));
章鱼哥OE:=(REF(章鱼哥OD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥OF1:=(REF(章鱼哥OE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥O10:=(REF(章鱼哥OF1,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥O11:=(REF(章鱼哥O10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥O12:=(REF(章鱼哥O11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥O13:=(REF(章鱼哥O12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥O14:=(REF(章鱼哥O13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥O15:=(REF(章鱼哥O14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥O16:=(REF(章鱼哥O15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥O17:=(REF(章鱼哥O16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥O18:=(REF(章鱼哥O17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥O19:=((REF(章鱼哥OD OR 章鱼哥OE OR 章鱼哥OF1 OR 章鱼哥O10 OR 章鱼哥O11 OR 章鱼哥O12 OR 章鱼哥O13 OR 章鱼哥O14 OR 章鱼哥O15 OR 章鱼哥O16 OR 章鱼哥O17 OR 章鱼哥O18,1)) AND 章鱼哥O1);
章鱼哥O1A:=((REF(章鱼哥O1 OR 章鱼哥O2 OR 章鱼哥O3 OR 章鱼哥O4 OR 章鱼哥O5 OR 章鱼哥O6 OR 章鱼哥O7 OR 章鱼哥O8 OR 章鱼哥O9 OR 章鱼哥OA OR 章鱼哥OB OR 章鱼哥OC,1)) AND 章鱼哥OD);
红色持股:=章鱼哥O1 OR 章鱼哥O2 OR 章鱼哥O3 OR 章鱼哥O4 OR 章鱼哥O5 OR 章鱼哥O6 OR 章鱼哥O7 OR 章鱼哥O8 OR 章鱼哥O9 OR 章鱼哥OA OR 章鱼哥OB OR 章鱼哥OC,COLOR0000FF,NODRAW;
机构离场:=IF(红色持股,JRL,DRAWNULL);
明离场价:=机构离场,COLORFF99FF,NODRAW;
今离场价:=REF(机构离场,1)COLOR0000FF,NODRAW;
青色观望:=章鱼哥OD OR 章鱼哥OE OR 章鱼哥OF1 OR 章鱼哥O10 OR 章鱼哥O11 OR 章鱼哥O12 OR 章鱼哥O13 OR 章鱼哥O14 OR 章鱼哥O15 OR 章鱼哥O16 OR 章鱼哥O17 OR 章鱼哥O18,COLORFFFF00,NODRAW;
进:=IF(青色观望,JRH,DRAWNULL);
明进场价:=进,COLOR33AACC,NODRAW;
今进场价:=REF(明进场价,1),COLORFF0000,NODRAW;
STICKLINE(ISLASTBAR AND (红色持股 OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;
STICKLINE(ISLASTBAR AND (青色观望 OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;
机构短买:=章鱼哥O19,COLOR33AACC,NODRAW;
品红离场:=章鱼哥O1A,COLORFF99FF,NODRAW;
CO:=(C-O);
STICKLINE(机构短买,O,O+CO/3,2,0),COLORLIMAGENTA;
STICKLINE(品红离场,O,O+CO/3,2,0),COLORLIGREEN;
N11:=2,200,13;
UR00:=2,200,6;
LR0:=2,200,6;
TC01:=IF(H=HHV(H,8*UR00),H,DRAWNULL);
TC02:=CONST(BARSLAST(TC01=H))+1;
U章鱼哥PER:=CONST(IF(TC02=1,H,REF(H,TC02-1)));
BC1:=IF(L=LLV(L,8*LR0),L,DRAWNULL);
BC2:=CONST(BARSLAST(BC1=L))+1;
LOWER:=CONST(IF(BC2=1,L,REF(L,BC2-1)));
LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;
HP:=CURRBARSCOUNT<=TC02 AND H=U章鱼哥PER;
NOD:=(IF(TC02>BC2,TC02,BC2)-IF(TC02>BC2,BC2,TC02));
LR1:=FORCAST(C,NOD+1);
NP:=IF(CURRBARSCOUNT<=MAX(BC2,TC02),CONST(IF(MIN(TC02,BC2)=1,LR1,REF(LR1,MIN(TC02,BC2)-1))),DRAWNULL),DOTLINE,COLORLIBLUE;
LR2:=SLOPE(C,NOD+1);
LR3:=CONST(IF(MIN(TC02,BC2)=1,LR2,REF(LR2,MIN(TC02,BC2)-1)));
FP:=NP-LR3*(NOD),DOTLINE,COLORLIRED;
EQU:=(NP+FP)/2,DOTLINE,COLORWHITE;
AD:=ABS(NP-FP);
DBL0:=BARSLAST(BC1!=DRAWNULL)+1;
DBH:=BARSLAST(TC01!=DRAWNULL)+1;
BSP:=IF(BC2>TC02,DBL0,DBH)-1;
LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP);
AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC02) AND H>LRL,H,LRL);
AT2:=HHV(AT1-LRL,MAX(BC2,TC02));
AT3:=CONST(BARSLAST(AT1-LRL=AT2));
AT4:=CONST(IF(AT3=0,H,REF(H,AT3)));
AT5:=CONST(IF(AT3=0,AT1-LRL,REF(AT1-LRL,AT3)));
ATL:=LRL+AT5;
UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC02) AND L< LRL,L,LRL);
UT2:=HHV(LRL-UT1,MAX(BC2,TC02));
UT3:=CONST(BARSLAST(LRL-UT1=UT2));
UT4:=CONST(IF(UT3=0,H,REF(H,UT3)));
UT5:=CONST(IF(UT3=0,LRL-UT1,REF(LRL-UT1,UT3)));
UTL:=LRL-UT5;
RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC02)-10,ATL,CONST(REF(ATL,MIN(BC2,TC02)-11)));
RL:=IF(CURRBARSCOUNT>=MIN(BC2,TC02)-10,UTL,CONST(REF(UTL,MIN(BC2,TC02)-11)));
中轨:IF(NP>FP,IF(LRL<=RH,LRL,DRAWNULL),IF(LRL>=RL,LRL,DRAWNULL)),COLORBBBBBB;
上轨:IF(NP>FP,IF(ATL<=RH,ATL,DRAWNULL),IF(ATL>=RL,ATL,DRAWNULL)),COLORBLUE;
下轨:IF(NP>FP,IF(UTL<=RH,UTL,DRAWNULL),IF(UTL>=RL,UTL,DRAWNULL)),COLORFF00FF;
章鱼哥E1:=(REF(HIGH,3) = HHV(HIGH,((2 * 3) + 1)));
章鱼哥E2:=FILTER(章鱼哥E1,3);
章鱼哥E3:=BACKSET(章鱼哥E2,(3 + 1));
章鱼哥E4:=FILTER(章鱼哥E3,3);
章鱼哥E5:=(REF(LOW,3) = LLV(LOW,((2 * 3) + 1)));
章鱼哥E6:=FILTER(章鱼哥E5,3);
章鱼哥E7:=BACKSET(章鱼哥E6,(3 + 1));
章鱼哥E8:=FILTER(章鱼哥E7,3);
章鱼哥E9:=((REF(LLV(LOW,(2 * 3)),1) + REF(HHV(HIGH,(2 * 3)),1)) / 2);
章鱼哥E10:=((HIGH + LOW) / 2);
章鱼哥E11:=(((章鱼哥E4 AND NOT((章鱼哥E8 AND (章鱼哥E9 >= 章鱼哥E10)))) OR BARSTATUS) OR (BARSCOUNT(CLOSE) = 1));
章鱼哥E12:=(章鱼哥E8 AND NOT((章鱼哥E4 AND (章鱼哥E9 < 章鱼哥E10))));
章鱼哥E13:=(章鱼哥E4 AND NOT((章鱼哥E8 AND (章鱼哥E9 >= 章鱼哥E10))));
章鱼哥E14:=(REF(BARSLAST(章鱼哥E11),1) + 1);
章鱼哥E15:=BACKSET((章鱼哥E11 AND (COUNT(章鱼哥E12,章鱼哥E14) > 0)),LLVBARS(IF(章鱼哥E12,LOW,10000),章鱼哥E14));
章鱼哥E16:=(章鱼哥E15 > REF(章鱼哥E15,1));
章鱼哥E17:=BACKSET(章鱼哥E16,2);
章鱼哥E18:=(章鱼哥E17 > REF(章鱼哥E17,1));
章鱼哥E19:=((章鱼哥E18 OR BARSTATUS) OR (BARSCOUNT(CLOSE) = 1));
章鱼哥E20:=(REF(BARSLAST(章鱼哥E19),1) + 1);
章鱼哥E21:=BACKSET((章鱼哥E19 AND (COUNT(章鱼哥E13,章鱼哥E20) > 0)),HHVBARS(IF(章鱼哥E13,HIGH,0),章鱼哥E20));
章鱼哥E22:=(章鱼哥E21 > REF(章鱼哥E21,1));
章鱼哥E23:=BACKSET(章鱼哥E22,2);
章鱼哥E24:=(章鱼哥E23 > REF(章鱼哥E23,1));
章鱼哥E25:=BACKSET(BARSTATUS,(BARSLAST(章鱼哥E18) + 1));
章鱼哥E26:=(章鱼哥E25 > REF(章鱼哥E25,1));
章鱼哥E27:=BACKSET(BARSTATUS,(BARSLAST(章鱼哥E24) + 1));
章鱼哥E28:=(章鱼哥E27 > REF(章鱼哥E27,1));
底0:REF(LOW,BARSLAST(章鱼哥E26)),COLORLIGRAY;
顶0:REF(HIGH,BARSLAST(章鱼哥E28)),COLORLIGRAY;
STICKLINE(章鱼哥E26,顶0,底0,0,0),COLORLIGRAY,LINETHICK1;
DRAWLINE(章鱼哥E28,HIGH,章鱼哥E26,顶0,1),COLORLIGRAY,LINETHICK1;
STICKLINE(章鱼哥E28,顶0,底0,0,0),COLORLIGRAY,LINETHICK1;
DRAWLINE(章鱼哥E26,LOW,章鱼哥E28,底0,1),COLORLIGRAY,LINETHICK1;
使用说明:
无
.点击下方通达信指标公式公众号名片,关注星标后,每天免费获取更多精彩指标公式!
温馨提示
如果你喜欢本文,请分享到朋友圈,想要获得更多信息,请关注我。