DRAWKLINE(H,O,L,C);
MA75:MA(CLOSE,75)LINETHICK3,COLOR0080FF;
DRAWTEXT(ISLASTBAR,MA75,'◆MA75')LINETHICK9,COLOR0080FF;
CC0:=IF(CURRBARSCOUNT<18,CONST(REF(C,1)),DRAWNULL);
止损:0.977*CC0,LINETHICK3,COLORGREEN;
DRAWTEXT(ISLASTBAR,止损,'止损')LINETHICK3,COLORGREEN;
八戒1:=1;
八戒02:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);
八戒03:=EMA(CLOSE,3);
八戒04:=(2*CLOSE+LOW+HIGH)/4*八戒1;
八戒05:=八戒02-八戒03;
JJJ:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));
DDD:=(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01);
JJJT:=IF(DDD,1,(JJJ(DYNAINFO(6)-0.01)));
一:=IF(JJJT,0.01*EXPMA(AMOUNT,7)/EXPMA(V,7),EMA((H+L+C)/3,7));
二:=IF(JJJT,0.01*EXPMA(AMOUNT,14)/EXPMA(V,14),EMA((H+L+C)/3,14));
三:=IF(JJJT,0.01*EXPMA(AMOUNT,21)/EXPMA(V,21),EMA((H+L+C)/3,21));
四:=IF(JJJT,0.01*EXPMA(AMOUNT,28)/EXPMA(V,28),EMA((H+L+C)/3,28));
五:=IF(JJJT,0.01*EXPMA(AMOUNT,35)/EXPMA(V,35),EMA((H+L+C)/3,35));
六:=IF(JJJT,0.01*EXPMA(AMOUNT,42)/EXPMA(V,42),EMA((H+L+C)/3,42));
七:=IF(JJJT,0.01*EXPMA(AMOUNT,49)/EXPMA(V,49),EMA((H+L+C)/3,49));
八:=IF(JJJT,0.01*EXPMA(AMOUNT,98)/EXPMA(V,98),EMA((H+L+C)/3,98));
九:=IF(JJJT,0.01*EXPMA(AMOUNT,147)/EXPMA(V,147),EMA((H+L+C)/3,147));
均:=IF(JJJT,0.01*EXPMA(AMOUNT,1)/EXPMA(VOL,1),EMA((HIGH+LOW+CLOSE)/3,1))COLORWHITE,NODRAW;
虚高:=HHV(H,52),COLORFF5BAD,NODRAW;
上轨:HHV(均,49),COLOR009700,NODRAW;
下轨:LLV(均,14),COLOR9E51CC,NODRAW;
虚低:=LLV(L,27),COLORFF5BAD,NODRAW;
压:=HHV(均,147)POINTDOT,LINETHICK3,COLORFFBC79;
STICKLINE(上轨
STICKLINE(下轨>虚低,下轨,虚低,5,0),COLOR282242;{下影}
STICKLINE(下轨
STICKLINE(压>REF(压,1),压,虚高,5,0),COLOR27004F;{突破上影};
A00:=(L+H+C*2)/4;
A01:=EMA(A00,14),COLORBLUE,LINETHICK2;
A002:=EMA(A00,25);
A1X0:=(A01-REF(A01,1))/REF(A01,1)*100;
A2X0:=(A002-REF(A002,1))/REF(A002,1)*100;
出击:IF(A1X0>=0 AND BARSLAST(CROSS(A1X0,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X0,0))),DRAWNULL),COLORMAGENTA,LINETHICK2;
逃遁:IF(A1X0<0 AND BARSLAST(CROSS(0,A1X0))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X0))),DRAWNULL),COLORGREEN,LINETHICK2;
X1:=(C+L+H)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
DRAWICON(CROSS(X2,X3),L*0.97,7);
DRAWICON(CROSS(X3,X2),H*1.02,8);
A:EMA(C,21)COLORBLUE,LINETHICK3;
B:=A
IF(B-1,A,DRAWNULL)COLORRED,LINETHICK3;
八戒AA:=EMA(C,3) > EMA(C,21);
八戒BB:=EMA(C,3) < EMA(C,21);
CC:= EMA(C,3) > EMA(C,8);
CC1:=EMA(C,3) < EMA(C,8);
DD:=CLOSE
STICKLINE(八戒AA,H,L,0,0),COLOR007FFF;
STICKLINE(八戒AA,O,C,3,1),COLOR007FFF;
STICKLINE(八戒AA AND DD,O,C,3,0),COLOR007FFF;
STICKLINE(八戒BB,H,L,0,0),COLORGREEN;
STICKLINE(八戒BB,O,C,3,1),COLORGREEN;
STICKLINE(八戒BB AND DD,O,C,3,0),COLORGREEN;
STICKLINE(八戒BB AND CC,H,L,0,1),COLORF00FF0;
STICKLINE(八戒BB AND CC,O,C,3,1),COLORF00FF0;
STICKLINE(八戒BB AND CC AND DD,O,C,3,0),COLORF00FF0;
STICKLINE(八戒AA AND CC1,H,L,0,0),COLORBLUE;
STICKLINE(八戒AA AND CC1,O,C,3,1),COLORBLUE;
STICKLINE(八戒AA AND CC1 AND DD,O,C,3,0),COLORBLUE;
买线:=MA(CLOSE,9),LINETHICK2;
卖线:=MA(CLOSE,20);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(BU,L-0.1,'建仓')COLORYELLOW;
DRAWTEXT(SEL,H+0.1,'空仓');
A2:=(C-REF(C,1))/REF(C,1)*100<1.02;
A3:=H>MA(C,5)*1.12;
八戒AAA:= A2 AND A3;
DRAWTEXT(八戒AAA,H*1.05,'卖点'),COLORWHITE;
EMA13:=EMA(C,13),COLOR0000FF,LINETHICK2;
EMA34:=EMA(C,34),COLORYELLOW;
EMA55:=EMA(C,55),COLORFF00FF;
EMA120:=EMA(C,120),COLORFFCC66;
游资八戒1:=EMA55>EMA34 AND EMA34>EMA13;
游资八戒2:=BARSLAST((C-EMA13)/EMA13*100
游资八戒3:=EMA13>=REF(EMA13,2);
游资八戒4:=COUNT(CROSS(C,EMA13),游资八戒2)=1;
游资八戒5:=游资八戒1 AND 游资八戒2 AND 游资八戒3 AND 游资八戒4;
游资八戒6:=游资八戒5 AND FILTER(游资八戒5,10);
DRAWTEXT(游资八戒6,L-0.09,'启动'),COLORYELLOW;
STICKLINE(游资八戒6,H,L,3,0),LINETHICK2,COLORYELLOW;
八戒BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;
八戒BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;
八戒BR3:=C>EMA55 AND (REF(C,1)
八戒BR4:=八戒BR1 AND 八戒BR2 AND 八戒BR3;
DRAWTEXT(八戒BR4 AND FILTER(八戒BR4,10),L-0.09,'上升'),COLOR00C5FF;
STICKLINE(八戒BR4 AND FILTER(八戒BR4,10),O,C,3,1),LINETHICK2,COLOR00C5FF;
八戒CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;
八戒CR2:=V>MA(V,5)*0.6;
八戒CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;
八戒CR4:=ABS(EMA34-EMA55)/EMA55<0.03;
八戒CR5:=EMA55<=EMA120 AND EMA55>=REF(EMA55,1);
八戒CR6:=FILTER(八戒CR1 AND 八戒CR2 AND 八戒CR3 AND 八戒CR4 AND 八戒CR5,2);
STICKLINE(八戒CR6,O,C,3,1),LINETHICK2,COLORF00FF0;
DRAWTEXT(八戒CR6,L-0.09,'涨升'),COLORF00FF0;
八戒DR1:=EMA13>EMA34 AND EMA34
八戒DR2:=BARSLAST(CROSS(C,EMA55) );
八戒DR3:=H=HHV(H,八戒DR2);
八戒DR4:=BARSLAST(八戒DR3);
八戒DR5:=COUNT(O>C AND C[EMA55 AND BETWEEN((C-EMA55)/EMA55,0,0.02),八戒DR4)=1;]
八戒DR6:=C>REF(C,1) ;
八戒DR7:= 八戒DR1 AND 八戒DR5 AND 八戒DR6 ;
八戒DR8:=八戒DR7 AND FILTER(八戒DR7 ,10);
DRAWTEXT(八戒DR8,L-0.09,'出击'),COLORD6BA63;
ER:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55);
DRAWTEXT(ER,L-0.09,'金叉'),COLOR0099FF;
FR:=BARSLAST(REF(CROSS(EMA34,EMA13),1)) AND CROSS(EMA13,EMA34);
DRAWTEXT(FR,L-0.09,'加仓'),COLORWHITE;
八戒GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );
八戒GR2:=EMA13>EMA34 AND EMA34>EMA55 AND EMA13>REF(EMA13,1);
八戒GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,八戒GR1),八戒GR1);
八戒GR4:=H=HHV(H,八戒GR1);
八戒GR5:="MACD.MACD"(12,26,9)
八戒GR6:=八戒GR2 AND 八戒GR3 AND 八戒GR4;
八戒GR7:=八戒GR2 AND 八戒GR3 AND 八戒GR4 AND 八戒GR5;
DRAWTEXT(八戒GR6 AND 八戒GR7,H+0.13,'了结'),COLOR00FF00;
HR2:=EMA13>=REF(EMA13,3) AND EMA34>=REF(EMA34,1) AND EMA55>=REF(EMA55,1) AND CROSS(C,EMA13) AND CROSS(C,EMA34) AND CROSS(C,EMA55);
DRAWTEXT(HR2 AND FILTER(HR2,10),L-0.3,'推进'),COLORFFC8FF;
STICKLINE(HR2 AND FILTER(HR2,10),O,C,3,1),LINETHICK2,COLORFFC8FF;
EMA3:=EMA(C,3),COLORWHITE;
EMA8:=EMA(C,8),COLORYELLOW;
EMA21:=EMA(C,21),COLORFF00FF;
EMA43:=MA(C,43),COLORFFCC66;
八戒2:=(2*CLOSE+HIGH+LOW)/4;
八戒3:=IF(YEAR>=2099 AND MONTH>2,0,1);
八戒4:=LLV(LOW,5); 八戒5:=HHV(HIGH,4);
散户:=EMA((八戒2-八戒4)/(八戒5-八戒4)*100,4)*八戒3;
庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*八戒3;
DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.08,'←提示低吸'),COLORLIRED;
DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.08,'←提示高抛'),COLORGREEN;
DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);
DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);
八戒9:=CLOSE-REF(CLOSE,5);
八戒A:=EMA(EMA(八戒9,5),5)/EMA(EMA(ABS(八戒9),5),5);
八戒C:=EMA(EMA(八戒9,20),20)/EMA(EMA(ABS(八戒9),20),20);
卖出:=IF(八戒A>0 AND CROSS(八戒C,八戒A),90,100);
DRAWICON(卖出<0,H+0.05,2); 买线0:=EMA(CLOSE,2);
卖线0:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
B1:IF(CROSS(买线0,卖线0),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;
S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;
VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;
S2:=IF(VC>20 AND FILTER(VC< REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN;
A0:=(L+H+C*2)/4;
A1:EMA(A0,14)COLORBLUE,LINETHICK2;
A02:=EMA(A0,25)COLORLIBLUE,LINETHICK2;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
A2X:=(A02-REF(A02,1))/REF(A02,1)*100,NODRAW;
看多:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2};
逃顶:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),COLORCYAN,{LINETHICK2};
买入持股:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3;
卖出空仓:IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK3;
STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;
STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;
STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF;
STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;
VAR0:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR3:=SMA(VAR0,3,1);
VAR1:=SMA(VAR3,4,1)-10;
VAR4:=(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR5:=SMA(VAR4,3,1);
VAR2:=SMA(VAR5,4,1)-90;
STICKLINE(REF(VAR1,1)STICKLINE(REF(VAR1,1)>VAR1,VAR1,REF(VAR1,1),5,0),COLOR00FF00;
STICKLINE(REF(VAR2,1)>VAR2,VAR2,REF(VAR2,1),10,0),COLOR0000FF;
STICKLINE(REF(VAR2,1)REFLINE:0;
DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
DEA:=EMA(DIFF,5);
MACD := 2*(DIFF-DEA);
X1:=EMA(DIFF,5)*20;
均距:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*50;
X3:IF(均距>0,均距,0),POINTDOT,COLORRED;
X4:IF(均距<0,均距,0),POINTDOT,COLORGREEN;
STICKLINE(均距>0,0,均距,2.8,0),COLORRED;
STICKLINE(均距>0,0,均距,2.8,0),COLOR000088;
STICKLINE(均距>0,0,均距,2.6,0),COLOR000099;
STICKLINE(均距>0,0,均距,2.4,0),COLOR0000AA;
STICKLINE(均距>0,0,均距,2.2,0),COLOR0000BB;
STICKLINE(均距>0,0,均距,2,0),COLOR0000CC;
STICKLINE(均距>0,0,均距,1.8,0),COLOR0000DD;
STICKLINE(均距>0,0,均距,1.5,0),COLOR0000EE;
STICKLINE(均距>0,0,均距,1.0,0),COLOR0000FF;
STICKLINE(均距>0,0,均距,0.0,0),COLOR0000FF;
STICKLINE(均距<0,0,均距,2.8,0),COLORGREEN;
STICKLINE(均距<0,0,均距,2.8,0),COLOR007700;
STICKLINE(均距<0,0,均距,2.6,0),COLOR008800;
STICKLINE(均距<0,0,均距,2.6,0),COLOR009900;
STICKLINE(均距<0,0,均距,2.4,0),COLOR00BB00;
STICKLINE(均距<0,0,均距,2.0,0),COLOR00CC00;
STICKLINE(均距<0,0,均距,1.8,0),COLOR00DD00;
STICKLINE(均距<0,0,均距,1.5,0),COLOR00EE00;
STICKLINE(均距<0,0,均距,1,0),COLOR00FF00;
STICKLINE(均距<0,0,均距,0,0),,COLOR00FF00;
资金动能A:均距,COLORYELLOW,LINETHICK2;
资金动能B:X1,COLORFFFF00,LINETHICK2;
DRAWICON((CROSS(资金动能A,资金动能B) AND 资金动能B
DRAWICON((CROSS(资金动能B,资金动能A) AND 资金动能A>0.25),资金动能A,2);