通達信軟件. 這是一個選股公式,點擊功能---專家系統(tǒng)---公式管理器---條件選股公式---- 其他類型-----新建---把源碼復制粘貼進去---起一個名稱( )----確定 ========================== 副圖指標: 點擊功能---專家系統(tǒng)---公式管理器---技術指標---- 其他類型-----新建---把源碼復制粘貼進去---起一個名稱( )----確定 ============================= 應用:1,選股:功能----選股器---條件選股---選擇大跌選股公式---選擇周期,一般為日線---加入條件----改變范圍,選擇上a,深圳a等等----選股入板塊---新建板塊---板塊名稱( ...選股板塊),板塊簡稱.. ,以后可以輸入... 打開板塊----執(zhí)行選股; 2.副圖指標:k線圖頁面,右鍵副圖指標(頁面下部分)----其他類型---[ ]--太累了 ===========================
幾種實用的條件選股公式
條件選股公式:D!HMCSF (黑馬草上飛) 缺省周期:日線
==============================================================
LCZ:=(C-MA(C,60))/MA(C,60)*100;
A1:=COUNT(MA(C,60)>REF(MA(C,60),1),100)>95;
A2:=COUNT(LCZ<20,100)>95;
A3:=COUNT(C>MA(C,60),100)>80;
A4:=C/REF(C,1)>1.04;
A5:=V/CAPITAL*100>2.8;
ZTJ:=A1 AND A2 AND A3 AND A4 AND A5;
ZTJ AND (REF(BARSLAST(ZTJ),1)>20 OR BARSSINCE( ZTJ)=0);
==============================================================
黑馬草上飛:
1、60日價格均線平穩(wěn)上揚。
2、日K線按照60日均線斜率震蕩上行。
3、經(jīng)過大半年的震蕩向上,終于向上突破。
操作:
發(fā)出信號后逢低積極介入。
==============================================================
條件選股公式:D!LYT (老鴨頭) 缺省周期:日線
==============================================================
MA5 := MA(close,5);
MA10 := MA(close,10);
MA60 := MA(close,60);
pday1 := barslast(cross(ma5,ma60));{5日均線上穿60日均線}
pday2 := barslast(cross(ma10,ma60));{10日均線上穿60日均線,至此形成鴨頸部}
pday3 := barslast(high=hhv(high,pday2));{形成頭部,要下跌}
pday4 := barslast(cross(ma10,ma5));{下跌后,5日均線和10日均線死叉}
pday5 := barslast(cross(ma5,ma10));{回落不久,5日均線和10日均線形成金叉,形成嘴部}
a1:= pday1>pday2 and pday2>pday3 and pday3>pday4 and pday4>pday5 and pday5<5;
a2:= count(cross(ma10,ma5),pday2)=1;
A1 AND A2;
==============================================================
老鴨頭:
?。?)采用5、10和60周期的價格平均線。當5日、10日均線放量上穿60日平均線后,形成鴨頸部。
?。?)股價回落時形成的高點形成鴨頭部。
?。?)當股價回落不久,5日、10日均線再次金叉向上形成鴨嘴部。
操作:
?。?)在5日、10日均線放量上穿60日平均線形成鴨頸部時買入。
(2)在鴨嘴部附近成交量芝麻點一帶逢低買入。
?。?)當股價放量沖過鴨頭頂瞬間時介入。
==============================================================
條件選股公式:D!LZMD (量芝麻點) 缺省周期:日線
==============================================================
V1:=MA(V,40);
HSL:=V/CAPITAL*100;
A1:=COUNT(V/V1<1.3,14)>11;
A2:=CROSS(HSL,2);
A3:=C/REF(C,1)>1.025 AND C>OPEN;
ZTJ:=A1 AND A2 AND A3;
==============================================================
量芝麻點:
成交量連續(xù)出現(xiàn)萎縮,在量柱體圖上表現(xiàn)為小芝麻點,連續(xù)的小芝麻點與40日量平均線形成一個小水坑。
操作建議:
最好K線淺幅回檔,且成交量越小越好,當放量上行時買入。
==============================================================
條件選股公式:D!QLQS (青龍取水) 缺省周期:日線
==============================================================
A1:=MIN(MA(C,5),MA(C,10))>MA(C,60) AND CROSS(MA(C,5),MA(C,10));
A2:=MIN(MA(C,5),MA(C,10))/MA(C,60)<1.05;
A3:=COUNT(V6;
A1 AND A2 AND A3;
==============================================================
青龍取水:
1、在5日、10日、60日均線圖上,5、10日均線起伏不定,日K線在60日均線上逶迤。
2、龍頭回到60日均線附近,猶如青龍取水,同時成交量萎縮
3、然后大漲。
操作:待龍頭形成,成交量萎縮又放大后,逢低介入。
==============================================================
條件選股公式:D!QSGT (輕松過頭) 缺省周期:日線
==============================================================
nday := hhvbars(high,120); {120日內(nèi)最高價的周期數(shù)}
nday1:= nday-10; {最高點之后10日}
nday2:= nday+10; {莊家應該在nday1--nday2之間吸納大部分籌碼}
a1 := nday>=30;{確保高點出現(xiàn)的周期數(shù)大于30}
a2 := ref(sum(vol,20),nday1) > finance(7) * 0.4; {吸納40%}
VMA:=MA(Vol,40);{40日量均線}
A3:=COUNT(Vol0.9;{成交量呈現(xiàn)芝麻點}
A4:=Close>=hhv(high,120);{股價在沖擊前高位}
A5:=COUNT(Vol<(MA(vol,10)*1.3),10)>8;{近期無明顯放量}
A1 AND A2 AND A3 AND A4 AND A5;
==============================================================
輕松過頭:
(1)前一個頭部下方的成交量巨大,股價筑頭后開始回檔。
?。?)回檔完畢后成交量呈量芝麻點,股價再次上揚沖擊前一頭部。
(3)輕松沖過前一頭部并未明顯放量。
操作:
(1)在前一頭部成交量巨大時跟進。
(2)在回檔完畢后成交量呈現(xiàn)芝麻點時逢低吸納。
?。?)最經(jīng)濟、最大利潤化的方法是在輕松過頭前的一瞬間迅速介入。
?。?)前頭部價格一般是上升浪的腰部。
==============================================================
條件選股公式:D!SJCJD (三金叉見底) 缺省周期:日線
==============================================================
nday := 5;
down := close/llv(low,60)<=1.2;
pma1 := ma(close,5);
pma2 := ma(close,10);
vma1 := ma(vol,5);
vma2 := ma(vol,10);
diff := ema(close,12) - ema(close,26);
dea := ema(diff,9);
ppday := barslast(cross(pma1,pma2));
vvday := barslast(cross(vma1,vma2));
macdday := barslast(cross(diff,dea));
sjcjd:= if((ppday<=nday and vvday<=nday and macdday<=nday),1,0);
==============================================================
三金叉見底:
(1)當股價長期下跌后開始企穩(wěn)筑底,而后股價緩慢上升。有時會同時出現(xiàn)5日和10日均價線、5日和10日均量線、MACD的黃金交叉點,這是股價見底回升的信號。
(2)有時會伴隨出現(xiàn)兩陽夾一陰多方炮、出水芙蓉、量頂天立地和MACD上穿零線等圖形。
操作:
(1)當出現(xiàn)三金叉后開始買入股票。
(2)或等股價回檔時在10日均線附近逢低吸納。
==============================================================
條件選股公式:D!SSCJD (三死叉見頂) 缺省周期:日線
==============================================================
nday := 5;
down := hhv(high,20)/high<=1.15;
pma1 := ma(close,5);
pma2 := ma(close,10);
vma1 := ma(vol,5);
vma2 := ma(vol,10);
diff := ema(close,12) - ema(close,26);
dea := ema(diff,9);
ppday := barslast(cross(pma2,pma1));
vvday := barslast(cross(vma2,vma1));
macdday := barslast(cross(dea,diff));
sscjd:= if((ppday<=nday and vvday<=nday and macdday<=nday),1,0);
==============================================================
三死叉見頂:
(1)當股價長期上漲后開始進入頭部,而后股價緩慢下跌。有時會同時出現(xiàn)5日和10日均價線、5日和10日均量線、MACD的死亡交叉點,這是股價見頂回落的信號。
?。?)有時會伴隨出現(xiàn)兩陰夾一陽空方炮、斷頭鍘刀MACD下穿零線等圖形。
操作:
(1)當出現(xiàn)三死叉后堅決賣出股票。
(2)或等股價反彈到10日均線附近逢高派發(fā)。
其它主副圖指標;
交叉見底(聽說準確率99%)副/未來
XX:=((((CLOSE - MA(CLOSE,34)) / MA(CLOSE,34)) * 100)* 5);
B001:=(((((CLOSE - MA(CLOSE,42)) / MA(CLOSE,42)) ) * 100) * 5);
B002:=(((((CLOSE - MA(CLOSE,67)) / MA(CLOSE,67)) ) * 100) * 5);
B003:=(((XX + B001) / 2) - (B002 ));
B004:=(((0 - 100) * (HHV(HIGH,34) - CLOSE)) / (HHV(HIGH,34) - LLV(LOW,34)));
B005:=(((0 - 100) * (HHV(HIGH,42) - CLOSE)) / (HHV(HIGH,42) - LLV(LOW,42)));
B006:=(((0 - 100) * (HHV(HIGH,72) - CLOSE)) / (HHV(HIGH,72) - LLV(LOW,72)));
B007:=EMA((((B004 + B005) / 2) - B006),6);
B008:=REF(CLOSE,1);
B009:=((((SMA(MAX((CLOSE - B008),0),19,1) / SMA(ABS((CLOSE - B008)),19,1)) * 100) - 50) * 1.25);
B010:=((((SMA(MAX((CLOSE - B008),0),34,1) / SMA(ABS((CLOSE - B008)),34,1)) * 100) - 50) * 1.25);
B011:=((((SMA(MAX((CLOSE - B008),0),72,1) / SMA(ABS((CLOSE - B008)),72,1)) * 100) - 50) * 1.25);
B012:=EMA(((((B009 + B010) / 2) - B011) * 5),6);
B013:=((((0 - 1) * ((B007 + B003) + B012)) / 3) * 1.5);
B014:=B012;
B015:=B013;
B016:=EMA(B012,4);
B017:=B012;
KKM1:=B013;
DPM1:=EMA(B013,4);
多頭:B017,color0000FF;
空頭:KKM1,color00FF00;
多均:B016;
空均:DPM1;
B018:=IF(CROSS(B017,KKM1),28,0);
xd:5 ;
VARX:=B017;
C023:=KKM1;
C024:=B016;
C025:=DPM1;
C026:=WINNER(CLOSE);
W:=(DMA(C026,((VOL / CAPITAL) * 1)) * 100);
HWXWINNER:=W;
XD1:=EMA(W,6);
XWXMH:=XD1;
XD2:=MA(W,14);
莊家控盤:((HWXWINNER - XWXMH) * 10),COLORSTICK,LINETHICK2;
STICKLINE(cross(多頭,空均),0,50,8,0) ,COLORRED;
趨勢先機(副\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\未來)
M1:=WINNER( MA(CLOSE,1))*200;
M2:=WINNER(MA(CLOSE,20))*200;
Var1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;
Var2:=SMA(Var1,3,1);
Var3:=SMA(Var2,3,1);
Var4:=3*Var2-2*Var3;
Var5:=LLV(LOW,5);
Var6:=HHV(HIGH,5);
Var7:=EMA((CLOSE-Var5)/(Var6-Var5)*100,4)*2;
Var8:=EMA(0.667*REF(Var7,1)+0.333*Var7,2);
Var9:=3*Var7-2*Var8;
VarA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VarB:=POW(MA(LOW,5),2)+MA(LOW,5);
VarC:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VarD:=(VarA-LLV(VarB,64))/(HHV(VarC,64)-LLV(VarB,64))*150+65-10;
VarE:=SMA(VarD,3,1)*1.5-100;
VarF:=SMA(VarE,3,1);
Var10:=3*VarE-2*VarF;
Var11:=(HIGH+LOW+CLOSE*2)/4;
Var12:=EMA(Var11,13);
Var13:=STD(Var11,13);
Var14:=(Var11-Var12)*100/Var13;
Var15:=EMA(Var14,5);
Var17:=EMA(Var15,13)+200-100;
Var18:=EMA(Var17,10);
Var19:=3*Var17-2*Var18;
Var1A:=Var2+Var7+VarE+Var17;
Var1B:=Var3+Var8+VarF+Var18;
Var1C:=Var4+Var9+Var10+Var19;
Var1D:=(HIGH+LOW+CLOSE)/3;
Var20:=(Var1D-MA(Var1D,34))/(0.015*AVEDEV(Var1D,34));
Var21:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
Var22:=(HIGH+LOW+CLOSE+Var1D)/4;
Var23:=EMA(Var22,24);
Var24:=STD(Var22,24);
Var25:=(Var22-Var23)/Var24*100;
Var26:=(Var1D-MA(Var1D,24))/(0.015*AVEDEV(Var1D,24));
Var27:=EMA(Var25,5);
Var2A:=((Var27+Var26+Var20)/3+165)/4;
Var2B:=(EMA(EMA(EMA(Var2A,15),10),5)-25)*2+Var21;
Var2C:=(Var1A+Var1B+Var1C*30)/32/5-15;
Var2D:=EMA(Var2C,13);{13}
Var2E:=(Var2A+Var2C)/2/1.1;
Var28:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
Var29:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
Var30:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
Var31:=REF(CLOSE,1);
Var32:=SMA(MAX(CLOSE-Var31,0),5,1)/SMA(ABS(CLOSE-Var31),5,1)*100;
Var33:=(HIGH+LOW+CLOSE)/3;
Var34:=(Var33-MA(Var33,14))/(0.015*AVEDEV(Var33,14));
Var35:=(Var28>=-15.8 AND Var28<=-12.2 AND Var29<=-20.8 AND Var30<=-27.5 AND Var32<=11.7 AND Var34<=-145)*100;
基礎線:IF(Var35>0 ,100 ,0 ),COLORF00FF0;
多空比例:IF((M1-M2)>-0.02,M1-M2,-0.02),COLORF0F000;
超短:EMA(Var2E,3),colorred ;
短線:EMA(超短,5),colorwhite;
趨勢線:EMA((Var2B+Var2D)/2,2) ,coloryellow;
散戶看盤(副圖)
{INPUT.:M(60,3,100),N(30,3,100);}
散戶線: 100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M));
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
主力線:EMA(J,6),COLORYELLOW;
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,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(MA(CLOSE,58),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
吸籌:STICKLINE(VAR9>-120,0,VAR9,6,1),COLORMAGENTA;
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走勢:CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;
AA6:=SMA(AA3,21,8);
買觀注: STICKLINE(走勢-AA6<-65,0,7,15,1);
DRAWICON(FILTER(J>REF(J,1)AND 走勢>=REF(走勢,1)AND 走勢<25 ,5),走勢,1);
賣觀注: STICKLINE(走勢-AA6>85,98,90,15,1),COLORFFFF00;
DRAWICON(FILTER(J<REF(J,1)AND 走勢<=REF(走勢,1)AND J>85 ,5),J,2);
神奇均線 (主圖指標)
Var1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
A1: (EMA(Var1,3)+EMA(Var1,6)+EMA(Var1,12)+EMA(Var1,24))/4;
A2: EMA(A1,2);
A3: EMA(A2,2);
A4: EMA(A3,2);
A5: EMA(A4,2);
A6: EMA(A5,2);
A7: EMA(A6,2);
A8: EMA(Var1,2.78)*1.028;
A9: MA(OPEN,3.2)*1.028;
安全線: EMA(CLOSE,55), CIRCLEDOT;
短線高手(副圖指標)
Var1:=(CLOSE*2+HIGH+LOW)/4;
SK: EMA(Var1,13)-EMA(Var1,21);
SD: EMA(SK,2);
多方能量: 2*(SK-SD)*3.8, LINESTICK;
空方能量: (-2)*(SK-SD)*3.8, LINESTICK;
強弱分界: 0, CIRCLEDOT;
多空博弈(副圖指標)
Var1:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
Var2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
Var3:=SMA(Var2,13,8);
高拋: 90, POINTDOT;
低吸: 0, POINTDOT;
多方能量: SMA(Var3,13,8);
空方能量: SMA(Var1,21,8);
買進: IF(CROSS(多方能量,45),18,-4);
賣出: IF(CROSS(45,多方能量),18,-4);
強弱分界: 45, CIRCLEDOT;
短線快槍(副圖指標)
Var1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
安全線: EMA(Var1,55), CIRCLEDOT;
SK: SLOPE(EMA(Var1,2),7)*15+Var1;
SD: EMA(SK,2);
SJ: 2.8*SK-1.8*SD;
6, POINTDOT;
買一: IF(CROSS(SK,SD) AND SK<安全線,9.8,6);
買二: IF(CROSS(SK,安全線),9.8,6);
買三: IF(CROSS(SK,SD) AND SK>安全線,9.8,6);
波段之星(副圖指標)
Var2:=(HIGH+LOW+CLOSE*2)/4;
Var3:=EMA(Var2,21);
Var4:=STD(Var2,21);
Var5:=((Var2-Var3)/Var4*100+200)/4;
Var6:=(EMA(Var5,5)-25)*1.56;
AK: EMA(Var6,2)*1.22;
AD: EMA(AK,2);
AJ: 3*AK-2*AD;
100, POINTDOT;
0, POINTDOT;
80, POINTDOT;
買進: IF(CROSS(AK,AD),58,20);
賣出: IF(CROSS(AD,AK),58,20);
財運亨通(副圖指標)
Var1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
高拋: 80, POINTDOT;
Var2:=LLV(LOW,34);
Var3:=HHV(HIGH,34);
SK: EMA((Var1-Var2)/(Var3-Var2)*100,13);
SD: EMA(SK,3);
低吸: 20, POINTDOT;
強弱分界: 50, POINTDOT;
Var4:=IF(CROSS(SK,SD),40,22);
Var5:=IF(CROSS(SD,SK),60,78);
賣出: Var5;
買進: Var4;
抄底逃頂(副圖指標)
Var1:=(2*CLOSE+HIGH+LOW)/4;
T: 80, POINTDOT;
D: 20, POINTDOT;
Var2:=LLV(LOW,5);
Var3:=HHV(HIGH,4);
SK: EMA((Var1-Var2)/(Var3-Var2)*100,4);
SD: EMA(0.667*REF(SK,1)+0.333*SK,2);
Var4:=(HHV(HIGH,4)-Var1)/(HHV(HIGH,4)-LLV(LOW,4))*100-72;
漓江倒影: SMA(Var4,4,1), LINESTICK;
Var5:=(Var1-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100;
Var6:=SMA(Var5,2,1);
桂林山水: SMA(Var6,2,1), LINESTICK;
漓江: 12;
底頂偵探(副圖指標)
Var1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
Var2:=EMA(EMA(EMA(Var1,4),4),4);
SJ: (Var2-REF(Var2,1))/REF(Var2,1)*100, COLORSTICK;
SD: MA(SJ,2);
SK: MA(SJ,1);
Var3:=CROSS(SK,SD) AND SK<0;
Var4:=CROSS(SK,0);
Var5:=CROSS(SK,SD) AND SK>0;
買一: Var3, STICK;
買二: Var4 OR Var5, STICK;
Var6:=CROSS(SD,SK);
賣出: Var6, STICK;
強弱分界: 0, CIRCLEDOT;
短線精靈(副圖指標)
Var1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
Var2:=LLV(LOW,21);
Var3:=HHV(HIGH,21);
SK: EMA((Var1-Var2)/(Var3-Var2)*100,5);
SD: EMA(0.667*REF(SK,1)+0.333*SK,4);
Var4:=IF(CROSS(SD,SK) AND SK>=60,60,76);
Var5:=IF(CROSS(SK,20) OR CROSS(SK,SD) AND SK>20,20,5);
買進: Var5;
賣出: Var4;
高拋: 80, POINTDOT;
低吸: 20, POINTDOT;
強弱: 50, POINTDOT;
Var6:=LLV(LOW,55);
Var7:=HHV(HIGH,34);
Var8:=EMA((Var1-Var6)/(Var7-Var6)*100,3);
Var9:=(SK+Var8)/2;
VarA:=EMA(0.667*REF(Var8,1)+0.333*SK,2);
VarB:=EMA(Var9,5);
VarC:=EMA(0.667*REF(VarB,1)+0.333*VarB,2);
IF(VarB>=40,20,0);
主力進出(副圖指標)
Var1:=(CLOSE*2+HIGH+LOW)/4;
Var2:=EMA(Var1,13)-EMA(Var1,34);
Var3:=EMA(Var2,5);
強弱分界: 0, CIRCLEDOT;
空方主力: (-2)*(Var2-Var3)*3.8, LINESTICK;
多方主力: 2*(Var2-Var3)*3.8, LINESTICK;
平滑乖離(副圖指標)
{N: 1 20 6}
Var1:=(2*CLOSE+OPEN+HIGH+LOW)/5;
Var2:=(CLOSE-MA(CLOSE,n))/MA(CLOSE,n)*100;
Var3:=(EMA(Var2,3)+EMA(Var2,6)+EMA(Var2,12)+EMA(Var2,24))/4;
A1: EMA(Var3,2);
A2: EMA(A1,2);
A3: EMA(A2,2);
A4: EMA(A3,2);
A5: EMA(A4,2);
強弱: 0, CIRCLEDOT;
買進: IF(CROSS(A1,A5),-1,-5);
賣出: IF(CROSS(A5,A1),1,5);
A6: 3*A1-2*A2;
股海航帆(副圖指標)
Var1:=(2*CLOSE+HIGH+LOW)/4;
Var2:=MA(Var1,7);
Var3:=Var2-MA(Var1,7/2)<0;
Var4:=Var2-MA(Var1,7/2)>0;
Var5:=BARSLAST(Var3);
Var6:=0-BARSLAST(Var4);
Var7:=IF(Var3<=0,Var5,Var6);
上買下賣: (-1)*Var7, VOLSTICK;
強弱分界: 0, CIRCLEDOT;
穩(wěn)贏劍 ((副)
參數(shù)描述: N(1,100,12)M(1,100,20)}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
STICKLINE(REF(J,7)<0 AND J>1,10,0,10,0),COLOR00FF00;
VAR1:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
貴:=N,COLOR00FF00;
VAR4:=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);
VAR5:=CROSS(VAR4,10) AND VAR3<N;
抄底:IF(VAR5,90,1),COLORRED;
DRAWICON(VAR5,65,1);
DRAWTEXT(VAR5,30,'抄底'),COLORYELLOW;
備錢:IF(CROSS(10,VAR4),40,1),COLORFF00FF;
DRAWICON(CROSS(10,VAR4),45,1);
DRAWTEXT(IF(CROSS(10,VAR4),1,0),20,'$備錢'),COLORWHITE;
危機線: 80,COLORRED,POINTDOT,LINETHICK2;
中間線: 50,COLORFFCCCC,POINTDOT,LINETHICK2;
安全線: 10,COLORFF00FF,POINTDOT,LINETHICK2;
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR7:=LLV(LOW,M);
VAR8:=HHV(HIGH,M);
VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13);
VARA:=EMA(0.667*REF(VAR9,1)+0.333*VAR9,2);
戰(zhàn)術線: VAR9,COLORYELLOW,LINETHICK2;
戰(zhàn)略線: EMA(0.382*REF(VAR9,2)+0.618*VAR9,12),COLORBLUE;
STICKLINE(VAR9>VARA,VAR9,VARA,6,0),COLORRED;
STICKLINE(VAR9<=VARA,VAR9,VARA,6,0),COLOR00FF00;
VARB:=SUM(IF(CLOSE>REF(CLOSE,7),VOL,IF(CLOSE<REF(CLOSE,7),0-VOL,0)),0);
VARC:=SUMBARS(VOL,CAPITAL);
VARD:=IF(CLOSE>LLV(CLOSE,VARC),1,-1);
VARE:=IF(VARB>LLV(VARB,VARC),1,-1);
VARF:=VARD*VARE;
VAR10:=IF(VARF=-1,1,0);
關注:IF(VAR10 AND CLOSE=LLV(CLOSE,20) AND VAR3<N,70,1),COLORFFCC66;
A1:=EMA(CLOSE,5);
A2:=EMA(CLOSE,10);
A3:=EMA(CLOSE,20);
A4:=EMA(CLOSE,40);
A5:=EMA(CLOSE,60);
{上穿月線:IF({CROSS(A1,A2) AND }{CROSS(C,A3),50,0),COLORYELLOW,LINETHICK2;}
{上穿季線:IF({CROSS(A3,A4) AND }{CROSS(C,A5),50,0),COLORRED,LINETHICK2;}
I:=MA(BARSLAST(HIGH=HHV(HIGH,16))*IF(CLOSE<OPEN,VOL,1),3);
R:=MA(BARSLAST(LOW=LLV(LOW,18))*IF(CLOSE>OPEN,VOL,1),4);
短線逃頂:=IF(I,0,1),COLORGREEN;
DRAWICON(短線逃頂,90,2);
雨季彩虹(副)
YS1:=(HIGH+LOW+CLOSE*2)/4;
RK3:=EMA(YS1,10);
RK4:=STD(YS1,10);
RK5:=(YS1-RK3)*100/RK4;
RK6:=EMA(RK5,5);
RK7:=EMA(RK6,10);
漲:EMA(RK6,10)+100/2-5,COLORRED;
跌:EMA(漲,4),COLORWHITE;
天晴了:IF(CROSS(漲,跌) AND 跌<-10,20,0),COLORCCCCFF;
雨季將來:IF(CROSS(跌,80),80,100),COLORFF3798;
彩虹1:EMA(跌,4),COLORFFFF50;
彩虹2:EMA(彩虹1,4);
彩虹3:=EMA(彩虹2,4),COLORYELLOW;
彩虹4:=EMA(彩虹3,4),COLORCC9900;
STICKLINE(漲<REF(漲,1),漲,MA(漲,3),5,0 ),COLOR00BB00;
STICKLINE(漲<REF(漲,1),漲,MA(漲,3),4,0 ),COLOR00CC00;
STICKLINE(漲> REF(漲,1),漲,EMA(漲,3),5,0) ,COLOR0066FF;
STICKLINE(漲> REF(漲,1),漲,EMA(漲,3),4,0) ,COLOR0088FF;
STICKLINE(漲> REF(漲,1),漲,EMA(漲,3),3,0) ,COLOR0099FF;
DRAWICON(天晴了>0,20,3);
DRAWTEXT(CROSS(漲,跌) AND 跌<20 AND 跌>-10,40,'日出'),COLORFFFFFF;
DRAWTEXT(天晴了>0,-20,'天晴'),COLORCCCCFF;
VAR11:=SUMBARS(VOL,FINANCE(7)*100);
{SUMBARS為引用函數(shù),表示累加到指定周期數(shù); FINANCE為財務數(shù)據(jù)函數(shù),N為返回財務數(shù)值。}
VAR22:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
VAR3:=(CLOSE-VAR22)/VAR22*100;
VAR4:=HHV(VAR3,VAR11);
VAR5:=LLV(VAR3,VAR11);
VAR6:=(VAR3-VAR5)/(VAR4-VAR5)*100;
K:=SMA(VAR6,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
MA1:=MA(J,3),COLORGREEN;
STICKLINE(FILTER(J>MA1 AND J<=3,5)=1 AND 跌<0,漲,漲+20,6,0);
DRAWTEXT(FILTER(J>MA1 AND J<=3,5)=1 AND 跌<0,60,'注意'),COLORRED;
漲幅前兆(副)
Var3:=LLV(HIGH,240);
Var4:=100*(CLOSE-Var3)/Var3;
Var5:=REF(LLV(CLOSE,480),1);
Var6:=REF(HHV(CLOSE,480),1);
Var7:=100*(CLOSE-Var5)/(Var6-Var5);
Var8:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100;
Var9:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100;
VarA:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100;
VarB:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100;
VarC:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5)/4;
VarD:=IF(DATE<1031231,IF(VarC>23.16,VarC,0),0);
VarE:=VarC<1;
VarF:=VarD;
Var10:=Var4<0 AND Var7<0;
Var11:=1;
Var12:=(HIGH+LOW+CLOSE*2)/4*Var11;
Var13:=EMA(Var12,21);
Var14:=STD(Var12,21);
Var15:=((Var12-Var13)/Var14*100+200)/4*Var11;
Var16:=(EMA(Var15,89)-25)*1.56*Var11;
Var17:=EMA(Var16,5)*1.22*Var11;
Var18:=EMA(Var17,3)*Var11;
Var19:=3*Var17-2*Var18*Var11;
Var1A:=IF(CROSS(Var19,Var17) AND CROSS(Var19,Var18) AND CROSS(Var17,Var18),1,0); Var1B:=IF(CROSS(Var17,Var19) AND CROSS(Var18,Var19) AND CROSS(Var18,Var17),1,0);
買點: IF(FILTER(Var8=0 AND VarE AND Var10 AND Var1A,5)=1,10,0), colorred;
賣點: IF(FILTER(Var8=100 AND VarF AND Var1B,5)=1,10,0), colorgreen;
Var1C:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4;
Var1D:=EMA(CLOSE,2)-EMA(CLOSE,89);
Var1E:=EMA(Var1D,30);
Var1F:=2*(Var1D-Var1E)*10;
Var20:=POW(Var1F,3)*0.1+POW(Var1F,2);
Var21:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
Var22:=EMA(Var21*0.97,3);
Var23:=(HIGH+LOW+CLOSE)/3;
Var24:=(Var23-MA(Var23,14))/(0.015*AVEDEV(Var23,14));
Var25:=IF(YEAR<2008 AND Var1F>0.015,Var20,0)/45;
莊拉線: Var25,coloryellow ;
Var26:=EMA(CLOSE,2)-EMA(CLOSE,150);
Var27:=EMA(Var26,100);
Var28:=2*(Var26-Var27);
Var29:=POW(Var28,3)*0.1+POW(Var28,1);
Var2A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
Var2B:=EMA(Var2A*0.97,3);
Var2C:=(HIGH+LOW+CLOSE)/3;
Var2D:=(Var2C-MA(Var2C,14))/(0.015*AVEDEV(Var2C,14));
黑馬線: IF( Var28>0.1,Var29,0)*5, colorred;
量價線: (CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100, colorwhite;
Var2E:=IF(FILTER(量價線>0 AND 量價線<3,5)=1,12,0);
漲幅前兆: IF(FILTER(莊拉線>0 AND 莊拉線<0.5 AND Var2E AND Var1C<3,10)=1,10,0), colorwhite;
選股利器: IF(FILTER(Var2E>0 AND Var1C<2 AND 莊拉線>0 AND 莊拉線<1 AND 黑馬線>0 AND 黑馬線<1.5 AND Var2E>0,5)=1,10,0),colorffffff; DRAWICON(買點>0,10,1);
DRAWICON(賣點>0,10,2);
DRAWICON(漲幅前兆>0,10,1);
DRAWICON(選股利器>0,10,1);
智能MACD(副)
DIFF:(EMA(CLOSE,3) - EMA(CLOSE,13)),colorred;
DEA:EMA(DIFF,9),colorff00ff;
MACD:0.9*(DIFF-DEA), COLORSTICK;
if(diff<0,diff,0),coloryellow,linethick1;
if(diff<0,0,diff),colorred,linethick1;
if(diff<dea,diff,dea),color00ff00,linethick1;
if(diff>dea,dea,dea),colorff00ff,linethick1;
aa:=cross(diff,dea);
二次金叉買就贏:0 ,LINETHICK0;
加倉要等綠變紅:0 ,LINETHICK0;
時間之窗做參考:0 ,LINETHICK0;
見到死叉快點逃:0,LINETHICK0;
Var1:=(HIGH+LOW+CLOSE)/3;
Var2:=(EMA(Var1,2)+EMA(Var1,5)+EMA(Var1,8))/3;
Var3:=(EMA(Var1,6)+EMA(Var1,9)+EMA(Var1,12))/3;
Var4:=BARSCOUNT(CLOSE);
Var5:=HHV(HIGH,200);
Var6:=LLV(LOW,200);
Var7:=(Var5-Var6)/40;
Var8:=HIGH+Var7;
Var9:=LOW-Var7;
sjzc:=IF((Var4+0)/34=FLOOR((Var4+0)/34),50,0),COLORred,LINESTICK;
DRAWICON(sjzc ,0.09,1);
DRAWICON(CROSS(DIFF,DEA),DIFF-0.01,4);
DRAWICON(CROSS(DEA,DIFF),DIFF,2);
通達信(未來)
AA:MA(WINNER(C*0.95)*100,3),COLORYELLOW;
AA,stick,COLORYELLOW,linethick2;
Var1:=1/WINNER(CLOSE);
Var2:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
Var3:=100-ABS(Var2);
Var4:=3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
Var5:=3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
Var6:=100-Var5;
Var7:=100-Var4;
Var8:=MA(WINNER(CLOSE*0.95)*100,3);
Var9:=IF(Var1>5,IF(Var1<100,Var1,Var3-10),0);
VarA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VarB:=SMA(VarA,3,1);
VarC:=SMA(VarB,3,1);
探索: EMA(3*VarB-2*VarC,3),colorwhite;
主力: (-1)*(EMA(Var7,1)-50)+50,COLORYELLOW,linethick2;
Z1: MA(主力,9),COLORRED,linethick2;
VarD:=(-1)*(EMA(Var7,1)-50)+50;
VarE:=(-1)*(EMA(Var7,12)-50)+50;
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
天涯:if(rsi1>93 or (AA>90 and rsi1>80),80,100),;
海角: 0,colorgreen;
苦海:
EMA(100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14)),6),LINESTICK,;
ZS: MA(探索,3),COLORYELLOW;
ZM: MA(MA(探索,3),3),COLORGREEN;
VAR1:=99999999999;
VAR2:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
VAR3:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR4:=SMA(VAR3,13,8);
多方能量: SMA(VAR4,13,8);
空方能量: SMA(VAR2,21,8);
介入: IF(CROSS(多方能量,45),18,-4);
強弱分界: 45, CIRCLEDOT;
捕抓莊股起點(副)
VAR1C:=(HIGH - MIN(OPEN,CLOSE));
VAR2C:=(CLOSE - OPEN);
VAR3C:=(MIN(OPEN,CLOSE) - LOW);
VAR4C:=(HIGH - LOW);
VAR5C:=((VOL * VAR1C) / VAR4C);
VAR6C:=((VOL * VAR2C) / VAR4C);
VAR7C:=((VOL * VAR3C) / VAR4C);
VAR8C:=((VAR5C - VAR6C) - VAR7C);
大機構:SUM(VAR8C,13) / MA(VOL,13) / 13,LINETHICK1,color0000ff;
小機構:SUM(VAR8C,21) / MA(VOL,21) / 21,LINETHICK1,colorFFFF00;
散戶:SUM(VAR8C,30) / MA(VOL,30) / 30,colorFF00FF;
股票:SUM(VAR8C,125) / MA(VOL,125) / 125,LINETHICK2,color00FFFF;
VAR4:=MA(CLOSE,5);
VAR5:=MA(CLOSE,10);
VAR6:=MA(CLOSE,30);
VAR7:=MA(CLOSE,60);
VAR8:=EMA(COST(85),7);
VAR9:=EMA(COST(15),7);
VARA:=(SUM(((CLOSE * VOL) * 100),4) / SUM((VOL * 100),4));
VARB:=(INTPART((VARA * 100)) / 100);
VARC:=(SUM(((CLOSE * VOL) * 100),7) / SUM((VOL * 100),7));
VARD:=(INTPART((VARC * 100)) / 100);
VARE:=(SUM(((CLOSE * VOL) * 100),28) / SUM((VOL * 100),28));
VARF:=(INTPART((VARE * 100)) / 100);
短線趨勢:(EMA(CLOSE,5) - EMA(CLOSE,10));
中線趨勢:EMA(短線趨勢,9);
VAR10:=((0 - ((100 * (HHV(CLOSE,5) - CLOSE)) / (HHV(CLOSE,5) - LLV(LOW,5)))) + 100);
VAR11:=((0 - ((100 * (HHV(CLOSE,10) - CLOSE)) / (HHV(CLOSE,10) - LLV(LOW,10)))) + 100);
VAR12:=((0 - ((100 * (HHV(CLOSE,20) - CLOSE)) / (HHV(CLOSE,20) - LLV(LOW,20)))) + 100);
VAR13:=((0 - ((100 * (HHV(CLOSE,30) - CLOSE)) / (HHV(CLOSE,30) - LLV(LOW,30)))) + 100);
VAR14:=REF(中線趨勢,1);
VAR15:=中線趨勢;
VAR16:=(VAR15 - VAR14);
VAR17:=REF(短線趨勢,1);
VAR18:=短線趨勢;
VAR19:=(VAR18 - VAR17);
VAR1A:=OPEN;
VAR1B:=CLOSE;
發(fā)現(xiàn)機構入場:IF((((((((VAR1A <= VAR4) AND (VAR1A <= VAR5)) AND (VAR1A <= VAR6)) AND (VAR1B >= VAR4)) AND (VAR1B >= VARF)) AND (VAR16 > 0)) AND (VAR19 > 0)),0.5,0),LINETHICK2,color66FF00;
短線指標:IF(((((CROSS(短線趨勢,中線趨勢) AND (短線趨勢 < 0)) AND (中線趨勢 < (0 - 0.2))) AND (VAR11 > 45)) AND (VAR16 > 0)),0.3,0.1),color66FF00;
量能飽和度(副)
量能飽和度
SAT:=(AMOUNT/C)/(HHV(AMOUNT,21)/HHV(C,21));
飽和度:IF(SAT>1,1,SAT)*100;
量能≤5:STICKLINE(飽和度<=5,5,飽和度+20,3,0),COLORRED;
量能5~80:STICKLINE((飽和度>5 AND 飽和度< 80),5,飽和度+8,3,0),COLOR5290FF;
量能80~97:STICKLINE((飽和度>80 AND 飽和度< 97),5,飽和度,3,0),COLORFFCC00;
量能≥97:STICKLINE(飽和度>=97,5,飽和度,3,0),COLORGREEN;
DIFF : (EMA(CLOSE,12) - EMA(CLOSE,26))*50,COLORCYAN,LINETHICK2;
DEA : EMA(DIFF,9),COLORRED,LINETHICK2;
實價線;
實價線:(C-LLV(L,60))/(HHV(H,60)-LLV(L,60))*100,COLORWHITE;
A1:=(2*C+H+L)/4;
A2:=LLV(L,34);
A3:=HHV(H,34);
A4:=SMA((HHV(H,9)-C)/(HHV(H,9)-LLV(LOW,9))*100-70,9,1)+100;
A5:=(C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100;
A6:=SMA(SMA(A5,3,1),3,1)+100;
A7:=A6-A4;
底部區(qū)域:IF(A7>60,A7-60,0),COLORYELLOW;
持有:STICKLINE(REF(底部區(qū)域,1)<底部區(qū)域,底部區(qū)域,REF(底部區(qū)域,1),5,0),COLORF00FF0;
出貨:STICKLINE(REF(底部區(qū)域,1)>底部區(qū)域,底部區(qū)域,REF(底部區(qū)域,1),5,0),COLOR00FF00;
中線持有:EMA((A1-A2)/(A3-A2)*100,13),COLORBLUE;
中線出貨:EMA(0.667*REF(中線持有,1)+0.333*中線持有,2),COLORRED;
STICKLINE(中線持有-中線出貨>0,中線持有,中線出貨,8,0),COLORBLUE;
STICKLINE(中線持有-中線出貨<0,中線持有,中線出貨,8,0),COLORRED;