均价线
V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
V2:=(1-7/100)*(DMA(CLOSE,V1));
V3:=(1+7/100)*(DMA(CLOSE,V1));
获利:=WINNER(CLOSE)*100;
十涨:=(c-ref(c,HHVBARS(c,10)))/ref(c,HHVBARS(c,10))*100;
K1:=3.2*SLOPE(EMA(CLOSE,3),2);
结: EMA(EMA(EMA(HIGH+K1,3),4),4)*1.15,COLORwhite,LINETHICK2,PRECIS2;
止: EMA(EMA(EMA(HIGH+K1,3),4),4)*1.1,COLORGRAY,LINETHICK1,PRECIS2;
险: EMA(EMA(EMA(HIGH+K1,3),4),4)*1.05,COLORYELLOW,LINETHICK1,PRECIS2;
阻:REF(V3,1),color6e6eff,LINETHICK3,PRECIS2;
平: EMA(EMA(EMA(HIGH+K1,3),4),4),LINETHICK2,PRECIS2;
回: EMA(EMA(EMA(HIGH+K1,3),4),4)*0.95,COLORGREEN,LINETHICK2,PRECIS2;
支:REF(V2,1),color5e5eff,LINETHICK3,PRECIS2;
反: EMA(EMA(EMA(HIGH+K1,3),4),4)*0.90,COLORBLUE,LINETHICK2,PRECIS2;
安: EMA(EMA(EMA(HIGH+K1,3),4),4)*0.85,COLORwhite,LINETHICK2,PRECIS2;
摆动比:=(支-ref(支,1))/ref(支,1)*1000;
M1R:AMOUNT/VOL/100,LINETHICK0,PRECIS2,COLORwhite;
M10R:SUM(AMOUNT,10)/SUM(VOL,10)/100,LINETHICK0,PRECIS2,COLORwhite;
现抄底:=(C-M10R)/M10R*100;
前抄底:=REF((C-M10R)/M10R*100,1);
现排名:=INTPART(现抄底*100);
前排名:=INTPART(前抄底*100);
排名差:=现排名-前排名;
十日排名差:=sum(排名差,10);
低点:=C<O and c<回 and 摆动比<0 and 现排名<-30 AND 前排名<-20 AND 排名差<0 AND 现排名>十日排名差 AND 前排名>十日排名差 AND 排名差>十日排名差 AND 十日排名差<-600;
排名低点:=C<O AND c<回 and 低点 and 摆动比<0 and ref(低点,1) AND 十日排名差<ref(十日排名差,1)-125;
低点启动:=c<回 and 摆动比<0 and 现排名<-30 AND 前排名<-30 AND 排名差>0 AND 现排名>十日排名差 AND 排名差>十日排名差 AND 十日排名差<-900;
相对高点:=c>回 and 现排名>0 AND 前排名>0 AND 排名差>0 AND 现排名<十日排名差 AND 前排名<十日排名差 AND 排名差<十日排名差 AND 十日排名差>0;
VERTLINE(相对高点=1,0),COLORRED;
DRAWTEXT(相对高点=1,h,'*相对高点'),COLORRED;
价幅:(M1R-M10R)/M10R*100,LINETHICK0,PRECIS1,COLORRED;
幅差:(价幅-HHV(价幅,10))/2,LINETHICK0,PRECIS1;
BBB:=(c-MA(c,10))/MA(c,10)*100;
HHH:=(BBB+MA(BBB,10))/4;
短线:HHH,LINETHICK0,PRECIS1;
xg1:=平/L>1.1 AND 低点 AND (回>支 and (C-支)/c*100<=0) ;
xg2:=平/L>1.1 AND 排名低点 AND (回<支 and (C-反)/c*100<=0);
xg10:if(xg1=1 ,l,安*0.95),COLORFF00FF,PRECIS2,LINETHICK3,LAYER0;
FILLRGN(xg10,安*0.95,l<>安*0.95,RGB(255,255,0));
xg20:if(xg2=1,l,安*0.95),COLORFF00FF,PRECIS2,LINETHICK3,LAYER0;
FILLRGN(xg10,安*0.95,l<>安*0.95,RGB(0,200,0));
DRAWTEXT(低点=1,L,'*单低点'),COLORGREEN;
DRAWTEXT(排名低点=1,L*0.98,'*双低点'),COLORGREEN;
DRAWTEXT(xg1=1 or xg2=1,L*0.94,'*低点选股'),COLORGREEN;
DRAWTEXT(低点启动=1,L,'*低点启动'),COLORRED;
DRAWICON(CROSS(短线,价幅) AND C<O ,h,12);
DRAWTEXT(CROSS(短线,价幅) AND C<O ,l,'*量背急跌'),COLORred;
VERTLINE(低点=1,2),COLORGREEN;
VERTLINE(排名低点=1,0),COLORGREEN;
VERTLINE(低点启动=1,2),COLORRED;
STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,3,0),COLOR00FFFF;
STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,3,0),COLORGREEN;
DRAWTEXTABS(1 ,25 ,'*股票状态:'+'★获利比例:'+NUMTOSTRN(获利,1)+'% '+
'★10日涨幅:'+NUMTOSTRN(十涨,1)+'% '+
ifs("上涨.上涨"=1,' ★上涨',' ')+ifs("下跌.下跌"=1,' ★下跌',' ')+ifs(DYNAINFO(4)=0,'停牌',' ')+
ifs("组合抄底.抄底组合"=1,' 抄底组合',' ')+ifs("三组抄底.三组抄底"=1,' 三组抄底',' ')+
ifs("三组抄底.三组抄底"=1 and "双底低点.双底低点"=1,' 双底三组抄底',' ')+
ifs("五组抄底.五组抄底"=1,' 五组极限抄底',' ')+ifs("五组抄底.五组抄底"=1 and "双底低点.双底低点"=1,' 双底五组极限抄底',' ')+
ifs("双底低点.双底低点"=1,' 双底低点',' ')+ifs("组合抄底.抄底组合"=1 AND "双底低点.双底低点"=1,' 双底抄底',' ')+
ifs("启动介入.启动介入"=1,' 启动介入',' ')+ifs("六指翻红.六指翻红"=1,' 六指翻红',' ')+
ifs("风险高点.风险高点"=1,' 风险高点',' ')+ifs("量背急跌.量背急跌"=1,' 量背急跌',' ')),COLORYELLOW;
DRAWTEXTABS(1 ,70 ,'*所属板块:★'+BKNAME),COLORYELLOW;
MA5:MA(C,5),COLOR0000FF,DOTLINE;
MA13:MA(C,13),Color00FF00,DOTLINE;
MA21:MA(C,21),COLORA4A0A0,DOTLINE;
MA34:MA(C,34),ColorFFFF00,DOTLINE;
MA55:MA(C,55),COLORFF00FF,DOTLINE;
MA89:MA(C,89),color800080,DOTLINE;
MA144:MA(C,144),COLOR000080,DOTLINE;
MA233:MA(C,233),COLORFF0000,LINETHICK0;
DRAWTEXTABS(0,10,'★MA5:'+NUMTOSTRN(MA5,2)),COLOR0000FF;
DRAWTEXTABS(90,10,'★MA13:'+NUMTOSTRN(MA13,2)),Color00FF00;
DRAWTEXTABS(180,10,'★MA21:'+NUMTOSTRN(MA21,2)),COLORA4A0A0;
DRAWTEXTABS(270,10,'★MA34:'+NUMTOSTRN(MA34,2)),ColorFFFF00;
DRAWTEXTABS(360,10,'★MA55:'+NUMTOSTRN(MA55,2)),COLORFF00FF;
DRAWTEXTABS(450,10,'★MA89:'+NUMTOSTRN(MA89,2)),color800080;
DRAWTEXTABS(540,10,'★MA144:'+NUMTOSTRN(MA144,2)),COLOR000080;
DRAWTEXTABS(630,10,'★MA233:'+NUMTOSTRN(MA233,2)),COLORFF0000;
DRAWTEXTABS(1 ,55 ,'*均线点位:'+'目前价位'+c+'元,位于'+
ifs("大于5日.A"=1,'大于5日均线'+
'(>'+MA5+'元'+')','')+
ifs("5-13日.A"=1,' MA5-13日均线间'+
'('+MA13+'-'+MA5+'元'+')','')+
ifs("13-21日.A"=1,' MA13-21日均线间'+
'('+MA21+'-'+MA13+'元'+')','')+
ifs("21-34日.A"=1,' MA21-34日均线间'+
'('+MA34+'-'+MA21+'元'+')','')+
ifs("34-55日.A"=1,' MA34-55日均线间'+
'('+MA55+'-'+MA34+'元'+')','')+
ifs("55-89日.A"=1,' MA55-89日均线间'+
'('+MA89+'-'+MA55+'元'+')','')+
ifs("89-144日.A"=1,' MA89-144日均线间'+
'('+MA144+'-'+MA89+'元'+')','')+
ifs("144-233.A"=1,' MA144-233日均线间'+
'('+MA233+'-'+MA144+'元'+')','')+
ifs("小于233.A"=1,' MA小于233日均线'+
'(<'+MA233+'元'+')','')),COLORYELLOW;
DRAWTEXTABS(1 ,40 ,'*均价点位:'+'目前价位'+c+'点,位于'+
ifs(c<安,'小于安全位'+'('+安+')',ifs(c<反,'反弹位'+'('+反+')',ifs(c<支,'支撑位'+'('+支+')',
ifs(c<回,'回调位'+'('+回+')',ifs(c<平,'平均位'+'('+平+')',ifs(c<阻,'阻力位'+'('+阻+')',
ifs(c<险,'危险位'+'('+险+')',ifs(c<止,'止赢位'+'('+止+')','大于了结位'+'('+结+')'))))))))+'--'+
ifs(c>结,'大于了结位'+'('+结+')',ifs(c>止,'止赢位'+'('+止+')',ifs(c>险,'危险位'+'('+险+')',
ifs(c>阻,'阻力位'+'('+阻+')',ifs(c>平,'平均位'+'('+平+')',ifs(c>回,'回调位'+'('+回+')',
ifs(c>支,'支撑位'+'('+支+')',ifs(c>反,'反弹位'+'('+反+')','小于安全位'+'('+安+')'))))))))),coloryellow;
价位抄底:=IF(C<反 AND C<安 and c<o*0.98,1,0) ;
排名抄底:=IF("排名.排名抄底"<-2100 and c<o*0.98,1,0);
L极品底:=IF("排序.极品底"=1 and c<o*0.98,1,0) ;
L底背入:=IF("排序.底背入"=1 and c<o*0.98,1,0);
C极品底:=IF("排序C.极品底"=1 and c<o*0.98,1,0);
C底背入:=IF("排序C.底背入"=1 and c<o*0.98,1,0);
立即抄底:=IF("排序M.立即抄底"=1 and c<o*0.98,1,0) ;
组合抄底:价位抄底+排名抄底+L极品底+L底背入+C极品底+C底背入+立即抄底,LINETHICK0 ;
DRAWTEXT(组合抄底=1 AND C<反 AND C<回 ,L*0.95,'@1'),COLORGREEN;
DRAWTEXT(组合抄底=2 AND C<反,L*0.95,'@2'),COLORGREEN;
DRAWTEXT(组合抄底=3 AND C<安,L*0.95,'@3'),COLORGREEN;
DRAWTEXT(组合抄底=4 AND C<安,L*0.95,'@4'),COLORGREEN;
DRAWTEXT(组合抄底=5 AND C<安,L*0.95,'@5'),COLORGREEN;
DRAWTEXT(组合抄底=6 AND C<安,L*0.95,'@6'),COLORGREEN;
DRAWTEXT(组合抄底=7 AND C<安,L*0.95,' |