主图
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLOR00FFFF;
马线:MA(牛线,3),COLOR0000FF;
DRAWBAND(牛线,RGB(250,255,0),马线,RGB(0,0,250));
A5:EMA((L+H+C*2)/4,5);
A13:EMA((L+H+C*2)/4,13);
A21:EMA((L+H+C*2)/4,21);
A55:EMA((L+H+C*2)/4,55);
STICKLINE(A5>A13 AND A5>=REF(A13,1) AND A13>REF(A13,1),A5,A13,0.3,0),COLORRED;
STICKLINE(A5>A13 AND A5<REF(A5,1) AND A13>REF(A13,1),A5,A13,0.3,0),COLORRED;
STICKLINE(A5<A13 AND A5<=REF(A5,1) AND A13<REF(A13,1),A5,A13,0.3,0),COLORYELLOW;
STICKLINE(A13>A55 AND A21>=REF(A55,1) AND A55>REF(A55,1),A21,A55,0.3,0),COLORF344C7;
STICKLINE(A21>A55 AND A21<REF(A21,1) AND A55>REF(A55,1),A21,A55,0.3,0),COLORF344C7;
STICKLINE(A21<A55 AND A13<=REF(A21,1) AND A13<REF(A55,1),A21,A55,0.3,0),COLOR32CD99;
海面:EMA(C,120),COLORFA05FF,LINETHICK2;
IF(海面>=REF( 海面,1),海面,DRAWNULL),COLORFA05FF,LINETHICK2;
IF(海面<REF (海面,1), 海面,DRAWNULL),COLOR399C7F,LINETHICK2;
VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,1.5);
VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,1.5);
VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,1.5);
VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,1.5);
VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,1.5);
VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,1.5);
VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,1.5);
VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,1.5);
VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,1.5);
VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,1.5);
VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,1.5);
VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,1.5);
STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),3,1),COLOR0000FF;
VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,1.5);
VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,1.5);
VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,1.5);
VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,1.5);
VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,1.5);
VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,1.5);
VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,1.5);
VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,1.5);
VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,1.5);
VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,1.5);
VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,1.5);
VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,1.5);
STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),3,0),COLORC08000;
VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;
STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORWHITE;
VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0) ,COLOR00FF00;
AA:=REF(C,1);
HH:=MAX(C,AA);
LL:=MIN(C,AA);
ZY:=REF(C,1)>REF(LL,1);{昨天收阳}
ZD:=REF(C,1)<REF(HH,1);{昨天收阴}
STICKLINE(C>=AA,LL,HH,1.5,0),COLORRED;
STICKLINE(C<AA,LL,HH,1.5,0),COLOR008000;
STICKLINE(ZY AND C>=REF(AA,1),LL,HH,1.5,0),COLORRED;
STICKLINE(ZY AND C<REF(AA,1),HH,REF(AA,1),1.5,0),COLORRED;
STICKLINE(ZY AND C<REF(AA,1),REF(AA,1),C,1.5,0),COLOR008000;
STICKLINE(ZD AND C<=REF(AA,1),LL,HH,1.5,0),COLOR008000;
STICKLINE(ZD AND C>REF(AA,1),LL,REF(AA,1),1.5,0),COLOR008000;
STICKLINE(ZD AND C>REF(AA,1),REF(AA,1),C,1.5,0),COLORRED;
副图1
DRAWGBK(C>0, RGB(180,170,170),RGB(183,164,165),0,'8',0);
STICKLINE(1,34,13,4,0),COLORGREEN;
获利:=WINNER(C)*100,COLORLIRED,LINETHICK2;
DRAWBAND(获利+13,RGB(250,20,20),13,RGB(20,225,50));
主力:=10*WINNER(CLOSE*0.96)*10, COLORCYAN,DOTLINE;
DRAWBAND(主力+90,RGB(250,50,250),90,RGB(100,115,100));
副图2
N1:=3;
N2:=6;
DRAWGBK(CURRBARSCOUNT=1, RGB(0,0,0),RGB(0,0,0),0,'1',0);
VAR1:=EMA(EMA(CLOSE,9),9);
VAR2:=100*WINNER(CLOSE*0.95);
EXPJX:=EMA(C,12)>EMA(C,50) AND EMA(C,20)>EMA(C,120);
KP:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
GDKP:=VAR2>=50 AND COST(85)<=CLOSE AND KP>0 AND KP>REF(KP,1);
X1:=GDKP AND EXPJX AND REF(GDKP+EXPJX<=1,1);
X2:=MACD.DIF>MACD.DEA AND REF(MACD.DIF<=MACD.DEA OR MACD.DIF<=0,1);
X3:=CLOSE>SAR.SAR AND REF(CLOSE<=SAR.SAR,1);
X4:=RSI.RSI1>RSI.RSI2 AND RSI.RSI2>49 AND REF(COUNT(RSI.RSI1>RSI.RSI2 AND RSI.RSI2>49,1)=0,1);
X5:=CCI.CCI>=100 AND REF(CCI.CCI<100,1);
X6:=KDJ.K>KDJ.D AND REF(KDJ.K<=KDJ.D,1);
X7:=CJDX.K>CJDX.D AND CJDX.K>0 AND REF(COUNT(CJDX.K>CJDX.D AND CJDX.K>0,1)=0,1);
STICKLINE(GDKP AND EXPJX,0,2,4,0),COLORMAGENTA,LINETHICK2;
STICKLINE(GDKP+EXPJX<=1,0,2,4,0),COLORGREEN,LINETHICK2;
DRAWTEXT(ISLASTBAR=1,1,' 筹码'),COLORFFFFFF;
STICKLINE(CCI.CCI>=100,3,5,4,0),COLORMAGENTA,LINETHICK2;
STICKLINE(CCI.CCI<100,3,5,4,0),COLORGREEN,LINETHICK2;
DRAWTEXT(ISLASTBAR=1,4,' CCI'),COLORFFFFFF;
STICKLINE(MACD.DIF>MACD.DEA AND MACD.DIF>0,6,8,4,0),COLORMAGENTA,LINETHICK2;
STICKLINE(MACD.DIF<=MACD.DEA OR MACD.DIF<=0,6,8,4,0),COLORGREEN,LINETHICK2;
DRAWTEXT(ISLASTBAR=1,7,' MACD'),COLORFFFFFF;
STICKLINE(CLOSE>SAR.SAR,9,11,4,0),COLORMAGENTA,LINETHICK2;
STICKLINE(CLOSE<=SAR.SAR,9,11,4,0),COLORGREEN,LINETHICK2;
DRAWTEXT(ISLASTBAR=1,10,' SAR'),COLORFFFFFF;
STICKLINE(RSI.RSI1>RSI.RSI2 AND RSI.RSI2>49,12,14,4,0),COLORMAGENTA,LINETHICK2;
STICKLINE(COUNT(RSI.RSI1>RSI.RSI2 AND RSI.RSI2>49,1)=0,12,14,4,0),COLORGREEN,LINETHICK2;
DRAWTEXT(ISLASTBAR=1,13,' RSI'),COLORFFFFFF;
STICKLINE(KDJ.K>KDJ.D,15,17,4,0),COLORMAGENTA,LINETHICK2;
STICKLINE(KDJ.K<=KDJ.D,15,17,4,0),COLORGREEN,LINETHICK2;
DRAWTEXT(ISLASTBAR=1,16,' KDJ'),COLORFFFFFF;
STICKLINE(CJDX.K>CJDX.D AND CJDX.K>0,18,20,4,0),COLORMAGENTA,LINETHICK2;
STICKLINE(COUNT(CJDX.K>CJDX.D AND CJDX.K>0,1)=0,18,20,4,0),COLORGREEN,LINETHICK2;
DRAWTEXT(ISLASTBAR=1,19,' CJDX'),COLORFFFFFF;
XM:=X1+X2+X3+X4+X5+X6+X7>=N1;
Y1:=GDKP AND EXPJX;
Y2:=MACD.DIF>MACD.DEA AND MACD.DIF>0 ;
Y3:=CLOSE>SAR.SAR ;
Y4:=RSI.RSI1>RSI.RSI2 AND RSI.RSI1>RSI.RSI3 AND RSI.RSI2>49 ;
Y5:=CCI.CCI>=100 ;
Y6:=KDJ.K>KDJ.D;
Y7:=CJDX.K>CJDX.D AND CJDX.K>0 ;
YM:=Y1+Y2+Y3+Y4+Y5+Y6+Y7>=N2;
STICKLINE(XM AND YM AND GDKP,0,20,3.2,0),COLORRED;
STICKLINE(XM AND YM AND GDKP AND C/REF(C,1)>1.09,0,20,3,0),COLORYELLOW;
STICKLINE(XM AND YM AND GDKP AND C/REF(C,1)>1.09,0,20,1,0),COLORRED;
VAR11:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*40;
VAR12:=SMA(VAR11,5,1),COLORRED;
VAR13:=SMA(VAR12,7,1),LINETHICK1;
绝路航标:=IF(CROSS(VAR12,VAR13) AND VAR12<20,50,0),COLORWHITE;
副图3
DRAWGBK(C>0, RGB(180,170,170),RGB(183,164,165),0,'8',0);
STICKLINE(1,3.4,0,4,0),COLORFFA1E1;
RS2:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),2,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),2,1)))*(100);
STICKLINE((RS2 < 25),3.4,0,4,0),COLORFF1493;
1.44;
RS82:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),5,3))/(SMA(ABS(CLOSE - REF(CLOSE,1)),5,3)))*(100);
STICKLINE((RS82 < 25),2.5,2.9,3.5,0),COLORGREEN;
RS132:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),8,3))/(SMA(ABS(CLOSE - REF(CLOSE,1)),8,3)))*(100);
STICKLINE((RS132 < 25),2.1,1.7,3.5,0),COLORRED;
RS212:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),13,3))/(SMA(ABS(CLOSE - REF(CLOSE,1)),13,3)))*(100);
STICKLINE((RS212 < 25),1.3,0.9,3.5,0),COLORLIBLUE;
RS342:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),21,3))/(SMA(ABS(CLOSE - REF(CLOSE,1)),21,3)))*(100);
STICKLINE((RS342 < 25),0.5,0.1,3.5,0),COLORWHITE;
RS552:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),34,3))/(SMA(ABS(CLOSE - REF(CLOSE,1)),34,3)))*(100);
STICKLINE((RS552 < 25),-0.2,-0.5,3.5,0),COLORFF00FF;
STICKLINE(1,0,0.21,4,0),COLORBLACK;
VAR2:=LLV(LOW,8);
VAR93:=HHV(HIGH,21);
阶段卖: 3.2,COLORC6C600;
清仓: 3.5,COLORFF75FF;
动力线:= EMA((CLOSE-VAR2)/(VAR93-VAR2)*4,4);
STICKLINE(动力线>REF(动力线,1) ,动力线 ,REF(动力线,1),3.3 ,1),COLORYELLOW;
STICKLINE(动力线<=REF(动力线,1) ,动力线 ,REF(动力线,1),3.3 ,1),COLOR00FF00;
底部:=0.2,COLOR70DB93;
关注:=0.34,COLORYELLOW;
VAR12:=LLV(LOW,5);
VAR193:=HHV(HIGH,13);
动力:=EMA((CLOSE-VAR12)/(VAR193-VAR12),4)*4;
STICKLINE(动力> REF(动力,1) ,动力 ,REF(动力,1),2 ,1),COLORFF00FF;
STICKLINE(动力< REF(动力,1) ,动力 ,REF(动力,1),2 ,1),COLORWHITE;
VAR22:=LLV(LOW,3);
VAR293:=HHV(HIGH,5);
动:=EMA((CLOSE-VAR22)/(VAR293-VAR22),4)*4;
STICKLINE(动> REF(动,1) ,动 ,REF(动,1),0.3 ,1),COLORRED;
STICKLINE(动< REF(动,1) ,动 ,REF(动,1),0.3 ,1),COLORWHITE;
强弱界:1.75,POINTDOT,LINETHICK2,COLOR70DB93;
-0.5;