【同花順】和主力同步指標(biāo)公式
攻城獅 2015.11.08 09:10
N1:=39;
N2:=8;
N3:=7;
N:=34;
M3:=3;
mp0:0,color00fffF;mp100:100,color0000fF;
資金1:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),1),POINTDOT,color00fffF;//資金1線(xiàn)大>50 <20 >昨天[為買(mǎi)],資金1線(xiàn)>50 下穿50線(xiàn) <昨天 [為賣(mài)]
資金3:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),color00fffF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CLOSE/OPEN>1.08,0.5,0.3,0,’1日資金1線(xiàn)’);
X1:=100*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1));//X1>50>VAR1 VAR1=VAR2<昨天VAR1<昨天X1[為買(mǎi)]
Var1:=100*(HHV(HIGH,N2)-CLOSE)/(HHV(HIGH,N2)-LLV(LOW,N2));//VAR1>VAR2 VAR2<30,VAR2>昨天 [為調(diào)整],VAR1昨天[為出貨](méi)
Var2:=100*(HHV(HIGH,N3)-CLOSE)/(HHV(HIGH,N3)-LLV(LOW,N3));//VAR1=VAR2>70,<昨天VAR1(為買(mǎi))
Var3:=Var1-X1;
Var4:=X1-Var1;//大于0[買(mǎi)]AND,昨天<=0
Var5:=EMA(EMA(CLOSE,13),13);
{
條件:=x1 條件3:=Var1<=Var2; 條件4:=Var1=Var2; 條件5:=(x1=(Var1+Var2)/2);xds:=BETWEEN(VAR4,-10,10);
條件6:=x1>75; 條件7:=x1<20; 買(mǎi)條件:=2*(條件6 AND 條件 AND 條件1 AND 條件2);
賣(mài)條件:=x1<20 AND 條件<1 AND 條件1<1 AND 條件2<1;fgh:=CROSS(VAR4,1);
指導(dǎo):=條件+條件1+條件2+條件6+條件7;
}
LOWV:=LLV(LOW,10);
HIGHV:=HHV(HIGH,13);
RSV=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
k:=EMA(RSV,3,1),LINETHICK1;
D:=SMA(K,3,1),LINETHICK1;
J:=3*K-2*D,POINTDOT;
PARTLINE(j,j>REF(j,1),RGB(255,0,150),j PARTLINE(資金1,資金1>REF(資金1,1),RGB(250,250,0),資金1 J線(xiàn)上升:IF(J>REF(J,1),J,DRAWNULL),COLOR00FFff,LINETHICK2;
J線(xiàn)下降:IF(J 資金1上升:IF(資金1>REF(資金1,1),資金1,DRAWNULL),COLOR0000ff,LINETHICK2;
資金1下降:IF(資金1 MM:=(2*CLOSE+HIGH+LOW+OPEN)/5;
mpc1:=EMA(mm,2.78)*1.028;
mpc2:=MA(OPEN,3.2)*1.028;
資金1線(xiàn):=IF(資金1>REF(資金1,1),1,0);// 資金1>80 資金1<20
K大D:=IF(K>d,1,0);//K大D=1[上升趨勢(shì)],{但K線(xiàn)不能小于昨日K線(xiàn)}
K大昨:=IF(K>REF(K,1),1,0);//K大昨=1 AND J大昨=1[買(mǎi)] 二項(xiàng)=0[賣(mài)]
J小KD:=IF(JJ大昨:=IF(J>REF(J,1),1,0);//J大昨=1 J線(xiàn)小于20 K大昨=1[買(mǎi)]
主力1:=EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*800,2);
主力2:=MA(主力1,2);
VAR1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;
VAR2:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;
VAR3:=SMA(VAR2,2,1);
頂:=100+(-ABS(VAR1)),colorred;
股價(jià):=SMA(VAR3,2,1);
底:=ABS(VAR1),colorgreen;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),資金1,’↖資金1’+資金1),COLOR0000FF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),j,’↖J線(xiàn)’+j),COLORffffFF;
MPC12:=IF(MPC1>REF(MPC1,1),1,0);
mpckD:=IF(k>REF(k,1),1,0);
STICKLINE(mpckd>=1AND k<30AND x1 DRAWTEXT((CROSS(0,Var4)AND x1<15),50,'↖明后天賣(mài)'),color00ff00,,LINETHICK4;
asw:=資金1線(xiàn)=0 AND J大昨=0 AND K大昨=0 AND 主力1<主力2 AND mpckd<=0 AND REF(x1,1)<=10 AND
X1<=15 AND mpckd<=0 AND k>50AND x1>REF(x1,1);
STICKLINE(X1<=15AND 資金1線(xiàn)<1,125,117,8,0),color999999;//第五排白色,白色點(diǎn)高位要變盤(pán)了賣(mài)點(diǎn);
STICKLINE(asw ,117,109,8,0),color009900;//淺綠色[有藍(lán)色小賣(mài)、無(wú)藍(lán)色、有綠色為大賣(mài)]
STICKLINE(mpckd<=0 AND mpckD=0,15,7.5,8,0),COLOR09ff00,LINETHICK2;//第一排綠色;
STICKLINE(Var4>0AND mpc12>0,7.5,0,8,0),colorf000ff,LINETHICK1;//第二排的粉紅色,粉紅色點(diǎn)持股點(diǎn);
STICKLINE(X1<=10,-7.5,-0,8,0),colorff0000,LINETHICK2;//第三排藍(lán)色,藍(lán)色點(diǎn)加白色點(diǎn)為賣(mài);
STICKLINE(X1 STICKLINE(VAR4>=0AND k>REF(k,1)AND k<35,-17,-25,8,0),color00fffF,LINETHICK2;//第五排的黃色,黃色點(diǎn)加紅色點(diǎn)為買(mǎi);
賣(mài)號(hào):=mpckd<=0 AND mpckD=0;賣(mài)號(hào)1:=X1<=10 AND asw;
STICKLINE(賣(mài)號(hào) AND REF(賣(mài)號(hào),1)=0 AND 賣(mài)號(hào)1,50,100,6,1),colorff000F,LINETHICK4;
VARF:=TROUGHBARS(3,15,1)<1;
VAR11:=IF(VARF=1,50,0);
EE:=FILTER(VARF=1,5);
STICKLINE(EE>=1,125,117,8,0),coloryellow;//↖明天買(mǎi)
DRAWTEXT(FILTER(VARF=1,3),116,’↖明天買(mǎi)’),coloryellow,低位;
控盤(pán):=(Var5-REF(Var5,1))/REF(Var1,1)*500,colorffcccc;
控盤(pán)1:=REF(控盤(pán),1); 控盤(pán)2:=IF(CROSS(控盤(pán)1,控盤(pán)),4,0)AND(D-K)>2;
bb13:=ATAN(EMA(VR,3)-REF(EMA(VR,3),1))*3.1416*10;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://m.chiang1015.com/ 上發(fā)表,為其獨(dú)立觀點(diǎn)。不代表本網(wǎng)立場(chǎng),不代表本網(wǎng)贊同其觀點(diǎn),亦不對(duì)其真實(shí)性負(fù)責(zé),投資決策請(qǐng)建立在獨(dú)立思考之上。