DRAWBAND(MA(C,60),RGB(55,0,0),MA(C,120),RGB(0,90,0));
DRAWBAND(MA(CLOSE,60),RGB(155,5,50),MA(CLOSE,120),RGB(83,168,68));
DRAWBAND(MA(CLOSE,5),RGB(255,80,50),MA(CLOSE,10),RGB(68,100,80));
M5:MA(CLOSE,5),COLORWHITE;
M10:MA(CLOSE,10),COLORYELLOW;
M20:MA(CLOSE,20),COLORMAGENTA;
M40:=MA(CLOSE,40);
M60:MA(CLOSE,60),COLORGREEN;
M120:MA(CLOSE,120),COLORLIMAGENTA;
M240:MA(CLOSE,240),COLORBLUE;
DRAWKLINE(H,O,L,C);
反弹托:=M5>M20 AND M5>M20 AND M20<M60 AND M60<M120 AND CROSS(M10,M20);
月价托:=M5>M20 AND M20>M60 AND M60>M120 AND M5>M20 AND CROSS(M10,M20);
季价托:=M20>M60 AND M20>M60 AND CROSS(M20,M60);
短长价托:=M5>M60 AND M5>M10 AND CROSS(M10,M60);
半年托:=M60>M120 AND M60>M120 AND CROSS(M60,M120);
熊来:=M60<M120 AND M60<M120 AND CROSS(M120,M60);
年托:=M120>M240 AND M120>M240 AND CROSS(M120,M240);
月蜘蛛:=M5>M10 AND M10>M20 AND CROSS(M5,M20)AND CROSS(M10,M20);
DRAWTEXT(月蜘蛛,M20-0.22,'金蜘蛛'),COLORMAGENTA;
DRAWTEXT(反弹托,M20-0.12,'反弹托'),COLORMAGENTA;
DRAWTEXT(月价托 ,M20-0.02,'月托'),COLORMAGENTA;
DRAWTEXT(季价托,M60-0.1,'季托'),COLORMAGENTA;
DRAWTEXT(短长价托,L+0.3,'短长托'),COLOR36C0C1;
DRAWTEXT(半年托,M120-0.08,'牛市来'),COLORRED;
DRAWTEXT(熊来,M60+0.08,'小心熊'),COLORGREEN;
DRAWTEXT(年托,M240-0.12,'年托'),COLORRED;
压:=M10<M20 AND M20>M10 AND CROSS(M20,M10);
DRAWTEXT(压,M20+0.05,'月压'),COLORYELLOW;
VOL5:=MA(VOL,5),COLORWHITE;
VOL10:=MA(VOL,10),COLORYELLOW;
VOL40:=MA(VOL,40),COLORFF00FF ;
量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)<REF(VOL40,1);
DRAWTEXT(量托,L-0.1,'量托'),COLORWHITE;
AA1:=BARSLAST(M60>M20 AND (M20=M10 OR M20>M10));
BB1:=REF(COUNT(C<M60,AA1)=AA1,1);
CC1:=CROSS(C,M60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;
芙蓉出水:=BB AND CC1,COLOR00FF00;
DRAWTEXT(芙蓉出水,H+0.12,'芙蓉出水'),COLORFF00FF;
STICKLINE(芙蓉出水,H,L,0.5,1),COLORFF00FF;
STICKLINE(芙蓉出水,O,C,4,1),LINETHICK2,COLORFF00FF;
M1:=MA(CLOSE,5);
M2:=MA(CLOSE,10);
M3:=MA(CLOSE,30);
ZJ:=AMOUNT/10000;{资金}
一穿三:=M1>O AND M2>O AND M3>O AND M1<C AND M2<C AND M3<C AND CLOSE>OPEN ;
DRAWTEXT(一穿三,L-0.018,'穿三线'),COLORFF00FF;
C6:=REF(C,1);
涨停:=IF((C-C6)*100/C6>=(10-0.01*100/C6),1,0);
STICKLINE(涨停,OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORYELLOW;
{压力一}
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
前期高位:REF(C,BARSLAST(HD)),COLOR00FF00,POINTDOT;
STICKLINE(C,前期高位,前期高位,8,0),COLORYELLOW;
CX:=HHV(C,60),COLORGREEN,LINETHICK2;
DRAWTEXT_FIX(1,0,0.95,0,'公众号:指标公式研究所'),COLORMAGENTA;
五顺第一阳:=C>M5 AND M5>M10 AND M10>M20 AND M20>M60 AND M60>M120;
金桔:=五顺第一阳 AND REF(NOT(五顺第一阳),1) AND C>REF(C,1);
DRAWICON(金桔,H*1.046,17);
五上第一阳:=C>MAX(M5,MAX(M10,M20)) AND M60>M120 AND C>M60;
三星:=五上第一阳 AND REF(NOT(五上第一阳),1) AND C>REF(C,1);
DRAWICON(三星,H*1.028,18);
五上第一阳1:=C>MAX(M5,MAX(M10,M20)) AND C>MAX(M60,M120) AND NOT(M60>M120);
青苹果:=五上第一阳1 AND REF(NOT(五上第一阳1),1) AND C>REF(C,1);
DRAWICON(青苹果,H*1.0,16);
三顺第一阳:=C>M5 AND M5>M10 AND M10>M20;
桔:=三顺第一阳 AND REF(NOT(三顺第一阳),1) AND C>REF(C,1);
DRAWICON(桔,H*0.95,23);
三上第一阳:=C>MAX(M5,MAX(M10,M20));
星:=三上第一阳 AND REF(NOT(三上第一阳),1) AND C>REF(C,1);
DRAWICON(星,H*0.93,22);
前期低位:=REF(C,BARSLAST(LD)),COLORFF00FF,POINTDOT;
STICKLINE(C,前期低位,前期低位,5,0),COLORFF00FF;
收盘价:IF(C,CONST(C),DRAWNULL),COLORMAGENTA,DOTLINE;