第一個(gè)公式:
{主力進(jìn)場(chǎng)}
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,38);
VAR6:=HHV(VAR4,38);
VAR7:=IF(LLV(LOW,90),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
DD:=VAR8>5;
買入:=IF((COUNT(DD,2)=2),-20,0);
VAR1S:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2S:=SMA(ABS(LOW-VAR1S),13,1)/SMA(MAX(LOW-VAR1S,0),10,1);
VAR3S:=EMA(VAR2S,10);
VAR4S:=LLV(LOW,33);
VAR5S:=EMA(IF(LOW<=VAR4S,VAR3S,0),3);
主力進(jìn)場(chǎng):=IF(VAR5S>REF(VAR5S,1),VAR5S,0)*1.1,LINETHICK1,COLOR00FFFF;
STICKLINE(VAR5S>REF(VAR5S,1),0,VAR5S,4,1 ),COLORRED;
洗盤:=IF(VAR5S<REF(VAR5S,1),VAR5S,0),COLORGREEN;
低買:IF((CROSS(洗盤,主力進(jìn)場(chǎng))AND 買入=-20),100,0),STICK,COLORFF9150,LINETHICK3;
------------------------------------------------------------------------------------------
第二個(gè)公式:
{主力吸籌}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
JJ:=9*(3*D-2*K);
J:=((3 * K) - (2 * D));
MAIRU:= CROSS(K,D) AND K<20;
MAICHU:= CROSS(D,K) AND D>80;
快線:(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,LINETHICK2,COLORRED;
慢線:SMA(快線,3,1),COLORCYAN;
空:SMA(慢線,3,1),COLOR00FF00;
牛股:IF(BARSLAST(CROSS(慢線,空))<9 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,-20,3,0),COLORYELLOW;
低買:IF(BB,-20,-40),COLORYELLOW;
DRAWICON(BB>0,-35,7);
AA:=IF(BARSLAST(CROSS(快線,慢線))>=4 AND CROSS(慢線,快線) AND 快線>50,20,0);
STICKLINE(AA,100,120,3,0),COLOR00FF00;
高賣:IF(AA,120,140),COLOR00FF00;
DRAWICON(AA>0,150,8);
|