核心部分是一致的,只是“兄弟操盘”比“短线英豪”界面更花哨了些。现贴出二公式自己可以比较一下{兄弟操盘}动力线:ma(c,5),linethick3,color00ccff;牛熊线:ma(c,13),circledot,coloryellow;生命线:ma(c,34),circledot,colormagenta;ma05:=ma(c,5);ma10:=ma(c,10);ma20:=ma(c,20);ma30:=ma(c,30);五日乖离率:=(c-ma05)/ma05*100;bb05:=atan((ma05/ref(ma05,1)-1)*100)*180/3.1416;速度5:=sma(ema((ma05-ref(ma05,1))/ref(ma05,1),3)*100,3,1);加速度5:=ema((速度5-ref(速度5,1)),3),nodraw;if(bb05>30 and ma05>ref(ma05,1), ma05,draw**),linethick3,colorred;bb10:=atan((ma10/ref(ma10,1)-1)*100)*180/3.1416;if(bb05<0 and ma05<ref(ma05,1), ma05,draw**),linethick3,colorgreen;三拾日乖离率:=(c-ma30)/ma30*100,nodraw;var1:=(ma20-ma30)>ref((ma20-ma30),1) and ma20>ref(ma20,1) and ma30>ref(ma30,1);var2:=(ma30-ma20)<ref((ma30-ma20),1) and ma20<ref(ma20,1) and ma30<ref(ma30,1);bb30:=atan((ma30/ref(ma30,1)-1)*100)*180/3.1416;强势**:=filter(bb30>30 and bb10>45 and cross(bb05,60),10);加仓:=filter(count(cross(bb05,30),5)>=1 and ma05>ref(ma05,1) and 三拾日乖离率>ref(三拾日乖离率,1) and ma10>ref(ma10,1)and 加速度5>ref(加速度5,1) and 速度5>ref(速度5,1) ,10) ;**:=filter(count(cross(30,bb05),5)>=1 and (c>ma30 or o>ma30) and ma05<ref(ma05,1) and 三拾日乖离率<ref(三拾日乖离率,1) and ma10<ref(ma10,1),10);drawtext(加仓 ,low*0.98,'◆加二'),coloryellow;jc:=cross(0,五日乖离率) and 三拾日乖离率<ref(三拾日乖离率,1) and ma10>ref(ma10,1) ;减仓:=filter(jc,10);mr:=count(cross(五日乖离率,0),3)>=1 and 三拾日乖离率>ref(三拾日乖离率,1) and ma05>ref(ma05,1) and (c/ref(c,1)-1)*100>5 and ref(c,1)<ma30;买入:=filter(mr,10);drawtext(减仓,high*1.02,'◆风险'),colorcyan;drawtext(买入,low*0.96,'◆买二'),coloryellow;drawtext(** ,high*1.00,'◆**'),colorgreen;var21:=max(abs(high-amount/vol/100),abs(amount/vol/100-low));var3:=abs((open+close)/2-amount/vol/100);mv:=(var21+var3)/amount*vol*100*50;压力:ma(ref(hhv(c,30),1),2),color9dffff;支撑:ma(ref(llv(c,30),1),2),colorabff46; {彩色k线}tyx3:=ma(ref(hhv((c+l+o+h)/4,30),1),3);tyx4:=ma((c+l+o+h)/4,13);tyx5:=ema((c+l+o+h)/4,21);{空心红}stickline(c<tyx5 and c>o,h,l,0,0),colorred;stickline(c<tyx5 and c>o,c,o,3,1),colorred; {深绿}stickline(c<tyx5 and c<o,h,l,0,0),color007700;stickline(c<tyx5 and c<o,c,o,3,0),color005500;stickline(c<tyx5 and c<o,c,o,2,0),color006600;stickline(c<tyx5 and c<o,c,o,1,0),color007700;{蓝}stickline(c>tyx5 and c<o,h,l,0,0),colorffdd44;stickline(c>tyx5 and c<o,c,o,3,0 ),colorff7700;stickline(c>tyx5 and c<o,c,o,2,0 ),colorffaa22;stickline(c>tyx5 and c<o,c,o,1 ,0 ),colorffdd44; {黄}stickline(c>tyx5 and c>o,h,l,0,0 ),color00eeff;stickline(c>tyx5 and c>o,c,o,3,0 ),color00aaff; stickline(c>tyx5 and c>o,c,o,2,0 ),color00ccff; stickline(c>tyx5 and c>o,c,o,1,0 ),color00eeff;{粉红}stickline(c>tyx4 and c>o,h,l,0,0),colorff66aa;stickline(c>tyx4 and c>o,c,o,3,0 ),colorff11ff;stickline(c>tyx4 and c>o,c,o,2,0 ),colorff44ff;stickline(c>tyx4 and c>o,c,o,1,0 ),colorff66ff; {亮灰}stickline(c>tyx4 and c<o,h,l,0,0),color999999;stickline(c>tyx4 and c<o,c,o,3,0),color555555;stickline(c>tyx4 and c<o,c,o,2,0),color777777;stickline(c>tyx4 and c<o,c,o,1,0),color999999;{深红}stickline(c>tyx3 and c>o,h,l,0,0),color0000dd; stickline(c>tyx3 and c>o,c,o,3,0),color000099;stickline(c>tyx3 and c>o,c,o,2,0),color0000bb;stickline(c>tyx3 and c>o,c,o,1,0),color0000dd;{涨跌停k线}stickline(high=low and close=open and (close/ref(close,1))>1.048,high,low,3,0) ,colorred;stickline(high=low and close=open and (ref(close,1)/close)>1.048,high,low,3,0) ,color00ff00;{突破}stickline(ref(count(c<tyx3,5)=5,1) and c>tyx3 and c>o,c,o,1,0),color00ccff;{买卖主图}ma18:=ma(close,18);mtm:=c-ref(c,1);dx:=100*ema(ema(mtm,6),6)/ema(ema(abs(mtm),6),6);买:=llv(dx,2)=llv(dx,7) and count(dx<0,2) and cross(dx,ma(dx,2));drawtext(filter(买=1,5),low,'★买一'),colorred;加1:=ma18>=ref(ma18,3) and cross(close,ma18);drawtext(加1,low*0.99,'★加一'),colorcc66ff;卖一:=hhv(dx,2)=hhv(dx,7) and count(dx>50,2) and cross(ma(dx,2),dx);drawtext(filter(卖一=1,1),high*1.01,'★卖一'),colorgreen;{牛熊通吃}aa1:=amount/v;bb1:=l<aa1*0.9;cc1:=(c-ref(c,1))/ref(c,1)*100>1.2;dd1:=l<ma(c,5)*0.921;ee1:=v<ma(v,5)*1.5;ff1:=bb1 and cc1 and dd1 and ee1;drawtext(ff1,low*0.99,'老鼠仓'),color4080ff;{预测明天}xxs:=ma(low,5)*(1-5/100); xxs1:=ma(high,5)*(1+5/100); 均线:=c,colorgreen; aaaa:=close/ref(close,3)<=0.85 and cross(c,xxs) and c>ref(c,1),linethick0 ; drawtext(aaaa,l*0.95,'下影买'),colorred; bbaa:=cross(xxs1,c); drawtext(cross(xxs1,c),h,'开盘逃'),colorwhite; dddd:=cross(c,xxs1); drawtext(dddd,h,'明日走'),coloryellow; {兄弟指标} aaa:=ma(low,5)*(1-5/100); bbb:=(hhv(aaa,5)+llv(aaa,5))/2; drawtext(cross(bbb,l) and bbb>ref(bbb,1),l*0.98,'←兄弟回马枪'),colorwhite; {天河指标} dif:=ema(close,12)-ema(close,26); dea:=ema(dif,9); drawtext(ref(cross(dea,dif),1) and cross(dif,dea),l*0.97,'←天河回马抢'),colormagenta;{见好就收}vsr2:=(close-llv(low,20))/(hhv(high,20)-llv(low,20))*100;vsr3:=sma(vsr2,4,1);vsr4:=sma(vsr3,2,1);drawtext(vsr4>82 and vsr3>89,hhv(c,30)*1.02,'收'),colorgreen;==================={短线英豪}ma05:ma(c,5)linethick3,color00ccff;ma10:=ma(c,10);ma20:=ma(c,20);ma30:=ma(c,30);五日乖离率:=(c-ma05)/ma05*100;bb05:=atan((ma05/ref(ma05,1)-1)*100)*180/3.1416;速度5:=sma(ema((ma05-ref(ma05,1))/ref(ma05,1),3)*100,3,1);加速度5:=ema((速度5-ref(速度5,1)),3),nodraw;if(bb05>30 and ma05>ref(ma05,1), ma05,draw**),linethick3,colorred;bb10:=atan((ma10/ref(ma10,1)-1)*100)*180/3.1416;if(bb05<0 and ma05<ref(ma05,1), ma05,draw**),linethick3,colorgreen;三拾日乖离率:=(c-ma30)/ma30*100,nodraw;var1:=(ma20-ma30)>ref((ma20-ma30),1) and ma20>ref(ma20,1) and ma30>ref(ma30,1);var2:=(ma30-ma20)<ref((ma30-ma20),1) and ma20<ref(ma20,1) and ma30<ref(ma30,1);bb30:=atan((ma30/ref(ma30,1)-1)*100)*180/3.1416;强势**:=filter(bb30>30 and bb10>45 and cross(bb05,60),10);加仓:=filter(count(cross(bb05,30),5)>=1 and ma05>ref(ma05,1) and 三拾日乖离率>ref(三拾日乖离率,1) and ma10>ref(ma10,1)and 加速度5>ref(加速度5,1) and 速度5>ref(速度5,1) ,10) ;**:=filter(count(cross(30,bb05),5)>=1 and (c>ma30 or o>ma30) and ma05<ref(ma05,1) and 三拾日乖离率<ref(三拾日乖离率,1) and ma10<ref(ma10,1),10);drawtext(加仓 ,low*0.98,'←加仓'),colorred;jc:=cross(0,五日乖离率) and 三拾日乖离率<ref(三拾日乖离率,1) and ma10>ref(ma10,1) ;减仓:=filter(jc,10);mr:=count(cross(五日乖离率,0),3)>=1 and 三拾日乖离率>ref(三拾日乖离率,1) and ma05>ref(ma05,1) and (c/ref(c,1)-1)*100>5 and ref(c,1)<ma30;买入:=filter(mr,10);drawtext(减仓,high*1.02,'←风险'),colorcyan;drawtext(买入,low*0.98,'←买入'),coloryellow;drawtext(** ,high*1.02,'←**'),colorgreen;drawtext(强势**,low*0.98,'←强势**'),coloryellow;var21:=max(abs(high-amount/vol/100),abs(amount/vol/100-low));var3:=abs((open+close)/2-amount/vol/100);mv:=(var21+var3)/amount*vol*100*50;压力:ma(ref(hhv(c,30),1),2),color9dffff;支撑:ma(ref(llv(c,30),1),2),colorabff46; 20210311