公式一:要求:出现柱体时,并且今天的柱体高度大于昨天的柱体高度选股。
公式源码:N:=9;6
;M1:=3;
M2:=3;
P:=9;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
JJ:=P*(3*D-2*K);
J:=((3 * K) - (2 * D));
MAIRU:= CROSS(K,D) AND K<20;
MAICHU:= CROSS(D,K) AND D>80;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,13);
VAR6:=HHV(VAR4,13);
VAR7:=IF(MA(CLOSE,34),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
吸筹:VAR9,LINETHICK2,COLORF00FF0;
STICKLINE(VAR9>-120,0,VAR9,8,1),COLORF00FF0;
快线:(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,LINETHICK2,COLORRED;
慢线:SMA(快线,M1,1),COLORCYAN;
{空:SMA(慢线,M2,1),COLOR00FF00;
牛股:IF(BARSLAST(CROSS(慢线,空))<P AND CROSS(慢线,空) AND 慢线<20,90,0),STICK,COLORFF937F;
STICKLINE(牛股,0,90,1,0),COLORFF937F;}
BB:=IF(BARSLAST(CROSS(慢线,快线))>=3 AND CROSS(快线,慢线) AND 慢线<30,20,0);
{STICKLINE(BB,0,100,7,1),COLORYELLOW;
DRAWICON(BB>0,10,7);}
AA:=IF(BARSLAST(CROSS(快线,慢线))>=4 AND CROSS(慢线,快线) AND 快线>50,20,0);
{STICKLINE(AA,80,100,7,1),COLOR00FF00;}
{DRAWICON(AA>0,90,8);};
公式二:出现红箭头时选股:
公式源码:
N:=17;
CC:(C+O+H+L)/4,COLORWHITE;
{工作线}中:EMA(CC,N),COLORGREEN;
H_L:=HHV(H,120)-LLV(L,120);
BIAS :=(CC-中)/中;
BIAS1:=ABS(BIAS);
偏差:=中*REF(DMA(BIAS1,0.5),1);
P:=1.382;
上: 中 + P*偏差,COLORMAGENTA;
下: 中 - P*偏差,COLORMAGENTA;
{买卖信号--供参考}
FN:=8;
RB:= REF(BIAS1,1)>0.03;
买:=CROSS(CC,下) AND RB;
相对低点:= LLV(L,FN/2)=LLV(L,FN) AND CC>=LLV(L,FN)*1.08 ;
买信号:=买 OR ((相对低点 OR CROSS(CC,中)) AND COUNT(买,FN)=0) ;
DRAWICON(FILTER(买信号,FN/2),L-H_L*0.07,1);{买信号B}
卖:=CROSS(上,CC) AND RB;
相对高点:= HHV(H,FN/2)=HHV(H,FN) AND CC<=HHV(H,FN)*0.92 ;
卖信号:=卖 OR ((相对高点 OR CROSS(中,CC)) AND COUNT(卖,FN)=0) ;
DRAWICON(FILTER(卖信号,FN/2),H+H_L*0.07,2);{卖信号S};
{EMA(HHV(上,5),2),COLORBROWN;
EMA(LLV(下,5),2),COLORBROWN;}
{原布林上:中+2*STD(C,N),COLORGRAY;
原布林下:中-2*STD(C,N),COLORGRAY;};