副图公式 源码支持:手机/电脑
GUA1:=100*(C-REF(C,12))/REF(C,12);
GUA2:=((H+L+C)/3-MA((H+L+C)/3,88))/(0.015*AVEDEV((H+L+C)/3,88));
GUA3:=1.07*DMA(C,ABS((2*C+H+L)/4-MA(C,26))/MA(C,26));
GUA4:=MA(ATAN(GUA3-REF(GUA3,1)),3);
GUA5:=IF((C>O OR C<O) AND H>=REF(C,1),ATAN(MA(H,5)*1.02-REF(MA(C,5)*1.02,1)),0);
GUA6:=IF((C>O OR C<O) AND H<REF(C,1),-ATAN(REF(MA(C,5)*1.02,1)-MA(H,5)*1.02),0);
GUA7:=MA(REF((GUA5+GUA6),1),26);
GUA8:=GUA4>GUA7 AND GUA4>REF(GUA4,1);
牛股:GUA8 AND GUA2>200 AND GUA1>20 AND C>REF(C,1),COLORRED;
GUP0:=(MA(C,3));
GUP1:=(MA(C,5));
GUP2:=(MA(C,10));
GUP3:=(MA(C,20));
GUP4:=(((((MA(C,3)) > (REF(MA(C,3),1))) AND ((MA(C,5)) > (REF(MA(C,5),1)))) AND (C > (MA(C,3)))) AND ((MA(C,3)) > (MA(C,5))));
GUP5:=(((ATAN(((GUP0 / (REF(GUP0,1))) - 1) * 100)) * 180) / (3.1416));
GUP6:=(((ATAN(((GUP1 / (REF(GUP1,1))) - 1) * 100)) * 180) / (3.1416));
GUP7:=(((ATAN(((GUP2 / (REF(GUP2,1))) - 1) * 100)) * 180) / (3.1416));
GUP8:=(((ATAN(((GUP3 / (REF(GUP3,1))) - 1) * 100)) * 180) / (3.1416));
杀入:IF(GUP5>45 AND GUP6>45 AND GUP7>60 AND GUP8>45 AND MA(C,250)>REF(MA(C,250),1),1,0),COLORLIRED;
TYP:=IF((H>C AND C>O) OR (H>O AND O>=C),C,H)+IF((L<C AND C<O) OR(L<O AND O<=C),CLOSE,LOW)/3;
CCI:=EMA((TYP-MA(TYP,84.0270012))/(0.015*AVEDEV(TYP,84.0270012)),2.0332),COLORWHITE;
GUB1:=CCI,COLORWHITE;
GUB2:=HHV(MA(CCI,5),21),LINETHICK2,COLORGREEN;
GUB3:=GUB1>GUB2;
AHC1:=CLOSE*VOL;
AHC2:=EMA((EXPMA(AHC1,3)/EXPMA(VOL,3)+EXPMA(AHC1,6)/EXPMA(VOL,6)+EXPMA(AHC1,12)/EXPMA(VOL,12)+EXPMA(AHC1,24)/EXPMA(VOL,24))/4,13);
GUB4:=1.13*AHC2;
ZT2:=REF(C,1)*1.1-C<0.01 AND H=C;
龙头:GUB3 AND CROSS(C,GUB4) AND ZT2,COLORYELLOW;
选股公式源码
{选股公式一:牛股}
GUA1:=100*(C-REF(C,12))/REF(C,12);
GUA2:=((H+L+C)/3-MA((H+L+C)/3,88))/(0.015*AVEDEV((H+L+C)/3,88));
GUA3:=1.07*DMA(C,ABS((2*C+H+L)/4-MA(C,26))/MA(C,26));
GUA4:=MA(ATAN(GUA3-REF(GUA3,1)),3);
GUA5:=IF((C>O OR C<O) AND H>=REF(C,1),ATAN(MA(H,5)*1.02-REF(MA(C,5)*1.02,1)),0);
GUA6:=IF((C>O OR C<O) AND H<REF(C,1),-ATAN(REF(MA(C,5)*1.02,1)-MA(H,5)*1.02),0);
GUA7:=MA(REF((GUA5+GUA6),1),26);
GUA8:=GUA4>GUA7 AND GUA4>REF(GUA4,1);
牛股:GUA8 AND GUA2>200 AND GUA1>20 AND C>REF(C,1),COLORRED;
{选股公式二:杀入}
GUP0:=(MA(C,3));
GUP1:=(MA(C,5));
GUP2:=(MA(C,10));
GUP3:=(MA(C,20));
GUP4:=(((((MA(C,3)) > (REF(MA(C,3),1))) AND ((MA(C,5)) > (REF(MA(C,5),1)))) AND (C > (MA(C,3)))) AND ((MA(C,3)) > (MA(C,5))));
GUP5:=(((ATAN(((GUP0 / (REF(GUP0,1))) - 1) * 100)) * 180) / (3.1416));
GUP6:=(((ATAN(((GUP1 / (REF(GUP1,1))) - 1) * 100)) * 180) / (3.1416));
GUP7:=(((ATAN(((GUP2 / (REF(GUP2,1))) - 1) * 100)) * 180) / (3.1416));
GUP8:=(((ATAN(((GUP3 / (REF(GUP3,1))) - 1) * 100)) * 180) / (3.1416));
杀入:IF(GUP5>45 AND GUP6>45 AND GUP7>60 AND GUP8>45 AND MA(C,250)>REF(MA(C,250),1),1,0),COLORLIRED;
{选股公式三:龙头}
TYP:=IF((H>C AND C>O) OR (H>O AND O>=C),C,H)+IF((L<C AND C<O) OR(L<O AND O<=C),CLOSE,LOW)/3;
CCI:=EMA((TYP-MA(TYP,84.0270012))/(0.015*AVEDEV(TYP,84.0270012)),2.0332),COLORWHITE;
GUB1:=CCI,COLORWHITE;
GUB2:=HHV(MA(CCI,5),21),LINETHICK2,COLORGREEN;
GUB3:=GUB1>GUB2;
AHC1:=CLOSE*VOL;
AHC2:=EMA((EXPMA(AHC1,3)/EXPMA(VOL,3)+EXPMA(AHC1,6)/EXPMA(VOL,6)+EXPMA(AHC1,12)/EXPMA(VOL,12)+EXPMA(AHC1,24)/EXPMA(VOL,24))/4,13);
GUB4:=1.13*AHC2;
ZT2:=REF(C,1)*1.1-C<0.01 AND H=C;
龙头:GUB3 AND CROSS(C,GUB4) AND ZT2,COLORYELLOW; |