精 彩 内 容 呈 现
章鱼1:=SUM((WINNER(C)*100),30)/30*0.1;
章鱼2:=SUM((WINNER(C)*100),20)/20*0.4;
章鱼3:=SUM((WINNER(C)*100),10)/10*0.3;
章鱼4:=SUM((WINNER(C)*100),5)/5*0.1;
章鱼5:=SUM((WINNER(C)*100),3)/3*0.1;
章鱼Z:=章鱼1+章鱼2+章鱼3+章鱼4+章鱼5;
赚钱效应:IF(章鱼Z>38,章鱼Z,章鱼Z*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;
CAOZ:=MA(A7,5),COLORBLUE,LINETHICK2;
CAOZ1:=MA(A7,5)*1.03,LINETHICK2;
CAOZ2:=MA(A7,5)*0.97,LINETHICK2;
M1:=1000*CAOZ/鱼哥2<=1015 AND 1000*CAOZ/鱼哥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>CAOZ,LOW,'买进' ),COLORYELLOW;
买2:=DRAWTEXT( CROSS(鱼哥11,CAOZ) 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;
鱼哥A6:=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);
鱼哥A7:=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);
鱼哥A8:=鱼哥A6<REF(鱼哥A7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
STICKLINE(鱼哥A8 AND COUNT(鱼哥A8,30)=1,C-(C-O)/3,C,2,0),COLORYELLOW;
STICKLINE(鱼哥A8 AND COUNT(鱼哥A8,30)=1,C-(C-O)/3,C,0.1,0),COLORBLUE;
DRAWTEXT(鱼哥A8 AND COUNT(鱼哥A8,30)=1,L*0.99,'庄'),COLORWHITE;
章鱼哥A3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
章鱼哥A4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (章鱼哥A3AA>0),91,0);
XG8:=(FILTER((章鱼哥A4AA>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;
PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ;
PP:=操作线<震仓线 AND REF(操作线,1)>震仓线 ;
PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线;
HH:=COUNT(涨停,14)>=1;
A8:=SMA(L,4,3) ;
STICKLINE(A8 AND REF(PP,1) AND HH ,L*0.9999,L*0.9989,5,0),COLORLIRED;
STICKLINE(A8 AND REF(PP3,1) AND HH ,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;
章鱼哥AB2:=(试试/2+22)*1;
V13:=EMA(VOL,13);
鱼哥C1:=EMA(AMOUNT,13);
鱼哥C2:=((鱼哥C1 /V13) / 100);
鱼哥C3:=(((CLOSE -鱼哥C2) / 鱼哥C2) * 100);
鱼哥C4:=((鱼哥C3 < (0)) AND ZXNH),COLORRED;
鱼哥C5:=鱼哥C4 AND 试试<章鱼哥AB2-2;
DRAWTEXT(鱼哥C5,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);
章鱼哥A30:=PEAKBARS(3,15,1)<10;
章鱼哥A50:=IF(章鱼哥A30=1,2,0);
顶1:= IF(章鱼哥A50=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.07,0,'更多实用指标公式,请关注微信公众号:金钻指标精选'),COLORWHITE;
章鱼成妖趋势:=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);
鱼哥D1:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
鱼哥D2:=EMA(HIGH,30)*1.15;
鱼哥D3:=EMA(HIGH,3)*1.03;
游资接力:=CROSS(CLOSE,鱼哥D3) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1) > 0.04 ;
DRAWTEXT(游资接力,L*0.99,'▲'),COLORWHITE;
DRAWTEXT(游资接力,L*0.98,'▲'),COLORRED;
A章鱼哥A2:=REF(LOW,1);
A章鱼哥A3:=SMA(ABS(LOW-A章鱼哥A2),13,1)/SMA(MAX(LOW-A章鱼哥A2,0),13,1)*100;
A章鱼哥A4:=EMA(IF(CLOSE*1.2,A章鱼哥A3*13,A章鱼哥A3/13),13);
A章鱼哥A5:=LLV(LOW,34);
A章鱼哥A6:=HHV(A章鱼哥A4,34);
A章鱼哥A7:=IF(LLV(LOW,56),1,0);
A章鱼哥A8:=EMA(IF(LOW<=A章鱼哥A5,(A章鱼哥A4+A章鱼哥A6*2)/2,0),3)/618*A章鱼哥A7;
AA:=A章鱼哥A8>REF(A章鱼哥A8,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;
章鱼哥A1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));
章鱼哥A2:=(REF(章鱼哥A1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥A3:=(REF(章鱼哥A2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥A4:=(REF(章鱼哥A3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥A5:=(REF(章鱼哥A4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥A6:=(REF(章鱼哥A5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥A7:=(REF(章鱼哥A6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥A8:=(REF(章鱼哥A7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥A9:=(REF(章鱼哥A8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥AA:=(REF(章鱼哥A9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥AB:=(REF(章鱼哥AA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥AC:=(REF(章鱼哥AB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥AD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));
章鱼哥AE:=(REF(章鱼哥AD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥AF1:=(REF(章鱼哥AE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥A10:=(REF(章鱼哥AF1,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥A11:=(REF(章鱼哥A10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥A12:=(REF(章鱼哥A11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥A13:=(REF(章鱼哥A12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥A14:=(REF(章鱼哥A13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥A15:=(REF(章鱼哥A14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥A16:=(REF(章鱼哥A15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥A17:=(REF(章鱼哥A16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
章鱼哥A18:=(REF(章鱼哥A17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
章鱼哥A19:=((REF(章鱼哥AD OR 章鱼哥AE OR 章鱼哥AF1 OR 章鱼哥A10 OR 章鱼哥A11 OR 章鱼哥A12 OR 章鱼哥A13 OR 章鱼哥A14 OR 章鱼哥A15 OR 章鱼哥A16 OR 章鱼哥A17 OR 章鱼哥A18,1)) AND 章鱼哥A1);
章鱼哥A1A:=((REF(章鱼哥A1 OR 章鱼哥A2 OR 章鱼哥A3 OR 章鱼哥A4 OR 章鱼哥A5 OR 章鱼哥A6 OR 章鱼哥A7 OR 章鱼哥A8 OR 章鱼哥A9 OR 章鱼哥AA OR 章鱼哥AB OR 章鱼哥AC,1)) AND 章鱼哥AD);
红色持股:=章鱼哥A1 OR 章鱼哥A2 OR 章鱼哥A3 OR 章鱼哥A4 OR 章鱼哥A5 OR 章鱼哥A6 OR 章鱼哥A7 OR 章鱼哥A8 OR 章鱼哥A9 OR 章鱼哥AA OR 章鱼哥AB OR 章鱼哥AC,COLOR0000FF,NODRAW;
机构离场:=IF(红色持股,JRL,DRAWNULL);
明离场价:=机构离场,COLORFF99FF,NODRAW;
今离场价:=REF(机构离场,1)COLOR0000FF,NODRAW;
青色观望:=章鱼哥AD OR 章鱼哥AE OR 章鱼哥AF1 OR 章鱼哥A10 OR 章鱼哥A11 OR 章鱼哥A12 OR 章鱼哥A13 OR 章鱼哥A14 OR 章鱼哥A15 OR 章鱼哥A16 OR 章鱼哥A17 OR 章鱼哥A18,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;
机构短买:=章鱼哥A19,COLOR33AACC,NODRAW;
品红离场:=章鱼哥A1A,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;
UPPER:=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=UPPER;
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;
章鱼哥1:=(REF(HIGH,3) = HHV(HIGH,((2 * 3) + 1)));
章鱼哥2:=FILTER(章鱼哥1,3);
章鱼哥3:=BACKSET(章鱼哥2,(3 + 1));
章鱼哥4:=FILTER(章鱼哥3,3);
章鱼哥5:=(REF(LOW,3) = LLV(LOW,((2 * 3) + 1)));
章鱼哥6:=FILTER(章鱼哥5,3);
章鱼哥7:=BACKSET(章鱼哥6,(3 + 1));
章鱼哥8:=FILTER(章鱼哥7,3);
章鱼哥9:=((REF(LLV(LOW,(2 * 3)),1) + REF(HHV(HIGH,(2 * 3)),1)) / 2);
章鱼哥10:=((HIGH + LOW) / 2);
章鱼哥11:=(((章鱼哥4 AND NOT((章鱼哥8 AND (章鱼哥9 >= 章鱼哥10)))) OR BARSTATUS) OR (BARSCOUNT(CLOSE) = 1));
章鱼哥12:=(章鱼哥8 AND NOT((章鱼哥4 AND (章鱼哥9 < 章鱼哥10))));
章鱼哥13:=(章鱼哥4 AND NOT((章鱼哥8 AND (章鱼哥9 >= 章鱼哥10))));
章鱼哥14:=(REF(BARSLAST(章鱼哥11),1) + 1);
章鱼哥15:=BACKSET((章鱼哥11 AND (COUNT(章鱼哥12,章鱼哥14) > 0)),LLVBARS(IF(章鱼哥12,LOW,10000),章鱼哥14));
章鱼哥16:=(章鱼哥15 > REF(章鱼哥15,1));
章鱼哥17:=BACKSET(章鱼哥16,2);
章鱼哥18:=(章鱼哥17 > REF(章鱼哥17,1));
章鱼哥19:=((章鱼哥18 OR BARSTATUS) OR (BARSCOUNT(CLOSE) = 1));
章鱼哥20:=(REF(BARSLAST(章鱼哥19),1) + 1);
章鱼哥21:=BACKSET((章鱼哥19 AND (COUNT(章鱼哥13,章鱼哥20) > 0)),HHVBARS(IF(章鱼哥13,HIGH,0),章鱼哥20));
章鱼哥22:=(章鱼哥21 > REF(章鱼哥21,1));
章鱼哥23:=BACKSET(章鱼哥22,2);
章鱼哥24:=(章鱼哥23 > REF(章鱼哥23,1));
章鱼哥25:=BACKSET(BARSTATUS,(BARSLAST(章鱼哥18) + 1));
章鱼哥26:=(章鱼哥25 > REF(章鱼哥25,1));
章鱼哥27:=BACKSET(BARSTATUS,(BARSLAST(章鱼哥24) + 1));
章鱼哥28:=(章鱼哥27 > REF(章鱼哥27,1));
底0:REF(LOW,BARSLAST(章鱼哥26)),COLORLIGRAY;
顶0:REF(HIGH,BARSLAST(章鱼哥28)),COLORLIGRAY;
STICKLINE(章鱼哥26,顶0,底0,0,0),COLORLIGRAY,LINETHICK1;
DRAWLINE(章鱼哥28,HIGH,章鱼哥26,顶0,1),COLORLIGRAY,LINETHICK1;
STICKLINE(章鱼哥28,顶0,底0,0,0),COLORLIGRAY,LINETHICK1;
DRAWLINE(章鱼哥26,LOW,章鱼哥28,底0,1),COLORLIGRAY,LINETHICK1;
PS:
新增2个微信公众号,用来补充分享指标公式源码和机会提示,有需要的可以关注下!
使用说明:
无
点击下方短线指标公式公众号名片,关注星标后,每天免费获取更多精彩指标公式!
温馨提示
我每天分享指标,不求打赏,请大家看完文章后保持互动
帮忙点击底部【在看+赞】
保持互动,系统才会及时向你推送文章,不错过精品指标。