副图公式源码支持 手机/电脑
DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
CHA1:=EMA(DIFF,5)*100;
CHA2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*100;
动能A:=CHA2,COLOR00FFFF,LINETHICK2;
动能B:=CHA1,COLORFFFF00,LINETHICK2;
DRAWBAND(动能A,RGB(200,0,200),动能B,RGB(200,200,200));
STICKLINE(CHA2>0,0,CHA2,0.5,0),COLORRED;
STICKLINE(CHA2<0,0,CHA2,0.5,1),COLORGREEN;
CHAA:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;
CHBB:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLOR1010FF;
CHAA1:=STICKLINE(动能A<动能B,0,-3,2,0);
CHBB1:=STICKLINE(动能A>动能B,0,3,2,0);
持币:CHAA1,COLOR00FF00;
持股:CHBB1,COLORRED;
抄底:STICKLINE(CROSS(CHBB,9),0,10,1.7,0),COLORFF00FF;
STICKLINE(CROSS(CHBB,9),10,20,1.5,0),COLOR00FFFF;
STICKLINE(CROSS(CHBB,9),20,30,1,0),COLORRED;
DRAWTEXT(CROSS(CHBB,9),30,'抄底'),COLOR00FFFF;
BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:MA(BIAS,3),COLORFFFF00,LINETHICK0;
底1:IF(乖离<-18,12,0),COLORFF00FF,LINETHICK2;
底2:IF(乖离<-12,10,0), COLOR0000CC,LINETHICK2;
底3:IF(乖离<-6,8,0),COLORFFFF00,LINETHICK2;
底4:IF(乖离<0,6,0),COLOR00FFFF,LINETHICK2;
选股公式源码
{选股公式一:抄底}
DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
CHA1:=EMA(DIFF,5)*100;
CHA2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*100;
CHAA:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;
CHBB:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLOR1010FF;
抄底:CROSS(CHBB,9);
{选股公式二:底1}
BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3),COLORFFFF00,LINETHICK0;
底1:乖离<-18,COLORFF00FF,LINETHICK2;
{选股公式三:底2}
BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3),COLORFFFF00,LINETHICK0;
底2:乖离<-12, COLOR0000CC,LINETHICK2;
{选股公式四:底3}
BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3),COLORFFFF00,LINETHICK0;
底3:乖离<-6,COLORFFFF00,LINETHICK2;
{选股公式五:底4}
BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3),COLORFFFF00,LINETHICK0;
底4:乖离<0,COLOR00FFFF,LINETHICK2; |