副图公式 源码支持:手机/电脑
CAIH1:=(2*CLOSE+HIGH+LOW)/4;
CAIH2:=LLV(LOW,10);
CAIH3:=HHV(HIGH,10);
主力:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
超短:=(((主力-LLV(主力,21))/(HHV(主力,21)-LLV(主力,21)))*(4))*(25);
CAIH4:=EMA((CAIH1-CAIH2)/(CAIH3-CAIH2)*100,13),LINETHICK1;
CHA:=EMA(0.667*REF(CAIH4,1)+0.333*CAIH4,2);
CAIH5:=CROSS(CAIH4,CHA);
CAIH6:=BARSLAST(CAIH5)<4 ;
STICKLINE(CAIH4>CHA,CAIH4,CHA,4,0),COLORRED,LINETHICK2;
STICKLINE(CAIH4<=CHA,CAIH4,CHA,4,0),COLORYELLOW,LINETHICK2;
CAIH7:=(EMA(CLOSE,2) - EMA(CLOSE,150));
CAIH8:=EMA(CAIH7,100);
CAIH9:=(2*(CAIH7-CAIH8));
CAIH10:=((POW(CAIH9,3)*0.1)+POW(CAIH9,1));
牛:=IF((CAIH9>0.1),CAIH10,0);
前牛:=REF(牛,2);
警戒牛:20*(牛>0 AND 牛>前牛),STICK,COLORRED,LINETHICK1;
抄底:IF(CROSS(主力,13) AND 超短>主力 AND 超短>23,70,0),STICK,COLORYELLOW,LINETHICK3;
买牛:IF(CROSS(超短,85) AND CAIH6>0 AND (主力<40),50,0),STICK,COLORFF00FF,LINETHICK5;
选股公式源码
{选股公式一:买牛}
CAIH1:=(2*CLOSE+HIGH+LOW)/4;
CAIH2:=LLV(LOW,10);
CAIH3:=HHV(HIGH,10);
主力:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
超短:=(((主力-LLV(主力,21))/(HHV(主力,21)-LLV(主力,21)))*(4))*(25);
CAIH4:=EMA((CAIH1-CAIH2)/(CAIH3-CAIH2)*100,13),LINETHICK1;
CHA:=EMA(0.667*REF(CAIH4,1)+0.333*CAIH4,2);
CAIH5:=CROSS(CAIH4,CHA);
CAIH6:=BARSLAST(CAIH5)<4 ;
买牛:CROSS(超短,85) AND CAIH6>0 AND (主力<40),COLORFF00FF,LINETHICK5;
{选股公式二:抄底}
CAIH1:=(2*CLOSE+HIGH+LOW)/4;
CAIH2:=LLV(LOW,10);
CAIH3:=HHV(HIGH,10);
主力:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
超短:=(((主力-LLV(主力,21))/(HHV(主力,21)-LLV(主力,21)))*(4))*(25);
抄底:CROSS(主力,13) AND 超短>主力 AND 超短>23,COLORYELLOW,LINETHICK3;
{选股公式三:警戒牛}
CAIH7:=(EMA(CLOSE,2)-EMA(CLOSE,150));
CAIH8:=EMA(CAIH7,100);
CAIH9:=(2*(CAIH7 - CAIH8));
CAIH10:=((POW(CAIH9,3)*0.1)+POW(CAIH9,1));
牛:=IF((CAIH9>0.1),CAIH10,0);
前牛:=REF(牛,2);
警戒牛:20*(牛>0 AND 牛>前牛),COLORRED,LINETHICK1; |