OBV能量創(chuàng)新高選股法
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MAOBV:=MA(OBV,30);
xg:obv>ref(obv,20)*0.99;
------------------------------
xg:obv>ref(obv,20)*0.99;
這一行里面的20是天數(shù),創(chuàng)多少天
新高,就改為多少天。
股價(jià)突破盤(pán)整,創(chuàng)新高選股法
C>=HHV(C,30);
放量打拐
XG:CROSS( CLOSE,MA(C,30))
AND CLOSE>MA(C,22) AND CLOSE>MA(C,30)AND
COUNT(MA(CLOSE,13)>REF(MA(CLOSE,13),1),1)
AND COUNT(MA(CLOSE,8)>REF(MA(CLOSE,8),1),1)
AND COUNT(MA(CLOSE,20)>REF(MA(CLOSE,20),1),1)
AND CLOSE/OPEN>1.0152
and vol/capital*100>0.002 COLORBLUE;{15分鐘突破30日均線};
大盤(pán)副圖公式
STICKLINE(INDEXO<INDEXC, INDEXC ,INDEXO,3,1) ,COLORRED;
STICKLINE(INDEXO<INDEXC, INDEXH ,INDEXC,0.01,0) ,COLORRED;
STICKLINE(INDEXO<INDEXC, INDEXO ,INDEXL,0.01,0) ,COLORRED;
STICKLINE(INDEXO>INDEXC, INDEXC ,INDEXO,3,1) ,COLORGREEN;
STICKLINE(INDEXO>INDEXC, INDEXH ,INDEXO,0.01,0) ,COLORGREEN;
STICKLINE(INDEXO>INDEXC, INDEXC ,INDEXL,0.01,0) ,COLORGREEN;
MA3:MA(INDEXC,3),COLORWHITE;
均線5:MA(INDEXC,43),COLORRED;
均線10:MA(INDEXC,60),COLORGREEN;
均線20:MA(INDEXC,120),COLORBLUE;
均線60:MA(INDEXC,240),COLORyellow;
均線120:MA(INDEXC,120),COLORwhite;
紅綠燈
A:=MAX(MA(C,60),MA(C,120));
B:=MIN(MA(C,60),MA(C,120));
綠燈行:C>A,COLORGREEN;
紅燈停:C<B,COLORRED;
黃燈觀望:A>=C AND C>=B,COLORYELLOW ;
STICKLINE(C>A,0,2,8,0),COLORGREEN,LINETHICK2;
STICKLINE(C<B,0,2,8,0),COLORRED,LINETHICK2;
STICKLINE(A>=C AND C>=B,0,2,8,0),COLORYELLOW,LINETHICK2;
五線順上第一陽(yáng):
XG:V/REF(V,1)>1 AND MA(C,5)>REF(MA(C,5),1) AND MA(C,10)>REF(MA(C,10),1) AND MA(C,20)>REF(MA(C,20),1) AND MA(C,60)>REF(MA(C,60),1) AND MA(C,120)>REF(MA(C,120),1) AND NOT(REF(MA(C,5)>REF(MA(C,5),1) AND MA(C,10)>REF(MA(C,10),1) AND MA(C,20)>REF(MA(C,20),1) AND MA(C,60)>REF(MA(C,60),1) AND MA(C,120)>REF(MA(C,120),1),1));
Obv指標(biāo)
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
M30OBV:MA(OBV,30);
1、OBV(資金流量)
INPUT:N(9,1,100);
TYP := (HIGH + LOW + CLOSE)/3;
rs:=SUM(IF(TYP>REF(TYP,1),TYP*VOL,0),N)/SUM(IF(TYP<=REF(TYP,1),TYP*VOL,0),N);
MFI:=100-100/(1+rs);
資金流量:MFI,LINETHICK0;
a1:=SUM(IF(MFI>REF(MFI,1),VOL,IF(MFIRSV:=(a1-LLV(a1,34))/(HHV(a1,34)-LLV(a1,34))*100;
K:SMA(RSV,5,1);
D:SMA(K,3,1);
J:3*K-2*D;
50,colorgray,LINEDOT;
80,COLORRED,LINEDOT;
2、OBV.MACD(能量)
INPUT:N(9,1,10);
LC := REF(CLOSE,1);
a1:=SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100; {RSI}
DIFF:-1*(EMA(a1,26) - EMA(a1,12))/200,COLORCYAN;
DEA:-1*(EMA(DIFF,9))/200,COLORRED;
MACD:2000*(DIFF-DEA),COLORSTICK,LINETHICK2;
{柱線顏色}
s1:=MACD0;
s2:=MACDSTICKLINE(MACD>=0,MACD,0,8,1),COLORRED;
STICKLINE(s1,0,MACD,8,1),COLOR00ffff;
STICKLINE(s2,0,MACD,8,0),COLORffffff;
STICKLINE(MACD>REF(MACD,1)and MACD<0,0,MACD,8,1),COLORffff00;
80,COLORMAGENTA,LINEDOT;
OBV連續(xù)3天增
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
Count(OBV>REF(OBV,1),3)=3
OBV
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MAOBV:=MA(OBV,30);
xg:obv/ref(obv,20)>2;
{白沙分時(shí)盯盤(pán)}
INPUT:N(1000),TT(2);
流通:FINANCE(7)/10000,LINETHICK0,PRECISION2,colorFFFF00;
系數(shù):=IF(流通>=10,1,IF(流通<10,0.75,0));
門(mén)限:=流通*系數(shù)/10*N;
主動(dòng)買入:=SUM(BUYVOL,0);
主動(dòng)賣出:=SUM(SELLVOL,0);
買賣差:=主動(dòng)買入-主動(dòng)賣出;
大單買:=IF(BUYVOL>=門(mén)限,BUYVOL,0);
大單賣:=IF(SELLVOL>門(mén)限,SELLVOL,0);
大單買入:=SUM(大單買,0);
大單賣出:=SUM(大單賣,0);
小單買入:=主動(dòng)買入-大單買入;
小單賣出:=主動(dòng)賣出-大單賣出;
DRAWTEXTEX(DYNAINFO(7),1,20,70,'■ 大單買入: '+NUMTOSTR(大單買入,0)),LINETHICK2,colorFF;
DRAWTEXTEX(DYNAINFO(7),1,300,70,'占:'+NUMTOSTR(FLOOR(大單買入/(主動(dòng)買入+主動(dòng)賣出)*100),0)+'%'),LINETHICK2,colorFF;
DRAWTEXTEX(DYNAINFO(7),1,20,130,'■ 大單賣出: '+NUMTOSTR(大單賣,0)),LINETHICK2,colorFF00;
DRAWTEXTEX(DYNAINFO(7),1,300,130,'占:'+NUMTOSTR(FLOOR(大單賣出/(主動(dòng)買入+主動(dòng)賣出)*100),0)+'%'),LINETHICK2,colorFF00;
DRAWTEXTEX(DYNAINFO(7),1,20,190,'■ 小單買入: '+NUMTOSTR(小單買入,0)),LINETHICK2,colorFF00FF;
DRAWTEXTEX(DYNAINFO(7),1,300,190,'占:'+NUMTOSTR(FLOOR(小單買入/(主動(dòng)買入+主動(dòng)賣出)*100),0)+'%'),LINETHICK2,colorFF00FF;
DRAWTEXTEX(DYNAINFO(7),1,20,240,'■ 小單賣出: '+NUMTOSTR(小單賣出,0)),LINETHICK2,colorFFFF00;
DRAWTEXTEX(DYNAINFO(7),1,300,240,'占:'+NUMTOSTR(FLOOR(小單賣出/(主動(dòng)買入+主動(dòng)賣出)*100),0)+'%'),LINETHICK2,colorFFFF00;
VARA:=IF(BUYVOL<=REF(ASKVOL(1),1)+REF(ASKVOL(2),1)+REF(ASKVOL(3),1) AND CLOSE>=REF(ASKPRICE(3),1),BUYVOL,0);
上掃單:=SUM(INTPART(IF(VARA>100 AND VARA<500 OR VARA>=500,BUYVOL,0)),0);
VARB:=IF(SELLVOL<=REF(BIDVOL(1),1)+REF(BIDVOL(2),1)+REF(BIDVOL(3),1) AND CLOSE<=REF(BIDPRICE(3),1),SELLVOL,0);
下掃單:=SUM(INTPART(IF(VARB>100 AND VARA<500 OR VARB>=500,SELLVOL,0)),0);
DRAWTEXTEX(DYNAINFO(7),1,20,300,'■ 上掃單: '+NUMTOSTR(上掃單,0)),LINETHICK2,colorFF;
DRAWTEXTEX(DYNAINFO(7),1,20,360,'■ 下掃單: '+NUMTOSTR(下掃單,0)),LINETHICK2,colorFFFF00;
DRAWTEXTEX(DYNAINFO(7),1,20,420,'■ 買賣差: '+NUMTOSTR(買賣差,0)),LINETHICK2,colorFF00;
TST:=OPENMINUTES(TIME);
CLOSE=DYNAINFO(7);
總量:=SUM(VOL,TST);
總額:=SUM(AMOUNT,TST);
均價(jià):總額/(總量*100),LINETHICK0;
次數(shù):COUNT(CLOSE>均價(jià),TT),LINETHICK0;
占比:次數(shù)/TST*100,LINETHICK0;
分時(shí)強(qiáng)勢(shì):DRAWICON(CROSS(CLOSE,均價(jià)) AND CLOSE>均價(jià) AND 占比>80 AND TST>5,CLOSE*0.99,10);
PK:=VOL*(OPEN+CLOSE+HIGH+LOW)/4;
PK1:=IF(VOL>0,PK/VOL,(OPEN+CLOSE+HIGH+LOW)/4);
C11:=PK1;
A01:=(C11-LLV(C11,75))/(HHV(C11,75)-LLV(C11,75));
A11:=SMA(A01,13,1);
A21:=SMA(A11,13,1);
A31:=3*A11-2*A21;
A41:=2*A31-0.5;
ZS:DYNAINFO(3)*0.92;
K1:=IF(1,C11*(1-(A41-A21)/40),0);
K2:=CROSS(C11,K1) AND CLOSE/REF(CLOSE,1)<1.03 AND SUM(BUYVOL,5)>=3000 AND 主動(dòng)買入>主動(dòng)賣出*1.15;
K3:IF(K2,ZS*1.03,ZS),colorFF00;
LB:=SUM(VOL,0)*240/DYNAINFO(38)/BARSCOUNT(CLOSE);
PK:=IF(TIME>=93100,BUYVOL,0);
A1:=CLOSE>=REF(HHV(HIGH,100),1);
A2:=BUYVOL>260 AND SUM(BUYVOL,6)>3600;
A3:=TIME>94000 AND TIME<145000;
A4:=CLOSE/REF(LLV(LOW,1200),1)<=1.07 AND CLOSE>=OPEN;
A5:=BUYVOL>REF(HHV(PK,100),1);
A6:=主動(dòng)買入>主動(dòng)賣出*1.18;
DRAWTEXT(LB<3 AND A1 AND A2 AND A3 AND A4 AND A5 AND A6,CLOSE*1.99,'一箭封喉')
非常好用的公式,不知有沒(méi)有高手肯幫忙改為FNC,大家?guī)兔斊饋?lái),不要讓它沉下去了,謝謝!
還有一個(gè),大家一定要頂?。?/span>
白沙抓漲停
飛狐用 請(qǐng)高手改為大智慧L--2的FNC
白鯊大單rc:=DYNAINFO( 3);
s2:=sma(c,2,1);
s6:=sma(c,6,1);
dk:=2*(s2-s6);
STICKLINE(dk>0,rc,rc+dk,0,1),COLORRED;
STICKLINE(dk<0,rc,rc+dk,0,1),COLORCYAN;
流通:=FINANCE(7)/10000;
QJ1:=CAPITAL/2500;
QJ2:=CAPITAL/8000;
QJ3:=CAPITAL/16000;
QJ4:=CAPITAL/33000;
QJ5:=CAPITAL/80000;
QJ6:=CAPITAL/150000;
QJ7:=CAPITAL/200000;
QJ8:=CAPITAL/400000;
XS:=IF(流通<1,QJ1,IF(流通>=1 AND 流通<5,QJ2,IF(流通>=5 AND 流通<10,QJ3,IF(流通>=10 AND 流通<20,QJ4,IF(流通>=20 AND 流通<50,QJ5,IF(流通>=50 AND 流通<100,QJ6,IF(流通>=100 AND 流通<300,QJ7,IF(流通>=300,QJ8,0))))))));
門(mén)限:=XS;
特門(mén)限:=XS*2.67;
特大買:=IF(BUYVOL>=特門(mén)限,BUYVOL,0);
特大賣:=IF(SELLVOL>=特門(mén)限,SELLVOL,0);
大單買:=IF(BUYVOL>=門(mén)限 AND BUYVOL<特門(mén)限,BUYVOL,0);
大單賣:=IF(SELLVOL>=門(mén)限 AND SELLVOL<特門(mén)限,SELLVOL,0);
特大買入:=SUM(特大買,0);
特大賣出:=SUM(特大賣,0);
大單買入:=SUM(大單買,0);
大單賣出:=SUM(大單賣,0);
大買:=特大買入+大單買入;
大賣:=特大賣出+大單賣出;
r:=DYNAINFO(3);
q:=DATACOUNT;
hh:=DYNAINFO(5);
LL:=DYNAINFO(6);
f:=MAX(hh-r,r-LL);
q1:=r-f*1.01;
q2:=r-2*f*1.0125;
白鯊大單勢(shì)態(tài)1:=SMA(大買,3,1);
白鯊大單勢(shì)態(tài):=SMA(大賣,3,1);
kh:=HHV(MAX(大買,大賣),0);
kL:=LLV(MIN(大賣,大買),0);
kb:=(q1-q2)/(kh-kL);
ky:=(q1+q2-kb*(kh+kL))/2;
白鯊大單勢(shì)態(tài)*kb[q]+ky[q],COLORGRAY;
白鯊大單勢(shì)態(tài)1*kb[q]+ky[q],colorred;
多空對(duì)比
短期:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;
中期:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;
中長(zhǎng)期:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;
長(zhǎng)期:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2;
20,POINTDOT; 50,POINTDOT;
80,POINTDOT;
資金指數(shù)600開(kāi)頭的可使用{資金指數(shù)(副圖指標(biāo))}
主流資金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), COLORRED,LINETHICK2;
非主流資金:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),COLORGREEN,LINETHICK2;
20,POINTDOT,COLORF00FF0;
50,POINTDOT,COLORGREEN;
80,POINTDOT,COLORWHITE;
2.動(dòng)能運(yùn)行軌跡 敏感(底部提示多 檢查幾個(gè)股 基本正確)
RSV:=(((CLOSE - LLV(LOW,33)) / (HHV(HIGH,33) - LLV(LOW,33))) * 100);
Y0:SMA(RSV,7,1);
Y1:SMA(SMA(RSV,7,1),4,1);
Y3:SMA(SMA(SMA(RSV,7,1),4,1),6,1);
Y2:((CLOSE / COST(9)) <=1) * 10;
Y20:20,POINTDOT;
Y80:80,POINTDOT;
機(jī)構(gòu)能量線
Var1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
機(jī)構(gòu)做空能量線: SMA(Var1,3,1),linethick2,colorgreen;
Var2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
機(jī)構(gòu)做多能量線: SMA(Var2,5,1)-8,linethick2,colorred;
遁莊控盤(pán)副圖指標(biāo) VAR1:=(CLOSE*2+HIGH+LOW)/4;
VAR2:=EMA(VAR1,21)-EMA(VAR1,34);
VAR3:=EMA(VAR2,10);
多方控盤(pán):2*(VAR2-VAR3)*3.81,COLORRED;
空方控盤(pán):(-2)*(VAR2-VAR3)*3.81,COLORGREEN;
STICKLINE(多方控盤(pán)>0,0,多方控盤(pán),1,0),COLORRED;
STICKLINE(空方控盤(pán)<0,0,空方控盤(pán),1,0),COLORGREEN;
STICKLINE(多方控盤(pán)<0,0,多方控盤(pán),1,0),COLORRED;
STICKLINE(空方控盤(pán)>0,0,空方控盤(pán),1,0),COLORGREEN;
多空波段贏家
STICKLINE(CLOSE> REF(CLOSE,1)
,OPEN,CLOSE,3,0),COLOR000033;
STICKLINE(CLOSE> REF(CLOSE,1)
,OPEN,CLOSE,2.7,0),COLOR000066;
STICKLINE(CLOSE> REF(CLOSE,1)
,OPEN,CLOSE,2.1,0),COLOR000099;
STICKLINE(CLOSE> REF(CLOSE,1)
,OPEN,CLOSE,1.5,0),COLOR0000CC;
STICKLINE(CLOSE> REF(CLOSE,1)
,OPEN,CLOSE,0.9,0),COLOR0000FF;
STICKLINE(CLOSE> REF(CLOSE,1)
,OPEN,CLOSE,0.3,0),COLORCC66FF;
STICKLINE(CLOSE< REF(CLOSE,1)
,HIGH,LOW,0,1),COLORCYAN;
STICKLINE(CLOSE< REF(CLOSE,1)
,OPEN,CLOSE,3,0),COLOR990000;
STICKLINE(CLOSE< REF(CLOSE,1)
,OPEN,CLOSE,2.7,0),COLORCC0000;
STICKLINE(CLOSE< REF(CLOSE,1)
,OPEN,CLOSE,2.1,0),COLORFF4400;
STICKLINE(CLOSE< REF(CLOSE,1)
,OPEN,CLOSE,1.5,0),COLORFF8800;
STICKLINE(CLOSE< REF(CLOSE,1)
,OPEN,CLOSE,0.9,0),COLORFFCC00;
STICKLINE(CLOSE< REF(CLOSE,1)
,OPEN,CLOSE,0.3,0),COLORCYAN;
STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,1
),COLORWHITE;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0
),COLOR555555;
STICKLINE(CLOSE= REF(CLOSE,1)
,OPEN,CLOSE,2.7,0),COLOR777777;
STICKLINE(CLOSE= REF(CLOSE,1)
,OPEN,CLOSE,2.1,0),COLOR999999;
STICKLINE(CLOSE= REF(CLOSE,1)
,OPEN,CLOSE,1.5,0),COLORBBBBBB;
STICKLINE(CLOSE= REF(CLOSE,1)
,OPEN,CLOSE,0.9,0),COLORDDDDDD;
STICKLINE(CLOSE= REF(CLOSE,1)
,OPEN,CLOSE,0.3,0),COLORFFFFFF;
獲利了結(jié):EMA(EMA(EMA(HIGH,5),5),4)*1.15,COLORGREEN;
風(fēng)險(xiǎn):
EMA(EMA(EMA(HIGH,5),5),4)*1.1,COLORBLUE;
回檔:
EMA(EMA(EMA(HIGH,5),5),4)*1.05,COLORCYAN;
平衡:
EMA(EMA(EMA(HIGH,5),5),4),COLORYELLOW;
反彈:
EMA(EMA(EMA(HIGH,5),5),4)*0.95,COLORMAGENTA;
超跌:
EMA(EMA(EMA(HIGH,5),5),4)*0.9,COLORRED;
指標(biāo)由六條線組成,股價(jià)一般在六條線之間運(yùn)行;當(dāng)股價(jià)大部分時(shí)間在三條線之內(nèi)時(shí),運(yùn)行股價(jià)回調(diào)碰到下檔支持線時(shí),會(huì)受到支撐;上漲遇到了阻力線時(shí),會(huì)受到一定壓力。當(dāng)六條線沿一定角度向上運(yùn)
行時(shí),股價(jià)會(huì)在六條線之 內(nèi)震蕩上升,可以根據(jù)大盤(pán)情況做充分的高拋低吸; ※此指標(biāo)不可單一使用,要配合頂?shù)纵o助,動(dòng)能運(yùn)行軌跡一起使用,成功率更高!
DKTDX 多空天地線
VAR2:=485;
VAR3:=222;
VAR4:=96;
VAR5:=MA(HHV(HIGH,VAR2),17);
VAR6:=MA(HHV(HIGH,VAR3),17);
VAR7:=MA(HHV(HIGH,VAR4),17);
VAR8:=MA(LLV(LOW,VAR2),17);
VAR9:=MA(LLV(LOW,VAR3),17);
VARA:=MA(LLV(LOW,VAR4),17);
VARB:=MA((VAR8*0.96+VAR9*0.96+VARA*0.96+VAR5*0.558+VAR6*0.558+VAR7*0.558)/6,17);
VARC:=MA((VAR8*1.25+VAR9*1.23+VARA*1.2+VAR5*0.55+VAR6*0.55+VAR7*0.65)/6,17);
VARD:=MA((VAR8*1.3+VAR9*1.3+VARA*1.3+VAR5*0.68+VAR6*0.68+VAR7*0.68)/6,17);
VARE:=MA((VARB*3+VARC*2+VARD)/6*1.738,17);
VARF:=MA((VARB*2.38+VARC*2.18+VARD*1.85+VAR5*1.05)/4,17);
VAR10:=MA((VARD+VARE)*0.5,17);
滿倉(cāng): VARB;
半倉(cāng): VARC;
低吸: VARD;
中線: VAR10;
高拋: VARE;
出貨: VARF;
該指標(biāo)有六條線組成,名稱從下至上依次是:滿倉(cāng)、半倉(cāng)、低吸、變盤(pán)、高拋、出貨;當(dāng)股價(jià)從低位向上反彈,遇到每一條
線時(shí),都會(huì)有一定阻力,當(dāng)股價(jià)從高位向下回落時(shí),每條線都有支撐作用。多空天地線不僅直接反映出主力操盤(pán)手法和股價(jià)在歷史走勢(shì)中的空間狀態(tài),還可以提前于股價(jià)的走勢(shì)給出我們股價(jià)在上升空間的各個(gè)阻力點(diǎn)位,使我們
在股票操作中有效利用這個(gè)指標(biāo),達(dá)到波段獲利。而且比較適用于中長(zhǎng)期操作。
交易機(jī)器人
H1:EMA(C,8);
H2:EMA(H1,20);
Var1:=(HHV(H,36)-C)/(HHV(H,36)-LLV(L,36))*100;
Var2:=SMA(Var1,5,1);
Var3:=SMA(Var2,8,1);
Var4:=CROSS(Var2,Var3) AND Var3< 20;
Var5:=C>LLV(C,60)*1.13 AND Var4;
Var6:=IF(C>200,Var4,Var5);
STICKLINE(H1>H2,H1,H2,0,1),COLORRED;
STICKLINE(H1< H2,H1,H2,0,1),COLORGREEN;
|