九毛八公式指标
公式模块:
请老师帮忙大智慧的慢牛布林
把布林的上轨 中轨 下轨改为用打叉表示
慢牛布林
MIDA:=MA(C,20);
VART1:=POW((C-MIDA),2);
VART2:=MA(VART1,20);
VART3:=SQRT(VART2);
UPPERA:=MIDA+2*VART3;
LOWERA:=MIDA-2*VART3;
中轨:REF(MIDA,1);
上轨:REF(UPPERA,1);
下轨:REF(LOWERA,1);
DRAWICON(C>下轨 AND (REF(L,1)<REF(下轨,1) OR L<下轨) AND REF(C>下轨 AND (REF(L,1)<REF(下轨,1) OR L<下轨),1)=0,L*0.98,1);
DRAWICON(crOSS(上轨,C) AND REF(C,1)>REF(上轨,1),H*1.02,2);
DRAWICON(C>中轨 AND (REF(L,1)<REF(中轨,1) OR L<中轨) AND REF(C>中轨 AND (REF(L,1)<REF(中轨,1) OR L<中轨),1)=0,L*0.98,7);
DRAWICON(CROSS(中轨,C) AND REF(C,1)>REF(中轨,1),L*0.98,8);
涨停:=C>=REF(C,1)*1.099 AND C=H;
DRAWTEXT(涨停,L*0.97,'涨停'),COLOR00FFFF;
跌停:=C<=REF(C,1)/1.099 AND C=L;
STICKLINE(跌停,O,C,2.5,0),COLORFFFFFF;
STICKLINE(跌停,H,L,0,1),COLORFFFFFF;
七日:MA(CLOSE,7),COLORyellow,LINETHICK3;
誓发:MA(CLOSE,14),COLORRED,LINETHICK2;
半日:MA(CLOSE,25),COLORgreen,LINETHICK2;
久久:MA(CLOSE,99),COLORgreen;
Q6:=atan((MA(C,7)/ref(MA(C,7),1)-1)*100)*57.3;Q2:=atan((MA(C,14)/ref(MA(C,14),1)-1)*100)*57.3;
Q1:=atan((MA(C,25)/ref(MA(C,25),1)-1)*100)*57.3;Q:=atan((MA(C,34)/ref(MA(C,34),1)-1)*100)*57.3;
DRAWTEXTREL(0,100,'7日线夹角: '+NUMTOSTRN(Q6,2)+' 度'),COLOREEEEEE;
DRAWTEXTREL(220,100,'14日线夹角: '+NUMTOSTRN(Q2,2)+' 度'),COLOR00ddeE;
DRAWTEXTREL(450,100,'25日线夹角: '+NUMTOSTRN(Q1,2)+' 度'),COLOREE00EE;
DRAWTEXTREL(20,0,'上涨家数:'+NUMTOSTRN(DYNAINFO(69),0)+' 家'),COLOR0066FF;
DRAWTEXTREL(180,0,'下跌家数:'+NUMTOSTRN(DYNAINFO(70),0)+' 家'),COLOR99FF99;
DRAWTEXTREL(340,0,'平盘家数:'+NUMTOSTRN(DYNAINFO(71),0)+' 家'),COLOREEEEEE;
DRAWTEXTREL(20,50,STKLABEL+' '+STKNAME+' '+STRLEFT(BKNAME,40)),ColorFFB060;
STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW;
{以下设置个股信息}
DD:=FINANCE2(35)/10000;SS:=FINANCE2(37)/10000;
DRAWTEXTABS(15,65,'■总股本:'+NUMTOSTRN(DD,2)+'亿' +' 流通A股:'+NUMTOSTRN(SS,2)+'亿'),COLOR00FFFF;
MIDA:=MA(C,20);
VART1:=POW((C-MIDA),2);
VART2:=MA(VART1,20);
VART3:=SQRT(VART2);
UPPERA:=MIDA+2*VART3;
LOWERA:=MIDA-2*VART3;
中轨:REF(MIDA,1),CROSSDOT;
上轨:REF(UPPERA,1),CROSSDOT;
下轨:REF(LOWERA,1),CROSSDOT;
DRAWICON(C>下轨 AND (REF(L,1)<REF(下轨,1) OR L<下轨) AND REF(C>下轨 AND (REF(L,1)<REF(下轨,1) OR L<下轨),1)=0,L*0.98,1);
DRAWICON(CROSS(上轨,C) AND REF(C,1)>REF(上轨,1),H*1.02,2);
DRAWICON(C>中轨 AND (REF(L,1)<REF(中轨,1) OR L<中轨) AND REF(C>中轨 AND (REF(L,1)<REF(中轨,1) OR L<中轨),1)=0,L*0.98,7);
DRAWICON(CROSS(中轨,C) AND REF(C,1)>REF(中轨,1),L*0.98,8);
涨停:=C>=REF(C,1)*1.099 AND C=H;
DRAWTEXT(涨停,L*0.97,'%&&&&&%'),COLOR00FFFF;
跌停:=C<=REF(C,1)/1.099 AND C=L;
STICKLINE(跌停,O,C,2.5,0),COLORFFFFFF;
STICKLINE(跌停,H,L,0,1),COLORFFFFFF;
七日:MA(CLOSE,7),COLORyellow,LINETHICK3;
誓发:MA(CLOSE,14),COLORRED,LINETHICK2;
半日:MA(CLOSE,25),COLORgreen,LINETHICK2;
久久:MA(CLOSE,99),COLORgreen;
Q6:=atan((MA(C,7)/ref(MA(C,7),1)-1)*100)*57.3;Q2:=atan((MA(C,14)/ref(MA(C,14),1)-1)*100)*57.3;
Q1:=atan((MA(C,25)/ref(MA(C,25),1)-1)*100)*57.3;Q:=atan((MA(C,34)/ref(MA(C,34),1)-1)*100)*57.3;
DRAWTEXTREL(0,100,'7日线夹角: '+NUMTOSTRN(Q6,2)+' 度'),COLOREEEEEE;
DRAWTEXTREL(220,100,'14日线夹角: '+NUMTOSTRN(Q2,2)+' 度'),COLOR00DDEE;
DRAWTEXTREL(450,100,'25日线夹角: '+NUMTOSTRN(Q1,2)+' 度'),COLOREE00EE;
DRAWTEXTREL(20,0,'上涨家数:'+NUMTOSTRN(DYNAINFO(69),0)+' 家'),COLOR0066FF;
DRAWTEXTREL(180,0,'下跌家数:'+NUMTOSTRN(DYNAINFO(70),0)+' 家'),COLOR99FF99;
DRAWTEXTREL(340,0,'平盘家数:'+NUMTOSTRN(DYNAINFO(71),0)+' 家'),COLOREEEEEE;
DRAWTEXTREL(20,50,STKLABEL+' '+STKNAME+' '+STRLEFT(BKNAME,40)),ColorFFB060;
STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW;
{以下设置个股信息}
DD:=FINANCE2(35)/10000;SS:=FINANCE2(37)/10000;
DRAWTEXTABS(15,65,'■总股本:'+NUMTOSTRN(DD,2)+'亿' +' 流通A股:'+NUMTOSTRN(SS,2)+'亿'),COLOR00FFFF;