把指標(biāo)公式改成選股公式的方法我來簡單說一下吧。
在選股公式中只允許有一條輸出語句,因此在改之前要把所有的STICKLINE語句、DARWICON語句及DARWTEXT語句全部刪除。再把所有的畫線語句如該公式中的“指導(dǎo)線:EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),,COLORFFFFFF;”要加上“=”號即改成:“指導(dǎo)線:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),,COLORFFFFFF; ”。
最后僅保留所需要的選股語句,如該公式中的“B買:IF(CROSS(指導(dǎo)線,界) OR CROSS(買線,賣線),C,DRAWNULL),COLORMAGENTA,NODRAW;”但這條語句是一個選擇語句要改一下,變成:“B買:(CROSS(指導(dǎo)線,界) OR CROSS(買線,賣線);”就是說僅留下這個語句中的條件部分就可以了。整個公式就成了如下的樣子:
買線:=EMA(C,2);
賣線:=EMA(SLOPE(C,21)*20+C,42);
指導(dǎo)線:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),,COLORFFFFFF;
界:=MA(CLOSE,27),COLOR00FFFF;
B買:CROSS(指導(dǎo)線,界) OR CROSS(買線,賣線);
今天選項了一下選出的股票有100多只太多;
再改一下:
買線:=EMA(C,2);
賣線:=EMA(SLOPE(C,21)*20+C,42);
指導(dǎo)線:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),,COLORFFFFFF;
界:=MA(CLOSE,27),COLOR00FFFF;
B買:CROSS(指導(dǎo)線,界) AND CROSS(買線,賣線);
經(jīng)試用僅選了一只股票:600991長豐汽車。
如再不滿意再設(shè)法去改一下。
不知大家明白了沒有?
{獵狐雷達}
獵狐雷達:100*(WINNER(CLOSE)-REF(WINNER(CLOSE),1));
VAR1:=(WINNER(AMOUNT/VOL)-WINNER(REF(AMOUNT/VOL,5)))*100;
雷達1: IF(獵狐雷達>20,50,0) COLORRED;
雷達2: IF(REF(獵狐雷達,1)<-25 AND CROSS(獵狐雷達,0),50,0) COLORGREEN;
雷達3: IF(FILTER(BARSLAST(CROSS(0,獵狐雷達)) AND CROSS(獵狐雷達,0),21),50,0) COLORBLUE;
天線: 20;
地線: -20;
無中生有
無中生有:0,COLOR00AA00;
有戲:(EMA(CLOSE,30)-EMA(CLOSE,34))/EMA(CLOSE,34)*100,COLORRED;
無戲:(EMA(C,34)-EMA(C,30))/EMA(C,30)*100,COLORCYAN;
XYZ1:(有戲-無戲),COLORMAGENTA;
XYZ2:MA(XYZ1,3),COLORYELLOW;
STICKLINE( XYZ1>XYZ2,無戲 ,有戲 ,0.8 ,0 ),COLORRED;
STICKLINE( XYZ1<XYZ2,無戲 ,有戲 ,0.8 ,0 ),COLORCYAN;
多周期KDJ
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;
周K:MA("KDJ.K"(9,3,3) ,5),POINTDOT,LINETHICK1,COLORWHITE;
周D:MA("KDJ.D"(9,3,3) ,5),POINTDOT,LINETHICK1,COLOR33FF99;
周J:MA("KDJ.J"(9,3,3) ,5),POINTDOT,LINETHICK1,COLOR00FF00;
周金▲:DRAWTEXT(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)) ,8,'▲'),COLORRED;
周死▼:DRAWTEXT(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)) ,92,'▼'),COLORGREEN;
月金▲:DRAWTEXT(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)) ,0,'▲'),COLOR00FF00;
月死▼:DRAWTEXT(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)) ,100,'▼'),COLORYELLOW;
梅子雷達
V1:=(C/REF(C,1)-INDEXC/REF(INDEXC,1))*200;
動力:SUM(V1,0),COLORRED,LINETHICK2;
月動力:MA(動力,20),COLORYELLOW ; 動力上穿月動力,表明該股開始強于大盤走勢
多空交鋒
SK:(SLOPE(EMA(MAV,2),7)*15+MAV)*0.8*0.0001,COLORRED;
SD:EMA(SK,2),COLORGREEN;
SJ:2.8*SK-1.8*SD,COLORYELLOW;
S2:=SMA(C,3,1);
S6:=SMA(C,5,1);
DK:2*(S2-S6)*15*4*1.5, COLORSTICK;
STICKLINE(SK>SD AND DK<RC OR DK=RC,RC,RC+DK,1,0),COLORRED;
STICKLINE(DK>0 AND SK>SD ,RC,RC+DK,1,0),COLOR6633CC;
STICKLINE(DK>0 AND SK<SD ,RC,RC+DK,1,0),COLORFFAA66;
STICKLINE(DK>0 AND 多方<空方,RC,RC+DK,1,0),COLORGREEN;
STICKLINE(CROSS(多方,空方),RC,RC+DK,1,0),COLORYELLOW; 紅柱代表趨強,黃柱代表轉(zhuǎn)強,橙柱代表強勢,藍柱代表趨弱,綠柱為弱勢.初現(xiàn)黃柱子買入,黃柱子越小越好,負(fù)的更好 !
STICKLINE(CROSS(空方,多方),RC,RC+DK,1,0),COLORGREEN;
STICKLINE(DK<0 AND 多方<空方 AND SK<SD,RC,RC+DK,1,0),COLORGREEN;
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);
VAR25:=IF(YEAR<2058 AND VAR1F>0.015,VAR20,0)/45/4;
JJ :=(C*2+H+L)/4;
SKK :( EMA(JJ,13) - EMA(JJ,21))*180,COLORGRAY;
SDD : EMA(SKK,2),COLORGRAY;
多方:(SKK-SDD)*0.000000001,COLORRED,LINETHICK0;
空方:-1*(SKK-SDD)*0.000000001,COLORGREEN,LINETHICK0;
RC:=DYNAINFO(3);
RC,COLORWHITE;
MAV:=(2*C+H+L)/4;
SK:(SLOPE(EMA(MAV,2),7)*15+MAV)*0.8*0.0001,COLORRED;
SD:EMA(SK,2),COLORGREEN;
SJ:2.8*SK-1.8*SD,COLORYELLOW;
S2:=SMA(C,3,1);
S6:=SMA(C,5,1);
DK:2*(S2-S6)*15*4*1.5, COLORSTICK;
STICKLINE(SK>SD AND DK<RC OR DK=RC,RC,RC+DK,1,0),COLORRED;
STICKLINE(DK>0 AND SK>SD ,RC,RC+DK,1,0),COLOR6633CC;
STICKLINE(DK>0 AND SK<SD ,RC,RC+DK,1,0),COLORFFAA66;
STICKLINE(DK>0 AND 多方<空方,RC,RC+DK,1,0),COLORGREEN;
STICKLINE(CROSS(多方,空方),RC,RC+DK,1,0),COLORYELLOW;
STICKLINE(CROSS(空方,多方),RC,RC+DK,1,0),COLORGREEN;
STICKLINE(DK<0 AND 多方<空方 AND SK<SD,RC,RC+DK,1,0),COLORGREEN;
{游擊高手 主圖}
中短:MA(CLOSE,23);
中:MA(CLOSE,33);
中長:MA(CLOSE,60);
RSV:=(((CLOSE - LLV(LOW,5)) / (HHV(HIGH,5) - LLV(LOW,5))) * 100);
短主:=SMA(RSV,3,1);
短空:=SMA(短主,3,1);
RSV12:=(((CLOSE - LLV(LOW,15)) / (HHV(HIGH,15) - LLV(LOW,15))) * 100);
中主:=SMA(RSV12,3,1);
中空:=SMA(中主,3,1);
RSV24:=(((CLOSE - LLV(LOW,21)) / (HHV(HIGH,21) - LLV(LOW,21))) * 100);
長主:=SMA(RSV24,3,1);
長空:=SMA(長主,3,1);
DRAWTEXT((((CROSS(REF(短主,1),REF(短空,1)) OR CROSS(短主,短空)) AND CROSS(長主,長空)) AND ((CROSS(REF(中主,1),REF(中空,1)) OR CROSS(中主,中空)) AND CROSS(長主,長空))),LOW,'游擊高手');
箱頂:HHV(MA(((((LOW + HIGH) + CLOSE) + OPEN) / 4),5),58),COLOR00AAFF;
箱底:LLV(MA(((((LOW + HIGH) + CLOSE) + OPEN) / 4),6),58),COLOR00FF00;
MA3:=MA(CLOSE,3);
MA34:=MA(CLOSE,34);
DRAWTEXT(CROSS(MA3,箱底),LOW,'試'),COLOR0000FF;
DRAWTEXT(CROSS(MA3,MA34),LOW,'買'),COLOR00FFFF;
DRAWTEXT((CROSS(MA3,箱頂) AND (CLOSE > 箱頂)),箱頂,'追'),COLOR00EEAA;
騎牛
上軌:MA(C,20)+2*STD(C,20),COLOR0099CC,LINETHICK2;
中軌:MA(C,20),COLORWHITE,LINETHICK1;
下軌:MA(C,20)-2*STD(C,20),COLOR006699,LINETHICK2;
牛勢:HHV(MA((L+H+C)/3,3),1),COLORFF00FF,LINETHICK2;
VAR1:=HHV(MA((L+H+C)/3,5),1);
VAR2:=EMA((H+L+C)/3*(HHV(H,5)-C)/(HHV(H,5)-LLV(L,5))*20/10+(L+H+C)/3,1);
VAR3:=(3*VAR2-2*SMA(VAR2,5,1))*0.3;
VAR4:=IF(VAR3>1.03*VAR1,1.03*VAR1,IF(VAR3<0.98*VAR1,0.98*VAR1,VAR3));
VAR5:=(C-MA(C,4))/MA(C,4)*(-100);
VAR6:=EMA(VAR5/10+EMA(C,N),1);
騎牛風(fēng)險線: IF(VAR6<VAR4,VAR4,IF(VAR6> HHV(((L+H+C)/3),1),1.03*VAR4,VAR6)),COLORYELLOW;
騎牛中軌:LLV(MA((L+H+C)/3,3),10),COLORBLUE,LINETHICK2; n 1.100.6
轉(zhuǎn)強
VA1:=HHV(HIGH,9)-LLV(LOW,9);
VA2:=HHV(HIGH,9)-CLOSE;
VA3:=CLOSE-LLV(LOW,9);
VA4:=VA2/VA1*100-70;
VA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VA6:=(2*CLOSE+HIGH+LOW)/4;
VA7:=SMA(VA3/VA1*100,3,1);
VA8:=LLV(LOW,34);
VA9:=SMA(VA7,3,1)-SMA(VA4,9,1);
VARA:=IF(VA9>100,VA9-100,0);
VARB:=HHV(HIGH,34);
VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);
VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);
VARE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF(INDEXC,1))/INDEXC,8,1)*100-25;
VARF:=MA(VARE,3);
生命線:EMA(VARD,1), COLORFF00FF,LINETHICK2;
VAR1:=HHV(HIGH,9)-LLV(LOW,9);
VAR2:=HHV(HIGH,9)-CLOSE;
VAR3:=CLOSE-LLV(LOW,9);
VAR4:=((VAR2)/(VAR1))*(100)-70;
VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);
VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);
VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:=IF((VAR9>100),VAR9-100,0);
VAR11:=HHV(HIGH,34);
B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);
B2:EMA(B1,5),COLORFF7000;
STICKLINE(B1-B2>0,B1,B2,8,0),COLORFFFFFF;
STICKLINE(B1-B2<0,B1,B2,8,0),COLOR00FF00;
V1:=MA(C,5)=HHV(MA(C,5),20);
V2:=MA(C,5)>MA(C,10);
V3:=MA(V,5)>MA(V,40)*1.01;
V4:=COUNT(MA(C,1)>REF(C,1),2)=2;
VV:=V1 AND V2 AND V3 AND V4;
STICKLINE(V1 AND V2 AND V3 AND V4,100,110,8,0),COLOR00FF00;
A1:=EMA(CLOSE,8);
A2:=EMA(A1,20);
A3:=CROSS(A1,A2);
A4:=A1<EMA(CLOSE,120);
STICKLINE(A3 AND A4,100,110,8,0),COLOR00FF00;
A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*
SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1) ;
安全位:=20;
低位轉(zhuǎn)強:IF(CROSS(A5,安全位),50,0),COLORRED,POINTDOT;
開始拉升:IF(CROSS(VARC,生命線) AND VARC>VARD AND VARC<55 AND C>O,50,0),COLORBLUE,POINTDOT;
A6:=LLV(C,500)=LLV(C,5) AND C/REF(C,1)>(1+9.8/100);
極低大漲:IF(A6,50,0),COLORYELLOW,POINTDOT;
STICKLINE(開始拉升>0,15,開始拉升*1.1,1,0),POINTDOT,COLORBLUE;
STICKLINE(開始拉升>0 AND 開始拉升<400,30,開始拉升,1,0),COLORRED,LINETHICK3;
STICKLINE(開始拉升>0,15,開始拉升*0.6,5,0),COLORBLUE,LINETHICK5;
STICKLINE(開始拉升>0,15,開始拉升*0.4,5,0),COLOR00FF00,LINETHICK7;
STICKLINE(開始拉升>0,15,開始拉升*0.2,5,0),COLOR0099CC,LINETHICK7;
捕捉暴漲
TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),7);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),5);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),5);
PDI: DMP*100/TR;
MDI: DMM*100/TR,LINETHICK2;
ADX: EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,3)COLORRED;
ADXR:EXPMEMA(ADX,3),COLORGREEN;注意: 5
,LINETHICK2;DRAWTEXT(CROSS(ADX,ADXR),50,'變')COLORRED ;用法:市場行情趨向明顯時,指標(biāo)效果理想。
PDI(上升方向線) MDI(下降方向線) ADX(趨向平均值)
1.PDI線從下向上突破MDI線,顯示有新多頭進場,為買進信號;
2.PDI線從上向下跌破MDI線,顯示有新空頭進場,為賣出信號;
3.ADX值持續(xù)高于前一日時,市場行情將維持原趨勢;
4.ADX值遞減,降到20以下,且橫向行進時,市場氣氛為盤整;
5.ADX值從上升傾向轉(zhuǎn)為下降時,表明行情即將反轉(zhuǎn)。
量能度----非常好用
實量:VOL,VOLSTICK;
V1:=V/CAPITAL*100;
MAV5:=EMA(V/CAPITAL*100,5);
MAV10:=EMA(V/CAPITAL*100,10);
量能:((V1-MAV5)/MAV5*2+(V1-MAV10)/MAV10)*10;
主力動向+控盤籌碼+莊籌+散籌
莊籌線:WINNER(C)*130 ,COLORRED,LINETHICK2;
散籌線:(WINNER(C*1.1)-WINNER(C*0.9))*100 ,COLORGREEN ,LINETHICK2;
VAR2:=MA(CLOSE,60);
VAR3:=MA(CLOSE,2);
VAR6:=100*(WINNER(VAR2*1.1)-WINNER(VAR2*0.9));
VAR7:=100*(WINNER(VAR2*1.1)-WINNER(VAR3*0.85));
主力動向:IF((VAR6-VAR7)*2>0,(VAR6-VAR7)*2,0),STICK,COLORRED;
控盤籌碼:IF((0.1-WINNER(C/1.1))*100<0,(0.1-WINNER(C/1.1))*100,0),STICK,COLORYELLOW;
容易買漲
MA3:MA(C,3),COLOR00FF00;
MA5:MA(C,5),COLORFFFFFF;
ZX:=(MA3+MA5)/2;
MA20:MA(C,20),COLORFF00FF;
MA30:MA(C,30),COLORYELLOW;
QSXS:=MA5>=MA30 AND MA30>REF(MA30,1);
GD:=ZX>=REF(ZX,1) AND REF(ZX,1)<REF(ZX,2);
YB:=C>REF((O-C)/2+C,2);
買:CROSS(C,ZX) AND (GD OR YB) AND QSXS,COLOR00FF00,POINTDOT,LINETHICK0;
優(yōu):買 AND MA5>REF(MA5,1),COLORYELLOW,POINTDOT,LINETHICK0;
{以下設(shè)置主圖顯示方式}
STICKLINE(買,H,L,0,1),COLOR00FF00,LINETHICK2;
STICKLINE(買,O,C,4,1),COLOR00FF00,LINETHICK2;
STICKLINE(優(yōu),H,L,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(優(yōu),O,C,4,1),COLORYELLOW,LINETHICK2;
DRAWTEXT(買,L*0.99, '買'),COLOR00FF00;
DRAWICON(優(yōu),L,1);
大盤目前已基本啟穩(wěn),可以適當(dāng)作些短線,高拋低吸,賺些小錢。應(yīng)該還有兩次探底的要求。發(fā)些條件選股的公式供大家使用。
{短線通道 選股}
VAR1:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*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);
VAR16:=EMA(VAR15,13);
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;
VAR1E:=AMOUNT/VOL/100;
VAR1F:=SUM(AMOUNT,5)/SUM(VOL,5)/100;
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);
VAR28:=(VAR1E-MA(VAR1E,21))/(0.015*AVEDEV(VAR1E,21));
VAR29:=(VAR1F-MA(VAR1F,90))/(0.015*AVEDEV(VAR1F,90));
VAR2A:=((VAR29+VAR28+VAR27+VAR26+VAR20)/5+165)/4;
VAR2B:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;
VAR2C:=(VAR2A+VAR2B)/2/1.1;
短線:=VAR2C;
MID:=MA(短線,26);
UPPER:=MID+2*STD(短線,26);
LOWER:=MID-2*STD(短線,26);
{LCJ2:=IF(短線>MID,MID,短線); }
{買點: DRAWICON(CROSS(短線,MID),MID*0.97,1); }
{DRAWICON(CROSS(短線,LOWER),LOWER*0.97,3); }
{賣點: DRAWICON(CROSS(UPPER,短線),UPPER*0.97,2);
MID, , COLORYELLOW;}
{多頭買入} ENTERLONG:CROSS(短線,MID) AND UPPER-MID>50;
{出手就贏1 選股}
RSV:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
CROSS(K,D) AND D<30;
{出手就贏2 選股}
RSV:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
CROSS(K,D) AND D<80;
{套利狐貍 選股}
VAR1:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
VAR2:=REF(HIGH,10)/CLOSE>1.35;
V3: (CLOSE-VAR1)/VAR1*100<-30 AND VAR2;
{乘勝追擊 選股}
VAR1:=WINNER(CLOSE)-WINNER(OPEN);
VAR2:=REF(CLOSE,1);
VAR3:=SMA(MAX(CLOSE-VAR2,0),5,1)/SMA(ABS(CLOSE-VAR2),5,1)*100;
VAR4:=CLOSE/MA(CLOSE,3)>=1.05;
VAR5:=MA(VOL,8)/MA(VOL,45)>=2.5;
VAR6:=WINNER(CLOSE)-WINNER(OPEN);
VAR7:=REF(CLOSE,1);
VAR8:=SMA(MAX(CLOSE-VAR7,0),5,1)/SMA(ABS(CLOSE-VAR7),5,1)*100;
VAR9:=VAR6>=0.3 AND MA(VOL,6)/MA(VOL,26)>=1.9 AND VOL>REF(VOL,1) AND COUNT(VAR8<20,20)>=1 AND CLOSE/MA(CLOSE,3)>=1.07;
VARA:=VAR1>=0.4 AND VAR5 AND COUNT(VAR3<20,20)>=1 AND VAR4 AND CLOSE>MA(CLOSE,85) AND VOL>REF(VOL,1);
(VARA OR VAR9);
{逆勢操作 選股}
VAR1:=DMA(CLOSE,VOL/MA(VOL,4)/4);
VAR2:=DMA(CLOSE,VOL/MA(VOL,32)/32);
VAR3:=(CLOSE-VAR1)/VAR1*100<-8;
VAR4:=(VAR1-VAR2)/VAR2*100<-21;
VAR5:=VAR3 AND VAR4 AND (OPEN>CLOSE OR OPEN<CLOSE) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.05 AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND (REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5)) AND (REF(OPEN,6)>REF(CLOSE,6) OR REF(OPEN,6)<REF(CLOSE,6)) AND (REF(OPEN,7)>REF(CLOSE,7) OR REF(OPEN,7)<REF(CLOSE,7));
VAR6:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100<-23;
VAR7:=(INDEXC-LLV(INDEXL,275))/(HHV(INDEXH,275)-LLV(INDEXL,275))*100;
VAR8:=SMA(VAR7,50,1);
VAR9:=SMA(VAR8,40,1);
VARA:=VAR6 AND VAR9<23 AND COUNT(VAR6,2)=1 AND (OPEN>CLOSE OR OPEN<CLOSE) AND OPEN/REF(CLOSE,1) >0.96 ;
(VAR5 OR VARA) ;
{牛市專利 選股}
VAR1:=REF(CLOSE,3)*0.844;
VAR2:=REF(CLOSE,13)*0.767;
VAR3:=INDEXC;
VAR4:=INDEXV;
VAR5:=MIN(VAR1,VAR2);
VAR6:=100*VOL/CAPITAL;
VAR7:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;
VAR8:=(CLOSE-VAR5)/CLOSE<0.07 AND SUM(VAR6,3)/3<2.345 AND VAR3>MA(VAR3,450) AND MA(VAR4,61)/MA(VAR4,80)>0.923 AND CLOSE>MA(CLOSE,190);
VAR9:=VAR3>MA(VAR3,450) AND VAR7<-16.5 AND MA(VAR4,61)/MA(VAR4,80)>0.92 AND CLOSE>MA(CLOSE,215) AND (REF(OPEN,1)>REF(CLOSE,1) OR REF(OPEN,1)<REF(CLOSE,1)) AND (REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5)) AND VOL/CAPITAL<0.075;
(VAR8 OR VAR9);
{同時金叉 選股}
DIF:=EMA(CLOSE,9)-EMA(CLOSE,17);
DEA:=EMA(DIF,8);
MACD:=(DIF-DEA)*2;
RSV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
選股:CROSS(DIF,DEA) AND CROSS(J,D) AND CROSS(RSI1,RSI3);
{帶量突破 選股}
VAR1:=EMA(COST(80),10);
COUNT(CROSS(CLOSE,VAR1),2)>=1 AND VOL/CAPITAL>=0.1;
{攻擊箱頂 選股}
VAR1:=HHV(MA((LOW+HIGH+CLOSE+OPEN)/4,5),58);
BETWEEN(CLOSE,VAR1*1.001,VAR1) AND REF(VAR1,3)=VAR1 AND VOL>REF(VOL,2);
{果斷介入 選股}
VAR1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
VAR3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR4:=(VAR1+2*VAR2+3*VAR3)/6;
VAR5:=MA(VAR4,3)-STD(VAR4,3);
VAR6:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR7:=SMA(VAR6,3,1);
VAR8:=SMA(VAR7,3,1);
VAR9:=3*VAR7-2*VAR8;
CROSS(VAR9,VAR8) AND COUNT(VAR5<-12 AND VAR5>-14,3)>=1;
{暴裂旋風(fēng) 選股}
VAR1:=ABS(HIGH-LOW);
SUM(VAR1,7)/CLOSE>0.5 AND SUM(VAR1,7)/CLOSE<0.8 AND CLOSE>7 AND CLOSE<11;
{穩(wěn)贏劍抄底 N:1 100 12}
VAR1:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
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;
抄底:VAR5
{結(jié)合穩(wěn)贏劍指標(biāo)使用};
{領(lǐng)頭羊選股}
白色:=SMA(HIGH,21,2)*1.05,;
黃色:=SMA(LOW,21,2)*0.95;
粉色:=SMA(LOW,5,1);
綠色:=SMA(CLOSE,2,1),;
波段買入:=IF(CROSS(綠色,粉色),白色*1.05,粉色);
領(lǐng)頭羊:=IF(CROSS(綠色,白色),白色*1.10,黃色);
領(lǐng)頭羊>黃色 OR 波段買入>粉色
{ 綠線上穿紫線時,可作波段買入,綠線上穿白線時很可能是大牛股。
可作為預(yù)警選股公式}
{結(jié)合尋找領(lǐng)頭羊指標(biāo)使用};
{天堂星踏金浪1 選股}
VARC:=(2*CLOSE+HIGH+LOW)/4;
VARD:=LLV(LOW,34);
VARE:=HHV(HIGH,34);
VARF:=LLV(LOW,13);
VAR10:=HHV(HIGH,13);
VAR11:=EMA((VARC-VARF)/(VAR10-VARD)*100,5);
VAR12:=EMA((VARC-VARD)/(VARE-VARD)*100,8);
金浪:= VAR11;
AA:=EMA(VAR11,7);
海浪:= VAR12;
IF(CROSS(金浪,AA) AND AA<=25 ,1,0);
{黑馬絕技選股}
EMA13:=EMA(C,13);
EMA30:=EMA(C,30);
EMA60:=EMA(C,60);
EMA90:=EMA(C,90);
EMA120:=EMA(C,120);
EMA250:=EMA(C,250);
F1:=EMA30-EMA60<130/1000 AND EMA30-EMA90<230/1000 AND EMA30-EMA120<330/1000;
F2:=EMA60-EMA30<130/1000 AND EMA60-EMA90<230/1000 AND EMA60-EMA120<330/1000;
F3:=EMA90-EMA30<130/1000 AND EMA90-EMA60<230/1000 AND EMA90-EMA120<330/1000;
F4:=EMA120-EMA30<130/1000 AND EMA120-EMA60<230/1000 AND EMA120-EMA90<330/1000;
F5:=EMA30-EMA60<100/1000 AND EMA30-EMA90<200/1000;
FF1:=F1 AND F2 AND F3 AND F4 AND CROSS(EMA30,EMA60);
FF2:=F1 AND F2 AND F3 AND F4 AND CROSS(EMA(C,13),EMA30);
FF3:=F5 AND C>EMA250 AND CROSS(EMA30,EMA60);
G1:=EMA60-EMA90<220/1000 AND EMA60-EMA120<320/1000 AND EMA60-EMA250<420/1000;
G2:=EMA90-EMA30<220/1000 AND EMA90-EMA60<320/1000 AND EMA90-EMA250<420/1000;
G3:=EMA120-EMA60<220/1000 AND EMA120-EMA90<320/1000 AND EMA120-EMA250<420/1000;
G4:=EMA250-EMA60<220/1000 AND EMA250-EMA90<320/1000 AND EMA250-EMA120<420/1000;
GG1:=G1 AND G2 AND G3 AND G4 AND CROSS(EMA13,EMA30);
GG2:=G1 AND G2 AND G3 AND G4 AND CROSS(EMA30,EMA60);
FF1 OR FF2 OR FF3 OR GG1 OR GG2;
{黑馬起步選股 }
A1:=VOL=HHV(VOL,120);
A2:=CLOSE/OPEN>1.05;
TJ:=A1 AND A2;
TJ AND (REF(BARSLAST(TJ),1)>80 OR BARSSINCE(TJ)=0);
{底背離 選股}
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));
B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
底背離:B1>0 OR B2>0 OR B3>0;
{集成了MACD、KDJ、RSI三個指標(biāo)的底背離};
{蓄勢待發(fā) 選股}
V0:=EMA(C,5);
EMA10:=EMA(C,10);
EMA20:=EMA(C,20);
EMA30:=EMA(C,30);
EMA60:=EMA(C,60);
M1:=1000*EMA10/EMA60<=1015 AND 1000*EMA10/EMA60>=975;
M2:=1000*EMA20/EMA60<=1020 AND 1000*EMA20/EMA60>=980;
M3:=1000*EMA30/EMA60<=1015 AND 1000*EMA30/EMA60>=985;
M4:=M1 AND M2 AND M3 AND CROSS(V0,EMA10);
M5:=M1 AND M2 AND M3 AND CROSS(V0,EMA30);
T1:=1000*EMA10/EMA30<=1010 AND 1000*EMA10/EMA30>=990;
T2:=1000*EMA20/EMA30<=1010 AND 1000*EMA20/EMA30>=990;
T3:=T1 AND T2 AND CROSS(V0,EMA10);
T4:=T1 AND T2 AND CROSS(V0,EMA30);
M4 OR M5 OR T3 OR T4;
{突破指標(biāo) 選股}
{一是突破盤整;二是突破前高;三是突破平臺}
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2>0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
W4 AND COUNT(W4,5)=1;
{四線粘合 選股}
V0:=EMA(C,5);
V1:=EMA(C,10);
V2:=EMA(C,15);
V3:=EMA(C,30);
V4:=EMA(C,60);
M1:=1000*V1/V4<=1015 AND 1000*V1/V4>=975;
M2:=1000*V2/V4<=1020 AND 1000*V2/V4>=980;
M3:=1000*V3/V4<=1015 AND 1000*V3/V4>=985;
M4:=M1 AND M2 AND M3 AND CROSS(V0,V1);
M5:=M1 AND M2 AND M3 AND CROSS(V0,V3);
M4 OR M5;
{拉升在即 選股}
ABV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0)/25000,2);
M1:=EMA(ABV,12);
M2:=EMA(ABV,26);
MTM:=CLOSE-REF(CLOSE,1);
MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(ABS(MTM),6),6));
MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(ABS(MTM),12),12));
MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(ABS(MTM),26),26));
A:=((VOL)/(CAPITAL))*(100);
S:=((MA(A,30))/(MA(INDEXA,10)))*(MA(INDEXA,60));
Y:=((MA(A,120))/(MA(INDEXA,10)))*(MA(INDEXA,60));
X:=1;
拉升在即:S<X AND Y<X AND MMS>MML AND ABV>M1 AND CROSS(S,Y);
{前導(dǎo)選股漲 }
NN1:=IF(LFM.N<1,1,LFM.N);
M1:=IF(NN1>30,30,NN1);
MM1:=IF(LFM.M>60,60,LFM.M);
M2:=IF(MM1>M1,MM1,(M1+1));
LFMTMP:=2*REF(CLOSE,M1)-REF(CLOSE,M2);
QDBTMP1:=(2*SUM(CLOSE,M1)+SUM(CLOSE,(M2-M1))-SUM(CLOSE,M2))/M1;
QDBTMP2:=(2*SUM(CLOSE,M2)+SUM(CLOSE,(M2-M1))-SUM(CLOSE,(2*M2-M1)))/M2;
QDBTMP:=QDBTMP1-QDBTMP2;
TMP1:=(LFMTMP<LOW);
TMP2:=((LFMTMP>=LOW)AND(LFMTMP<=HIGH));
TMP3:=BARSLAST(TMP2);
TMP4:=REF(TMP3,1);
TMP5:=(LFMTMP<REF(LFMTMP,(TMP4+1)));
TMP6:=((2*REF(CLOSE,1)-REF(CLOSE,(M2-M1+1)))<(2*CLOSE-REF(CLOSE,(M2-M1))));
TMP7:=((QDBTMP>REF(QDBTMP,1))AND(REF(QDBTMP,1)<REF(QDBTMP,2)));
TMP8:=((2*REF(CLOSE,1)-REF(CLOSE,(M2-M1+1)))<=(2*CLOSE-REF(CLOSE,(M2-M1))));
TMP9:=(OPEN<CLOSE);
前導(dǎo)選股:((TMP1)AND(TMP8)AND(TMP9))OR((TMP2)AND(TMP5)AND(TMP6)AND(TMP7)AND(TMP9));
{前導(dǎo)選股跌}
NN1:=IF(LFM.N<1,1,LFM.N);
M1:=IF(NN1>30,30,NN1);
MM1:=IF(LFM.M>60,60,LFM.M);
M2:=IF(MM1>M1,MM1,(M1+1));
LFMTMP:=2*REF(CLOSE,M1)-REF(CLOSE,M2);
QDBTMP1:=(2*SUM(CLOSE,M1)+SUM(CLOSE,(M2-M1))-SUM(CLOSE,M2))/M1;
QDBTMP2:=(2*SUM(CLOSE,M2)+SUM(CLOSE,(M2-M1))-SUM(CLOSE,(2*M2-M1)))/M2;
QDBTMP:=QDBTMP1-QDBTMP2;
TMP1:=(LFMTMP>HIGH);
TMP2:=((LFMTMP>=LOW)AND(LFMTMP<=HIGH));
TMP3:=BARSLAST(TMP2);
TMP4:=REF(TMP3,1);
TMP5:=(LFMTMP>REF(LFMTMP,(TMP4+1)));
TMP6:=((2*REF(CLOSE,1)-REF(CLOSE,(M2-M1+1)))>(2*CLOSE-REF(CLOSE,(M2-M1))));
TMP7:=((QDBTMP<REF(QDBTMP,1))AND(REF(QDBTMP,1)<REF(QDBTMP,2)));
TMP8:=((2*REF(CLOSE,1)-REF(CLOSE,(M2-M1+1)))>=(2*CLOSE-REF(CLOSE,(M2-M1))));
TMP9:=(OPEN>CLOSE);
前導(dǎo)選股:((TMP1)AND(TMP8)AND(TMP9))OR((TMP2)AND(TMP5)AND(TMP6)AND(TMP7)AND(TMP9));
{利多方舟B選股}
{VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));}
VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
{DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.998),8);
DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.013),9);}
CROSS(VAR2,MA(VAR3,6)){,(LOW * 0.984),'B '),COLOR4440FF};
{DTLD頂天立地選股}
VAR1F:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);
VAR21:=SMA(VAR1F,3,1);
趨勢:=SMA(VAR21,3,1);
人氣:=SMA(趨勢,3,1);
出擊:CROSS(趨勢,人氣) AND (趨勢<30);
{短賣:IF(CROSS(人氣,趨勢) AND (人氣>75),85,100),COLOR008000,LINETHICK2; };
{主力進出選股}
ABV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0)/25000,2);
M1:=EMA(ABV,12);
M2:=EMA(ABV,26);
MTM:=CLOSE-REF(CLOSE,1);
MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(ABS(MTM),6),6));
MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(ABS(MTM),12),12));
MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(ABS(MTM),26),26));
MTGJ:=C-REF(C,1);
ZLGJ:=100*EMA(EMA(MTGJ,9),9)/EMA(EMA(ABS(MTGJ),9),9);
MAZL:=MA(ZLGJ,5);
主力進出:=MMS>REF(MMS,1) AND ZLGJ>REF(ZLGJ,1) AND CROSS(ABV,M2) AND ABV>REF(ABV,1) AND M1>REF(M1,1) AND M2>REF(M2,1);
主進主軌:=ABV>M2 AND CROSS(ABV,M1) AND CROSS(ZLGJ,MAZL);
主力進出 OR 主進主軌;
{前導(dǎo)選股異動漲選股}
NN1:=IF(LFM.N<1,1,LFM.N);
M1:=IF(NN1>30,30,NN1);
MM1:=IF(LFM.M>60,60,LFM.M);
M2:=IF(MM1>M1,MM1,(M1+1));
LFMTMP:=2*REF(CLOSE,M1)-REF(CLOSE,M2);
TMP1:=(LFMTMP>HIGH);
TMP2:=CLOSE>OPEN;
TMP3:=((2*REF(CLOSE,1)-REF(CLOSE,(M2-M1+1)))<(2*CLOSE-REF(CLOSE,(M2-M1))));
TMP4:=REF(CLOSE,1)<REF(OPEN,1);
前導(dǎo)選股:(TMP1)AND(TMP2)AND(TMP3)AND(TMP4);
{前導(dǎo)選股異動跌選股}
NN1:=IF(LFM.N<1,1,LFM.N);
M1:=IF(NN1>30,30,NN1);
MM1:=IF(LFM.M>60,60,LFM.M);
M2:=IF(MM1>M1,MM1,(M1+1));
LFMTMP:=2*REF(CLOSE,M1)-REF(CLOSE,M2);
TMP1:=(LFMTMP<LOW);
TMP2:=CLOSE<OPEN;
TMP3:=((2*REF(CLOSE,1)-REF(CLOSE,(M2-M1+1)))>(2*CLOSE-REF(CLOSE,(M2-M1))));
TMP4:=REF(CLOSE,1)>REF(OPEN,1);
前導(dǎo)選股:(TMP1)AND(TMP2)AND(TMP3)AND(TMP4);
{黑馬易找選股}
VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,30);
VAR4:=MA(CLOSE,60);
VAR5:=EMA(COST(85),7);
VAR6:=EMA(COST(15),7);
VAR7:=SUM(CLOSE*VOL*100,4)/SUM(VOL*100,4);
VAR8:=INTPART(VAR7*100)/100;
VAR9:=SUM(CLOSE*VOL*100,7)/SUM(VOL*100,7);
VARA:=INTPART(VAR9*100)/100;
VARB:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);
VARC:=INTPART(VARB*100)/100;
VARD:=EMA(CLOSE,5)-EMA(CLOSE,10);
VARE:=EMA(VARD,9);
VARF:=(-100)*(HHV(CLOSE,5)-CLOSE)/(HHV(CLOSE,5)-LLV(LOW,5))+100;
VAR10:=(-100)*(HHV(CLOSE,10)-CLOSE)/(HHV(CLOSE,10)-LLV(LOW,10))+100;
VAR11:=(-100)*(HHV(CLOSE,20)-CLOSE)/(HHV(CLOSE,20)-LLV(LOW,20))+100;
VAR12:=(-100)*(HHV(CLOSE,30)-CLOSE)/(HHV(CLOSE,30)-LLV(LOW,30))+100;
VAR13:=REF(VARE,1);
VAR14:=VARE;
VAR15:=VAR14-VAR13;
VAR16:=REF(VARD,1);
VAR17:=VARD;
VAR18:=VAR17-VAR16;
VAR19:=OPEN;
VAR1A:=CLOSE;
黑馬易找選股: VAR19<=VAR1 AND VAR19<=VAR2 AND VAR19<=VAR3 AND VAR1A>=VAR1 AND VAR1A>=VARC AND VAR15>0 AND VAR18>0;
{以逸待勞選股}
VAR1:=COST(10);
VAR2:=REF(CLOSE,7)/MA(REF(CLOSE,7),3)>=1.07 AND REF(CLOSE,7)=HHV(REF(CLOSE,7),3) AND MA(REF(VOL,7),2)/MA(REF(VOL,7),40)>=3 AND MA(REF(VOL,7),2)=HHV(MA(REF(VOL,7),2),3) AND REF(VOL,7)>REF(REF(VOL,7),1) AND REF(CLOSE,7)>REF(REF(CLOSE,7),1);
VAR3:=REF(REF(CLOSE,7),1);
VAR4:=SMA(MAX(REF(CLOSE,7)-VAR3,0),5,1)/SMA(ABS(REF(CLOSE,7)-VAR3),5,1)*100;
VAR5:=COUNT(VAR4<20,20)>=1;
VAR6:=(INDEXC-LLV(INDEXL,89))/(HHV(INDEXH,89)-LLV(INDEXL,89))*100;
VAR7:=SMA(VAR6,8,1);
VAR8:=SMA(VAR7,10,1);
VAR9:=REF(INDEXC,1);
VARA:=SMA(MAX(INDEXC-VAR9,0),6,1)/SMA(ABS(INDEXC-VAR9),6,1)*100;
VARB:=VARA>=75 AND VARA<90 AND VAR7>VAR8 AND BARSLAST(CROSS(VAR7,VAR8))<=21;
VAR2 AND VAR5 AND VARB;
{抓住漲停 選股}
Var11:=WINNER(CLOSE)*90;
K:=SMA(Var11,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
K>D AND J>K AND CLOSE>REF(CLOSE,1)*1.09 AND MA(VOL,10)>MA(VOL,45) AND VOL>MA(VOL,45);
{短線黑馬選股} 密碼:761207
{公式描述:K=1.4 90%成功率}
VAR1:=DMA(CLOSE,VOL/MA(VOL,4)/4);
VAR2:=DMA(CLOSE,VOL/MA(VOL,33)/33);
VAR3:=(CLOSE-VAR1)/VAR1*100<-11/K*100;
VAR4:=(VAR1-VAR2)/VAR2*100<-22.3/K*100;
VAR5:=VAR3 AND VAR4 AND (OPEN>CLOSE OR OPEN<CLOSE) AND
(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07 AND
(REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND
(REF(OPEN,2)>REF(CLOSE,2) OR REF
(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND (REF
(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)
<REF(CLOSE,5)) AND (REF(OPEN,6)>REF(CLOSE,6) OR REF(OPEN,6)<REF(CLOSE,6)) AND (REF(OPEN,7)>REF
(CLOSE,7) OR REF(OPEN,7)<REF(CLOSE,7));
VAR6:=DMA(CLOSE,VOL/MA(VOL,3)/3);
VAR7:=DMA(CLOSE,VOL/MA(VOL,33)/33);
VAR8:=(CLOSE-VAR6)/VAR6*100<-5;
VAR9:=(VAR6-VAR7)/VAR7*100<-18;
VARA:=(INDEXC-LLV(INDEXL,250))/(HHV(INDEXH,250)-LLV(INDEXL,250))*100;
VARB:=SMA(VARA,30,1);
VARC:=SMA(VARB,50,1);
VARD:=VAR8 AND VAR9 AND (OPEN>CLOSE OR OPEN<CLOSE) AND
(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.05 AND
(REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1));
VARE:=VARD AND COUNT(VARD,2)=1 ;
VAR5 OR VARE;
七劍選股公式 密碼:jingweiniao
1.{白金星星點燈}
{公式描述:20T 10% 100%}
GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
A:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2;
B:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;
E:=GJTJ1>60 AND GJTJ4>70;
ENTERLONG:A AND B AND E;
2.{黃金星星點燈}
{公式描述:20T 10% 94.05%}
GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
A:=BARSLAST(CROSS(50,GJTJ1))<3 AND BARSLAST(CROSS(GJTJ1,50))<3;
B:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;
ENTERLONG:A AND B;
3.{天瀑}
{公式描述:啟動金三角 (捉中線牛股起漲點)}
GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;
ENTERLONG:COUNT(XG,3)=1 AND XG;
4.{舍神}
{公式描述:階段震倉啟動點(黃金坑)}
GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
A:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3;
B:=BARSLAST(CROSS(GJTJ4,GJTJ2));
D:=GJTJ3<GJTJ4 AND GJTJ2<GJTJ4;
E:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3;
F:=GJTJ2<GJTJ3 AND GJTJ2<GJTJ4 AND GJTJ2<GJTJ1 AND GJTJ1=100;
B1:=A>0 AND REF(A,1)=0 AND REF(A,2)>0;
ENTERLONG:A AND B AND D AND E AND F;
5.{日月}
{公式描述:短線追漲 (高位橫盤突破)}
GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
A:=BARSLAST(CROSS(97,GJTJ1))<=1 AND BARSLAST(CROSS(GJTJ1,85))<=1;
B:=BARSLAST(CROSS(97,GJTJ2))<=1 AND BARSLAST(CROSS(GJTJ2,85))<=1;
A1:=A AND B;
AA:=BARSLAST(CROSS(97,GJTJ1))<=2 AND BARSLAST(CROSS(GJTJ1,85))<=1;
BA:=BARSLAST(CROSS(97,GJTJ2))<=2 AND BARSLAST(CROSS(GJTJ2,85))<=1;
A2:=AA AND BA ;
AAA:=BARSLAST(CROSS(97,GJTJ1))<=3 AND BARSLAST(CROSS(GJTJ1,85))<=1;
BAA:=BARSLAST(CROSS(97,GJTJ2))<=3 AND BARSLAST(CROSS(GJTJ2,85))<=1;
A3:=AAA AND BAA ;
B1:=REF(A1,1);
B2:=REF(A2,1);
B3:=REF(A3,1);
D1:=GJTJ1=100 AND GJTJ2=100 AND A1 ;
D2:=GJTJ1=100 AND GJTJ2=100 AND A2 ;
D3:=GJTJ1=100 AND GJTJ2=100 AND A3 ;
ENTERLONG:D1 OR D2 OR D3;
6.{青干}
{公式描述:藍三角啟動 (精確定位起漲第一日)}
GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
A:=BARSLAST(CROSS(95,GJTJ1))<=2;
B:=BARSLAST(CROSS(95,GJTJ2))<=2;
E:= GJTJ4<GJTJ1 AND GJTJ1<GJTJ2 AND GJTJ1<GJTJ3;
F:=GJTJ2>50 AND GJTJ3>50;
G:=GJTJ1=100 AND GJTJ2=100;
TX:=COUNT(G,2)=1;
ENTERLONG:A AND B AND E AND F AND TX;
7.{莫問}
{公式描述:銀邊啟動 (波段啟動前兆)}
GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
A:=GJTJ3=100;
B:=GJTJ4<90;
ENTERLONG:COUNT(A,2) = 2 AND B;
8.{競星}
{公式描述:啟動金三角 (捉中線牛股起漲點)}
GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
A:=GJTJ1=GJTJ2 AND GJTJ2=GJTJ3 AND GJTJ1=100 AND GJTJ4>96;
B:=COUNT(A,2)=1;
D:=GJTJ1<GJTJ2 AND GJTJ1<GJTJ3 AND GJTJ1<GJTJ4 AND GJTJ2<GJTJ3 AND GJTJ4<95;
YH:=INDEXC/REF(INDEXC,1)*REF(C,1);
YH1:=REF(C,1)+C-INDEXC/REF(INDEXC,1)*REF(C,1);
X1:=EMA(YH1,7);
X2:=EMA(YH1,14);
X3:=EMA(X1,14);
E:=X1>X2 AND X2>X3;
ENTERLONG:B AND D AND E;
套牢盤----真誠幫助大家
短線套牢盤:EMA(100*(1-WINNER(1.1*C)),1),COLORRED,LINETHICK2;
中線套牢盤:EMA(100*(1-WINNER(1.2*C)),1),COLORGREEN ,LINETHICK2;
長線套牢盤:EMA(100*(1-WINNER(1.5*C)),1),COLORYELLOW,LINETHICK2; 如果會用,就不用理回大盤,沒周都會賺錢.大家自己酌磨吧.
{MACD美如畫 通達信}
STICKLINE(C>0,0,60,6,0),COLORFFB0DC;
STICKLINE(C>0,0,-45,6,0)COLORFFB000;
DIFF1:= EMA(C,3) - EMA(C,13);
DEA1 := EMA(DIFF1,9);
MACD1:= 2*(DIFF1-DEA1)*10;
DIFF2:= EMA(C,5) - EMA(C,26);
DEA2 := EMA(DIFF2,9);
MACD2:= 2*(DIFF2-DEA2)*10;
DIFF3:= EMA(C,7) - EMA(C,89);
DEA3 := EMA(DIFF3,21);
MACD3:= 2*(DIFF3-DEA3)*10;
{DRAWGBK(C>0,COLORRGB(255,255,220),COLORRGB(5,100,255),1),COLORF80606;}
IF(MACD3>=0,MACD3,DRAWNULL)LINETHICK4,COLOR009E3A;
STICKLINE(MACD3>=0,0,MACD3,4,0),COLOR009E3A;
IF(MACD3<0,-MACD3,DRAWNULL)LINETHICK4,COLOR646464;
STICKLINE(MACD3<0,0,-MACD3,4,0),COLOR646464;
IF(MACD2>=0,MACD2,DRAWNULL)LINETHICK4,COLOR007D19;
STICKLINE(MACD2>=0,0,MACD2,4,0),COLOR007D19;
IF(MACD2<0,-MACD2,DRAWNULL)LINETHICK4,COLOR555555;
STICKLINE(MACD2<0,0,-MACD2,4,0),COLOR555555;
IF(MACD1<0,-MACD1,DRAWNULL)LINETHICK4,COLOR006400;
STICKLINE(MACD1<0,0,-MACD1,4,0),COLOR006400;
STICKLINE(MACD1<0,0,-MACD1,4,0),COLOR414141;
STICKLINE(MACD3,0,-ABS(MACD3)*0.6,4,0),COLOR232323;
STICKLINE(MACD1,0,-ABS(MACD1)*0.6,4,0),COLOR0F0F0F;
X1:=MA(LLV(C,8)*1.1,13);
X2:=MA(HHV(C,21)*0.9,13);
X3:=MA(LLV(INDEXC,8)*1.1,13);
X4:=MA(HHV(INDEXC,21)*0.9,13);
資金進出:=3*(MA(C,1)-(X1+X2)/2-(X1+X2)/2*((X3+X4)/2-EMA(INDEXC,3))/((X3+X4)/2));
(C>0,資金進出),COLORSTICK;
{桂林山水 副圖}
空倉區(qū):0,POINTDOT,COLORRED;
持股區(qū):0,POINTDOT,COLORGREEN;
變盤點:0,POINTDOT,COLORYELLOW;
{DRAWGBK(C>0, COLORRGB(255,255,0), COLORRGB(0,0,255),1); }
A:=(3*C+L+O+H)/6;
DK:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)
+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
VA1:=EMA(DK,3);
VA2:=EMA(VA1,2);
LA:=VA1-VA2;
LB:=VA2-VA1;
桂林山水甲天下:-0.05,COLORGREEN,POINTDOT;
股市峰谷任逍遙:0.05,COLORFFFF00,POINTDOT;
{FILLRGN(LA>LB,LA,0),COLOR339900;
FILLRGN(LA<LB,LB,0),COLOR555555;}
STICKLINE(LA>LB,LA,0,6,0),COLOR339900;
STICKLINE(LA<LB,LB,0,6,0),COLOR555555;
STICKLINE(LA>LB,LB,0,6,0),COLOR559933;
STICKLINE(LA<LB,LA,0,6,0),COLORGRAY;
DRAWICON(LA>LB,0,11);
DRAWICON(LA<LB,0,10);
DRAWICON(CROSS(LA,LB) OR CROSS(LB,LA),0,12);
{《漓江漁歌》}
VARA:=MA(CLOSE,20);
RSV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27));
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
D2:=SMA(K,2,1);
T1:=(3*K-2*D)*100;
天空: STICKLINE(T1,0,120,6,0),LINETHICK7,COLORFF8000;
山:=(3*K-2*D)*100;
桂山: STICKLINE(山,0,山,5,0),COLOR00FFDD;
STICKLINE(山,0,山*0.95,5,0),COLOR00FFBB;
STICKLINE(山,0,山*0.88,5,0),COLOR00FF99;
STICKLINE(山,0,山*0.8,5,0),COLOR00DD99;
STICKLINE(山,0,山*0.71,5,0),COLOR00BB99;
STICKLINE(山,0,山*0.6,5,0),COLOR00AA99;
STICKLINE(山,0,山*0.5,5,0),COLOR009999;
STICKLINE(山,0,山*0.4,5,0),COLOR008899;
T2:=((100-山)-100)*2/3;
漓江水:STICKLINE(T2,T2,-72,6,0),LINETHICK7,COLORFFBB00;
倒影:T2,COLOR00FFCC,STICK;
STICKLINE(倒影,0,倒影*4/5,6,0),COLOR00CC99;
STICKLINE(倒影,0,倒影*3/5,6,0),COLOR009999;
STICKLINE(倒影,0,倒影*2/5,6,0),COLOR006699;
頂線:=100-((HIGH-VARA)/VARA);
RSV2:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1:=SMA(RSV2,3,1);
VAR2:=SMA(VAR1,3,1);
買入:=VAR1<16 AND VAR2<21 ;
賣出預(yù)警:=T1>=88 OR 頂線>=88;
賣出:=CROSS(頂線,T1) OR CROSS(90,T1);
T3:=買入;
打漁船:DRAWTEXT(FILTER(T3,2),山-45,'︼'),COLOR0000FF;
T4:=賣出預(yù)警 OR 賣出;
南歸雁:DRAWTEXT(FILTER(T4,2),山+20,'ω'),COLOR0000FF;
{DRAWTEXT(FILTER(INDEXC,90,0,'●'),COLORFFFFFF;};
{資金進場日選股}
A1:=DYNAINFO(6);
A2:=IF(LOW>A1,0,IF(HIGH<A1,1,(A1-LOW+0.01)/(HIGH-LOW+0.01)));
A3:=VOL/WINNER(LOW);
A4:=REF(HHV(CLOSE,120),1);
A5:=REF(LLV(CLOSE,120),1);
A6:=100*(CLOSE-A5)/(A4-A5);
A7:=A2>0 OR A2=1;
A8:=A7 AND A3/REF(A3,3)>=3 AND A6<80;
A11:=IF(FILTER(A8,3),5,0);
資金進場日:A11>0,8;
{資金加倉日選股}
A:=WINNER(CLOSE+CLOSE*15/100)*100;
B:=WINNER(CLOSE+CLOSE*0/100)*100;
CC:=A-B;
D:=(WINNER(CLOSE-CLOSE*0.1/100)-WINNER(CLOSE-CLOSE*15/100))*100;
E:=CC<3 AND D<0.5 AND OPEN!=LOW;
A1:=DYNAINFO(6);
A2:=IF(LOW>A1,0,IF(HIGH<A1,1,(A1-LOW+0.01)/(HIGH-LOW+0.01)));
A3:=VOL/WINNER(LOW);
A4:=REF(HHV(CLOSE,120),1);
A5:=REF(LLV(CLOSE,120),1);
A6:=100*(CLOSE-A5)/(A4-A5);
A7:=A2>0 OR A2=1;
A8:=A7 AND A3/REF(A3,3)>=3 AND A6<80;
A9:=REF(A8,1) OR REF(A8,2) OR REF(A8,3) OR REF(A8,4);
A10:=A8 AND A9;
A11:=IF(FILTER(A8,3),5,0);
A12:=IF(FILTER(A10,3) OR E,10,0);
資金加倉日:A12>0;
資金進場日 or 資金進場日選股的效果不好。我就不發(fā)了。
{股神選股}
AA:=LLV(LOW,36);
BB:=HHV(HIGH,30);
DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);
股神:=DD;
股海:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);
買入:CROSS(股海,90) AND (股神<40);
{股神抄底}
VAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
VAR5:=CROSS(VAR3,VAR4) AND VAR3<20;
股神抄底:FILTER(VAR5,10)=1;
油門
VAR1:=DMA(EMA(CLOSE,5),SUM(AMOUNT,5)/3/CAPITAL);
VAR2:=DMA(EMA(CLOSE,10),SUM(VOL,10)/3/2/CAPITAL);
VAR3:=1-(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
VAR4:=REF(CLOSE,1);
VAR5:=SMA(MAX(CLOSE-VAR4,0),3,1)/SMA(ABS(CLOSE-VAR4),3,1);
油料: VAR5*VAR3*IF(SUM(VAR1-REF(VAR1,1),3)>=0.5,0.5,SUM(VAR1-REF(VAR1,1),3)), COLORSTICK;
{黃金區(qū)選股1}
VAR13:=SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100;
黃金區(qū): DRAWICON(IF(VAR13<15,15,0),13,12),COLORYELLOW;
{黃金區(qū)選股2}
VAR4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR5:=SMA(VAR4,13,8);
趨勢:=CEILING(SMA(VAR5,13,8));
操盤線:=MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5);
黃金區(qū)選股2:FILTER(趨勢>75 AND CROSS(操盤線,趨勢),5);
{黃金區(qū)選股3}
VAR4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR5:=SMA(VAR4,13,8);
VAR8:=EMA(C,5);
VAR9:=MA((LLV(C,9))*1.1,14);
VAR10:=2*VAR9-VAR8-C*0.1;
VAR11:=IF(((VAR8-VAR10)*5>0),(POW((VAR8-VAR10)*5,2))/10,(-1*(POW((VAR8-VAR10)*(5),2)))/(10));
VAR12:=IF((VAR11>0),VAR11-0,12);
趨勢:=CEILING(SMA(VAR5,13,8)),LINETHICK2,COLOR0000FF;
FILTER(CROSS(趨勢,VAR12)AND 趨勢>REF(C,1) OR 趨勢>REF(趨勢,1)AND 趨勢<35 AND C>REF(C,1),5);
{主力進場選股}
VAR1:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1)*VAR1;
VAR4:=SMA(VAR3,3,1);
CROSS(VAR3,VAR4);
大智慧精品公式改
{20W 主圖}
多:EMA(C,3),COLORYELLOW;
空:EMA(C,5),COLOR00FF00;
均衡:EMA(空,5),COLORWHITE,;
VARF1:=COUNT(CROSS(多,均衡),2)=1;
VARF2:=COUNT(CROSS(空,均衡),2)=1;
ZAI:=FILTER(VARF1 AND VARF2,2);
DRAWTEXT(ZAI,均衡,' →◆●¤主升行情'),COLORFF00FF;
VV2:=REF(CLOSE,1);
VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100;
DRAWICON(REF(VV3,1)>81 AND VV3<80,HIGH,2);
DRAWTEXT(REF(VV3,1)>81 AND VV3<80,HIGH,' →◆●沽空↓'),COLORYELLOW;
VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;
DRAWTEXT(IF(CLOSE<VF1 AND VOL/240>MA(VOL,5)/240 AND CLOSE>=REF
(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'☆'),COLORRED;
VARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);
DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(VARA>=VARB AND VARA<-17,3) AND
REF(LOW,1)=LLV(LOW,120),1,0),LOW,'★注意買入');
VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,VARR1),HIGH,2);
DRAWTEXT(CROSS(82,VARR1),HIGH,'短空↓'),COLORYELLOW;
VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR2:=REF(VAR1,1);
VAR3:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100;
HY3:=IF(COUNT(VAR3<20,5)>=1 AND COUNT(VAR1=LLV(VAR1,10),10)>=1 AND
CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);
DRAWTEXT(HY3,LOW,' →◆●▲注意買入'),COLORRED;
S:=MA(VOL,5)/MA(VOL,60),COLORRED,,LINETHICK2;
A:=MA(S,5),COLORGREEN,,LINETHICK2;
BIAS:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
F:=MA(S,121);
RSV:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
K:=SMA(RSV,15,1);
D:=SMA(K,15,1);
J:=3*K-2*D;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(84,RSI) , HIGH,' →◆● 逃頂!!◆● '),COLORYELLOW ;
S1:=IF((J<11 AND BIAS>-11 AND CROSS( S,F) AND (S-F)>0.010),2,0),STICK,LINETHICK3,COLORGREEN;
DRAWTEXT(S1=2,LOW,' →◆● 關(guān)注!! ◆● '), COLORGREEN;
中軌:HHV(MA(H,13),13),COLORRED,LINETHICK2;
趨勢:LLV(MA(H,13),1),COLORGREEN,LINETHICK2;
{主力進場2 副圖}
VARQ1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VARQ2:=SMA(ABS(LOW-VARQ1),13,1)/SMA(MAX(LOW-VARQ1,0),10,1);
VARQ3:=EMA(VARQ2,10);
VARQ4:=LLV(LOW,33);
VARQ5:=EMA(IF(LOW<=VARQ4,VARQ3,0),3)*100;
主力進場:STICKLINE(VARQ5>REF(VARQ5,1),0,VARQ5,7,0 ),COLORFFFF00;
VAR1:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:SMA(VAR2,3,1)*VAR1,LINETHICK2,COLORRED;
VAR4:SMA(VAR3,3,1),LINETHICK2,COLOR0099FF;
VAR9:=CROSS(VAR4,VAR3) AND VAR3>80;
STICKLINE(VAR9,VAR3-5,100,1,1),LINETHICK2,COLORYELLOW;
DRAWTEXT(VAR9 AND COUNT(VAR9,10)=1,VAR3-15,'PL'),LINETHICK2,COLORYELLOW;
AA:=SMA(ABS(L-REF(L,1)),30,1)/SMA(MAX(L-REF(L,1),0),30,1);
TP:EMA(IF(L<=LLV(L,30),AA,0),3)*1000,COLORFF00FF,LINETHICK2;
HL99 := MA(COST(99 ),5);{獲利99}
HL80:=MA(COST(80),5);{獲利80}
HL20:=MA(COST(20),5);{獲利20}
A5:=(HL99-HL80)/HL80*100;
A6:=(HL80-HL20)/HL20*100;
A8:=IF(A6<10 ,10000 ,0 );
A9:=IF(A6<15 ,5000 ,0 );
A10:=IF(A6<20 ,2500 ,0 );
高密集:A8,COLORBLUE,LINETHICK2;
中密集:A9,COLORWHITE,LINETHICK2;
低密集:A10,COLOR00FF00,LINETHICK2;
{猴王出世 副圖}
VAR1:=MA(CLOSE,5);
VAR2:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR3:=SMA(VAR2,5,1);
VAR4:=REF(CLOSE,1);
VAR5:=SMA(MAX(CLOSE-VAR4,0),8,1)/SMA(ABS(CLOSE-VAR4),8,1)*100;
VAR6:=SMA(MAX(CLOSE-VAR4,0),21,1)/SMA(ABS(CLOSE-VAR4),21,1)*100;
花果山: IF(100-VAR3<20 AND VAR6<25,VAR3+15,32.86),STICK,LINETHICK1,COLORF00FF0;32.86,STICK,LINETHICK1,COLOR000000;
山頂: IF(100-VAR3<30,VAR3+5,32.86),STICK ,LINETHICK1, COLORRED;32.86,STICK ,LINETHICK1, COLOR000000;
山腰: IF(100-VAR3<50,VAR3,32.86),STICK ,LINETHICK1, COLORGREEN;32.86,STICK ,LINETHICK1, COLOR000000;
山腳: IF(100-VAR3<50,VAR3-15,32.86),STICK ,LINETHICK1, COLORYELLOW;32.86,STICK ,LINETHICK1, COLOR000000;
水簾洞: IF(VAR5<40 AND VAR6<50 AND VAR3>70,30,100-VAR3),STICK,LINETHICK7,COLOR0FFF00;100-VAR3,STICK,LINETHICK7,COLOR000000;
猴王: 100-VAR3, , COLORRED;
猴王出世1: CROSS(VAR5,10) AND CROSS(VAR6,20)*125, , COLORRED;
猴王出世2: CROSS(猴王,10)*125, , COLORRED;
{DRAWICON(猴王出世1=125,130,1);};
{東方不敗 副圖}
VAR1:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
VAR2:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
VAR3:=SUM(VAR1,5);
VAR4:=SUM(VAR2,5);
VAR5:=IF(VAR3>VAR4,(VAR3-VAR4)/VAR3,IF(VAR3=VAR4,0,(VAR3-VAR4)/VAR4));
VAR6:=MA(VAR5,5);
VAR8:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
VAR9:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
VARA:=SUM(VAR8,3);
VARB:=SUM(VAR9,3);
VARC:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB));
VARD:=MA(VARC,3);
火: BARSLAST(EMA(CLOSE,5)<REF(EMA(CLOSE,5),1)), COLORRED;
VARE:=HHV(CLOSE,2);
VARF:=BARSLAST(VARE<REF(VARE,2));
VAR10:=IF(VARF>=1,LLV(VARE,VARF),LOW);
VAR11:=VAR10+VAR10*VARF*0.5/100;
VAR12:=IF(VAR11<REF(VAR11,1),MA(LOW,3),VAR11);
VAR13:=VAR10+VAR10*(VARF-1)*1.618/100;
山: COUNT(EMA(CLOSE,5)>REF(EMA(CLOSE,5),1),5);
VAR14:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
VAR15:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
VAR16:=SUM(VAR8,3);
VAR17:=SUM(VAR9,3);
VAR18:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB));
VAR19:=MA(VARC,3);
買入或持股: (山>0,火,0,2,0), COLORRED;
STICKLINE(山>0,火,0,2,0), COLORRED;
VAR1A:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
VAR1B:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
VAR1C:=SUM(VAR8,3);
VAR1D:=SUM(VAR9,3);
VAR1E:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB));
VAR1F:=MA(VARC,3);
下跌→拋出: (山>0,火,山,2,1), COLORF0F000;
STICKLINE(山>0,火,山,2,1), COLORF0F000;
VAR20:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
VAR21:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
VAR22:=SUM(VAR8,3);
VAR23:=SUM(VAR9,3);
VAR24:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB));
VAR25:=MA(VARC,3);
觀望: STICKLINE(山=0 AND 火=0,0,1,4,1), COLORBLUE;
VAR26:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
VAR27:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
VAR28:=SUM(VAR8,3);
VAR29:=SUM(VAR9,3);
VAR2A:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB));
VAR2B:=MA(VARC,3);
植被: (山<火,火,山,1,0), COLOR00FF00;
STICKLINE(山<火,火,山,1,0), COLOR00FF00;
VAR2C:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
VAR2D:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
VAR2E:=SUM(VAR8,3);
VAR2F:=SUM(VAR9,3);
VAR30:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB));
VAR31:=MA(VARC,3);
VAR32:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*10;
K: SMA(SMA(VAR32,2,1),2,1),COLOR00FF00 , ;
D: SMA(SMA(SMA(VAR32,2,1),2,1),3,1), COLORYELLOW;
J: (3*SMA(SMA(VAR32,2,1),2,1)-2*SMA(SMA(SMA(VAR32,2,1),2,1),3,1)), COLORF00FF0;
VAR33:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));
VAR34:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));
VAR35:=SUM(VAR8,3);
VAR36:=SUM(VAR9,3);
VAR37:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB));
VAR38:=MA(VARC,3);
STICKLINE(REF(山,1)=0 AND 山>0,0,-1,2,0), COLORRED;
DRAWTEXT(REF(火,3)>0 AND REF(火,2)>0 AND REF(火,1)>0 AND 火=0 AND REF(火,1)>山,REF(火,1),'調(diào)整'),COLORYELLOW , ;
{逃頂100% 副圖}
VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
成交:=VOL;
買盤:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));
賣盤:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));
買賣差:=(買盤 + 賣盤);
STICKLINE((VOL > 0),VOL,0,4,1),COLORFFFFFF;
STICKLINE((買賣差 > 0),0,買賣差,4,0),COLOR0000FF;
STICKLINE((買賣差 < 0),0,買賣差,2,0),LINETHICK3,COLOR33FF33;
量比1:=(VOL / MA(VOL,5));
VAR10:=買盤;
VAR20:=賣盤;
JX1:=BARSSINCE(買盤);
JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);
JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);
VAR30:=MA(VOL,JY2);
動神:=買盤;
鬼力:=VAR20;
神比:=(動神 / VAR30);
鬼比:=(鬼力 / VAR30);
VAR2:=(HIGH - LOW);
VAR3:=ABS((OPEN - CLOSE));
VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));
VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);
VAR6:=((VAR3 / VAR2) * VOL);
VAR7:=((VAR4 / VAR2) * VOL);
VAR8:=((VAR5 / VAR2) * VOL);
VAR9:=IF(((VOL / CAPITAL) > 0.001),1,EXP(ABS(LOG(((VOL / CAPITAL) * 100)))));
VARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);
VARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60)));
VARC:=((MA(CLOSE,5) < MA(CLOSE,10)) AND (MA(CLOSE,10) < MA(CLOSE,30)));
VARD:=REF(CLOSE,1);
VARE:=((SMA(MAX((CLOSE - VARD),0),6,1) / SMA(ABS((CLOSE - VARD)),6,1)) * 100);
VAR40:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),VAR6,動神) + 動神) / 2);
VAR41:=((IF(((VAR7 > VAR6) AND (VAR7 > VAR8)),VAR7,動神) + 動神) / 2);
VAR42:=((IF(((VAR8 > VAR6) AND (VAR8 > VAR7)),VAR8,動神) + 動神) / 2);
VAR50:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),VAR6,鬼力) + 鬼力) / 2);
三日上攻:=MA((((VAR40 + VAR41) + VAR42) / 3),JY2);
三日下攻:=MA(VAR50,JY2);
多頭:STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,4,1),COLOR0000FF;
空頭:STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,4,1),COLOR00FF00;
STICKLINE((鬼力 > 0),鬼力,0,4,0),COLORFF3399;
加倉:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,4,0),COLOR00FFFF;
減倉:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),0,VAR6,4,0),COLORFF0000;
洗盤:STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,4,0),COLORFFFFFF;
高賣:STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,4,0),COLORFF00FF;
相對地量:=STICKLINE(((VAR9 > 2) AND (VOL < (MA(VOL,5) / 2))),0,VOL,3,0);
{天狼50+操盤手 主圖}
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
波動回調(diào)提示圖:MA(CLOSE,10000);
買線:EMA(C,2),COLORRED;
賣線:EMA(SLOPE(C,21)*20+C,42),COLORGREEN;
指導(dǎo)線: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),LINETHICK1,COLORFFFFFF;
界: MA(CLOSE,27),LINETHICK1,COLOR00FFFF;STICKLINE((MA15 > REF(MA15,1)),MA15,MA15,9,6),LINETHICK2,COLOR0000FF;
STICKLINE((MA15 < REF(MA15,1)),MA15,MA15,9,6),LINETHICK2,COLORFF0000;
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'上拐點'),COLOR00FFFF;
DRAWTEXT(CROSS(MA15,FF),(HIGH * 1.02),'下拐點'),COLOR00FF00;
DRAWTEXT(CROSS(85,RSI),(HIGH * 1.02),'回調(diào)!'),COLORFFFFFF;
BU:=CROSS(買線,賣線);
SEL:=CROSS(賣線,買線);
STICKLINE(買線>=賣線,CLOSE,OPEN,4.5,0),COLOR0000AA;
STICKLINE(買線>=賣線,CLOSE,OPEN,3,0),COLOR0000CC;
STICKLINE(買線<賣線,CLOSE,OPEN,4.5,0),COLORAAAA00;
STICKLINE(買線<賣線,CLOSE,OPEN,4,0),COLORBBBB00;
STICKLINE(CROSS(買線,賣線) OR CROSS(賣線,買線),OPEN,CLOSE,3,0),COLOR00FFFF;
{雪中蓮 副圖}
{N 5,50,27; S1 2,4,3; S 2,4,3}
種:=100*(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N));
芽:=SMA(種,S1,1);
土:=LLV(LOW,36);
肥:=EMA((CLOSE-土)/(HHV(HIGH,30)-土)*4,4)*25;
水:=(肥 -LLV(肥,21))/(HHV(肥,21)-LLV(肥,21))*100;
春 :=(HIGH+LOW+OPEN+3*CLOSE)/6;
夏 :=(春-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
秋 := SMA(夏,3,1);
冬 := SMA(秋,2,1);
季: SMA(芽,S2,1);
節(jié): SMA(季,S2,1);
播種:=CROSS(季,15);
吐芽:=CROSS(季,節(jié)) AND 季<40;
拔節(jié):=CROSS(水,90) &&肥<40;
孕蕾:IF(播種,10,IF(吐芽,20,IF(拔節(jié),30,0)));
綻開:IF(CROSS(節(jié),季) AND 節(jié)>75,90,100);
風(fēng) : 3*秋-2*冬;
向 : MA(風(fēng),3);
{水都觀音 副圖}
昨收:=REF(C,1);
最高價偏離:=ABS(H-昨收);
最低價偏離:=ABS(L-昨收);
高低偏離:=ABS(H-REF(L,1));
昨K線長:=ABS(昨收-REF(O,1));
穩(wěn)定性測度:=IF(最低價偏離>高低偏離 AND 最低價偏離>最高價偏離,最低價偏離+最高價偏離/2+昨K線長/4,高低偏離+昨K線長/4);
強弱測度:=C+(C-O)/2-REF(C,1);
振動系數(shù):=強弱測度/穩(wěn)定性測度;
振動量:=振動系數(shù)*MAX(最高價偏離,最低價偏離);
振動線:=SUM(振動量,0);
均125:=EMA(振動線,125);
觀音顯圣:振動線>均125,COLORFF00FF, NODRAW;
均240:=EMA(振動線,240);
朝拜觀音:FILTER(CROSS(振動線,均240),24),LINETHICK0,COLORYELLOW,NODRAW;
DRAWICON(朝拜觀音,均125-0.10,9);
慈航普渡:均125>=REF(均125,1),COLORRED,NODRAW;
IF(慈航普渡,均125,DRAWNULL),COLORRED,LINETHICK2;
{IF(C,均125,DRAWNULL),COLOR004F00,LINETHICK1;}
STICKLINE(NOT(觀音顯圣),均125,振動線+(均125-振動線)*0.75,5,0),COLOR004F00;
STICKLINE(NOT(觀音顯圣),振動線+(均125-振動線)*0.75,振動線+(均125-振動線)*0.5,5,0),COLOR007600;
STICKLINE(NOT(觀音顯圣),振動線+(均125-振動線)*0.5,振動線+(均125-振動線)*0.25,5,0),COLOR00AD00;
STICKLINE(NOT(觀音顯圣),振動線,振動線+(均125-振動線)*0.25,5,0),COLOR00DE00;
STICKLINE(觀音顯圣,均125,均125+(振動線-均125)*0.25,5,0),COLORFA00FF;
STICKLINE(觀音顯圣,均125+(振動線-均125)*0.25,均125+(振動線-均125)*0.5,8,0),COLORFA50FF,LINETHICK3;
STICKLINE(觀音顯圣,均125+(振動線-均125)*0.5,均125+(振動線-均125)*0.75,8,0),COLORFA93FF,LINETHICK3;
STICKLINE(觀音顯圣,振動線,均125+(振動線-均125)*0.75,8,0),COLORFFCCFF;
均150:=EMA(振動線,150);
{IF(C,均150,DRAWNULL),COLOR88BBBB;}
均175:=EMA(振動線,175);
IF(C,均175,DRAWNULL),COLORFFCC00;
均200:=EMA(振動線,200);
IF(C,均200,DRAWNULL),COLOR777777;
均225:=EMA(振動線,225);
IF(C,均225,DRAWNULL),COLORBBBBBB;
{五星連珠 副圖}
K2:=EMA(C,5);
K3:=EMA(C,10);
K5:=EMA(C,30);
K6:=2*(K2-K5);
K7:=2*(K2-K3);
K8:=2*(K7+K6);
中線指示:STICKLINE(CROSS(K8,0),0,40,8,0),COLORRED,LINETHICK2;
P1:= MA(CLOSE,2);
P2:= MA(CLOSE,5);
DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
VMA1:=MA (VOL,2)/100000;
VMA2:=MA(VOL,5)/100000;
PPDAY:= BARSLAST(CROSS(P1,P2));
VVDAY:= BARSLAST(CROSS(VMA1,VMA2));
MACDDAY:= BARSLAST(CROSS(DIFF,DEA));
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
金叉:IF(REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA),25,0),LINETHICK2,COLORAACCFF;
SJCJD:= IF((PPDAY<=3 AND VVDAY<=3 AND MACDDAY<=3)AND (DIFF<0),1,0);
STICKLINE(SJCJD,50,60,6,0),COLORWHITE,LINETHICK2;
短趨勢:=((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)-50)*1.032+50);
VAR2:=(2*CLOSE+HIGH+LOW+OPEN)/5;
VAR3:=LLV(LOW,34);
VAR4:=HHV(HIGH,34);
長趨勢:=EMA((VAR2-VAR3)/(VAR4-VAR3)*100,13),COLOR00FF00;
判斷底:SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))))*15;
VAR5:=CROSS(短趨勢,長趨勢)AND 長趨勢<25;
STICKLINE(VAR5,60,70,8,0) ,COLORGREEN;
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)*(VAR4-CLOSE))/(VAR4- VAR3));
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);
多頭:EMA(((((B009 + B010)/2) - B011) * 5),6),LINETHICK2;
空頭:=(((-1*((B007 + B003) + 多頭))/3) * 1.5);
多均:EMA(多頭,4),LINETHICK2;
空均:=EMA(空頭,4);
C026:=WINNER(CLOSE);
W:=(DMA(C026,(VOL/CAPITAL)) * 100);
XD1:=EMA(W,6);
莊家控盤:((W-XD1)*15),COLORSTICK,LINETHICK2;
STICKLINE(CROSS(多頭,空均),80,70,8,0),COLORYELLOW;
VARB1:=(2*CLOSE+HIGH+LOW)/4;
VARB2:=LLV(LOW,34);
VARB3:=HHV(HIGH,34);
VARB4:=MA(HIGH,8);
XX1:=EMA((VARB1-VARB2)/(VARB3-VARB2)*100,13);
YY:=EMA(0.667*REF(XX1,1)+0.333*XX1,2) , ;
STICKLINE(CROSS(XX1,20) AND YY<XX1 AND VARB4>REF(VARB4,1),70,80,8,0),COLORFF0000;
逃頂:IF(FILTER(CROSS(YY,XX) AND XX>80 ,3),70,90),COLORFF0000,LINETHICK2;
DRAWTEXT(CROSS(多頭,多均)AND 多均<-15,多均,'★'),COLORRED;
DRAWTEXT(CROSS(多均,多頭)AND 多均>35,多均+7,'★'),COLOR00FF00;
{雨青升天 副圖}
MA4:MA(CLOSE,4),COLORFFFFFF;
MA10:MA(CLOSE,10),COLORYELLOW;
MA20:MA(CLOSE,20),COLORFF00FF;
MA62:MA(CLOSE,62),COLORFFFF00;
SMA4:= REF(SLOPE(MA4,2),1)<0 AND SLOPE(MA4,2)<=0 AND REF(SLOPE(MA4,2),1)<SLOPE(MA4,2);
SMA10:= REF(SLOPE(MA10,2),1)<0 AND SLOPE(MA10,2)<=0 AND REF(SLOPE(MA10,2),1)<SLOPE(MA10,2);
SMA20:= REF(SLOPE(MA20,2),1)<0 AND SLOPE(MA20,2)<=0 AND REF(SLOPE(MA20,2),1)<SLOPE(MA20,2);
SMA62:=(SLOPE(MA62,3)>0) OR (REF(SLOPE(MA62,3),1)<0 AND SLOPE(MA62,3)<=0 AND REF(SLOPE(MA62,3),1)<SLOPE(MA62,3));
ANYUP:=(SLOPE(MA10,3)>0 OR SLOPE(MA20,3)>0 OR SLOPE(MA62,3)>0);
CONN:=ANYUP AND SMA62 AND (SMA10 OR SLOPE(MA10,2)>0) AND (SMA20 OR SLOPE(MA20,2)>0) AND SMA4;
DRAWTEXT(NOT(REF(CONN,1)) AND NOT(REF(CONN,2)) AND CONN,LOW*0.99,'雨青升天');
控盤雷達
VAR1:=CLOSE-LOW;
VAR2:=HIGH-LOW;
VAR3:=CLOSE-HIGH;
VAR4:=IF(CLOSE>=0,(VAR1/VAR2+VAR3/VAR2)*VOL,(VAR3/VAR2+VAR1/VAR2)*VOL);
主力控盤雷達: SUM(VAR4,10)/10000, VOLSTICK;
天地人和
VAR1:=AMOUNT/VOL/100;
VAR2:=SUMBARS(VOL,CAPITAL*1.618);
VAR3:=IF(VAR2>100,1.033,IF(VAR2<=100 AND VAR2>33,1.039,1.05));
VAR4:=EMA(VAR1,34)*VAR3;
VAR5:=HHV(HIGH,150);
天: VAR5*0.95;
地: MA(CLOSE,125)-2*STD(CLOSE,145);
人: MA(CLOSE,10)-2*STD(CLOSE,30);
和: ZIG(3,10);
大明排序
VARA:=C;
VARB:=REF(VARA,1);
VARC:=INDEXC;
VARD:=REF(VARC,1);
VAR1:=(VARC-VARD)/VARD*100;
VAR2:=(VARA-VARB)/VARB*100;
VAR3:=IF(ABS(VAR1)<2,0.9,1);
VAR4:=VAR3*(VAR2-VAR1);
今日換手:V/CAPITAL*100;
今日漲幅:(C-REF(C,1))/REF(C,1)*100;
個股強度3:SUM(VAR4,3);
個股強度5:SUM(VAR4,5);
個股強度10:SUM(VAR4,10);
個股強度21:SUM(VAR4,21);
快樂家園
大馬金刀
VAR1:=IF(LLV(LOW,5)<=CLOSE,LLV(LOW,5),CLOSE);
VAR2:=IF(LLV(LOW,10)<=VAR1,LLV(LOW,10),VAR1);
VAR3:=IF(LLV(LOW,20)<=VAR2,LLV(LOW,20),VAR2);
VAR4:=IF(LLV(LOW,30)<=VAR3,LLV(LOW,30),VAR3);
VAR5:=IF(LLV(LOW,40)<=VAR4,LLV(LOW,40),VAR4);
VAR6:=IF(LLV(LOW,50)<=VAR5,LLV(LOW,50),VAR5);
VAR7:=IF(LLV(LOW,60)<=VAR6,LLV(LOW,60),VAR6);
VAR8:=IF(LLV(LOW,100)<=VAR7,LLV(LOW,100),VAR7);
VAR9:=IF(LLV(LOW,150)<=VAR8,LLV(LOW,150),VAR8);
VARA:=SUM(MA(CLOSE/VAR9,1)-1.1,5);
大馬: VARA, COLORSTICK;
金刀: CROSS(VARA,0);
{理財專家選股}
VAR1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VAR5:=(HIGH+LOW+CLOSE)/3;
VAR6:=(VAR5-MA(VAR5,14))/(0.015*AVEDEV(VAR5,14));
VAR7:=(VAR5-MA(VAR5,89))/(0.015*AVEDEV(VAR5,89));
VAR8:=IF(VAR6>=150 AND VAR6<200 AND VAR7>=150 AND VAR7<200,10,0);
VAR9:=IF(VAR6<=-150 AND VAR6>-200 AND VAR7<=-150 AND VAR7>-200,-10,VAR8);
VARA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VARB:=100-ABS(VARA);
VAR19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1A:=(SMA(VAR19,4,1)-50)*2;
VAR1B:=SMA(VAR1A,3,1);
OX:=IF(VARB<90,VARB,100),COLORFFCC66;
預(yù)警:=IF(VAR7>=200 AND VAR6>=150,15,IF(VAR7<=-200 AND VAR6<=-150,-15,VAR9))+60,COLOR00FF00;
VAR21:=IF(VAR1>0,VAR1,0);
VAR2A:=VAR21>48 AND 預(yù)警>60 AND OX<100;
拉升在即狂牛!:VAR2A AND COUNT(VAR2A,30)=1;
{MACD實戰(zhàn)選股}
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,9);
MACD := 2*(DIFF-DEA);
D1:=EMA(C,3)-EMA(C,8);
D2:=EMA(O,3)-EMA(O,8);
D3:=EMA(H,3)-EMA(H,8);
D4:=EMA(L,3)-EMA(L,8);
CROSS(D1,DIFF) AND DIFF<-0.05;
{波段鬼王1選股}
VAR26:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR28:=SMA(VAR26,3,1);
波段王:= SMA(VAR28,3,1);
波段鬼:= SMA(波段王,3,1);
低吸做波段:CROSS(波段王,波段鬼) AND 波段王<40;
{波段鬼王2選股}
VAR26:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
VAR28:=SMA(VAR26,3,1);
波段王:=SMA(VAR28,3,1);
波段鬼:=SMA(波段王,3,1);
逢低吸吶:CROSS(波段王,波段鬼) AND 波段王<40;
{精品出山--絕對精品}
100,POINTDOT;
60,POINTDOT;
var1:=88;
var2:=68;
var3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
var4:=SMA(var3,3,1);
var5:=SMA(var4,3,1);
var6:=3*var4-2*var5;
var7:=SMA(CLOSE/HHV(HIGH,120),3,1)*100;
var8:=SMA(CLOSE/HHV(HIGH,120),3,1)*100;
var9:=var7>REF(var7,20) AND var7>75 AND FILTER(var7/REF(LLV(LOW,20),10)>1.18,20);
varA:=IF(var7>70 AND var7<75,1,0);
DRAWTEXT(COUNT(varA,20)>3 AND var7/HHV(HIGH,30)<1,var7,'調(diào)整到位');
varB:=REF(CLOSE,1);
varC:=SMA(MAX(CLOSE-varB,0),6,1)/SMA(ABS(CLOSE-varB),6,1)*100;
調(diào)整:var7,COLOR00ff00;
買進:STICKLINE(var7<68 AND BARSLAST(CROSS(var2,調(diào)整))>2 AND CROSS(var6,var5) AND var5<30,60,68,5,0),COLORf0f000;
頂區(qū):IF(var7>var1,var7,var1),COLORRED;
底區(qū):IF(var8<var2,var8,var2),COLORYELLOW;
DRAWTEXT(var9 AND var7<88,調(diào)整,'短期風(fēng)險'),COLORf00ff0;
DRAWTEXT(var7<68 AND BARSLAST(CROSS(var2,var7))>2 AND var5<30 AND CROSS(var6,var5),63,'來搶錢吧'),color00ffe0;
DRAWTEXT(FILTER(調(diào)整<52,10),調(diào)整,'都瘋我沒瘋');
DRAWTEXT(var7>88 AND CROSS(84,varC),調(diào)整,'高風(fēng)險跑');
{高山瀑布 主圖}
{N 1,100,2}
C1:=C;
D1:=LLV(LOW,15)*1;
D2:=LLV(LOW,10)*1;
D3:=LLV(LOW,5)*1;
XXX:=(D1=D2)=D3;
最值:=LLV(LOW,30);
X1:=HHV(CLOSE,35) ;
X2:=HHV(CLOSE,30);
X3:=HHV(CLOSE,25);
X4:=HHV(CLOSE,20);
X5:=HHV(CLOSE,15);
X6:=HHV(CLOSE,10);
X7:=HHV(CLOSE,5);
X8:=HHV(CLOSE,2);
STICKLINE(X2>X3,X2,X3,6,0),COLORFFA4A4,LINETHICK1;
STICKLINE(X3>X4,X3,X4,6,0),COLORFF7171,LINETHICK1;
STICKLINE(X4>X5,X4,X5,6,0),COLORFF3737,LINETHICK1;
STICKLINE(X5>X6,X5,X6,6,0),COLORF90000,LINETHICK1;
STICKLINE(X6>X7,X6,X7,6,0),COLOR990000,LINETHICK1;
STICKLINE(X8>D3,X8,D3,6,0),COLOR660000,LINETHICK1;
STICKLINE((最值)<D1,(最值),D1,6,0),COLOR005500,LINETHICK1;
STICKLINE(D2>D1,D2,D1,6,0),COLOR005E00,LINETHICK1;
STICKLINE(D3>D2,D3,D2,6,0),COLOR22AA11,LINETHICK1;
STICKLINE(X7>D3,X7,D3,6,0),COLOR22AA55,LINETHICK1;
{X:=8;}
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND C>REF(C,1), HIGH, LOW, 0.1, 1), COLORRED;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND C<=REF(C,1), HIGH, LOW, 0.1, 1), COLORCYAN;
STICKLINE(BARSCOUNT(C)=1 AND CLOSE=OPEN, HIGH, LOW, 0.1, 1), COLORRED;
STICKLINE(CLOSE>OPEN, CLOSE, OPEN, N, 1), COLORRED;
STICKLINE(CLOSE<OPEN, CLOSE, OPEN, N, 0), COLORCYAN;
{STICKLINE(CLOSE=OPEN AND C>REF(C,1), CLOSE, OPEN, N, 1), COLORRED;
STICKLINE(CLOSE=OPEN AND C<=REF(C,1), CLOSE, OPEN, N, 0), COLORCYAN;}
STICKLINE(BARSCOUNT(C)=1 AND CLOSE=OPEN, CLOSE, OPEN, N, 1), COLORRED;
{黑馬線1 選股}
LS261:=EMA(CLOSE,2);
LS262:=EMA(CLOSE,150);
LS26:=LS261-LS262;
LS27:=EMA(LS26,100);
LS28:=2*(LS26-LS27);
LS29:=POW(LS28,3)*0.1+POW(LS28,1);
黑馬線:IF(LS28>0.1,LS29,0)*5;
{黑馬線2 選股}
LS261:=EMA(CLOSE,2);
LS262:=EMA(CLOSE,150);
LS26:=LS261-LS262;
LS27:=EMA(LS26,100);
LS28:=2*(LS26-LS27);
LS29:=POW(LS28,3)*0.1+POW(LS28,1);
黑馬線:LS28>0.1 AND CROSS(LS29,0);
黑馬線(副)
LS3:=LLV(HIGH,240);
LS4:=100*(CLOSE-LS3)/LS3;
LS5:=REF(LLV(CLOSE,480),1);
LS6:=REF(HHV(CLOSE,480),1);
LS7:=100*(CLOSE-LS5)/(LS6-LS5);LS8:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100;
LS9:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100;
LSA:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100;
LSB:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100;
LSC1:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5);
LSC:=LSC1/4;
LSD:=IF(LSC>23.6,LSC,0);
LSE:=LSC<1;
LSF:=LSD;
LS10:=LS4;
LS11:=1;
LS12:=(HIGH+LOW+CLOSE*2)/4*LS11;
LS13:=EMA(LS12,21);
LS14:=STD(LS12,21);
LS15:=((LS12-LS13)/LS14*100+200)/4*LS11;
LS161:=EMA(LS15,89);
LS16:=(LS161-25)*1.56*LS11;
LS171:=EMA(LS16,5);
LS17:=LS171*1.22*LS11;
LS181:=EMA(LS17,3);
LS18:=LS181*LS11;
LS19:=3*LS17-2*LS18*LS11;
LS1A:=IF(CROSS(LS19,LS17)AND CROSS(LS19,LS18)AND CROSS(LS17,LS18),1,0);
LS1B:=IF(CROSS(LS17,LS19)AND CROSS(LS18,LS19)AND CROSS(LS18,LS17),1,0);
LS1C:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4;
LS1D1:=EMA(CLOSE,2);
LS1D2:=EMA(CLOSE,89);
LS1D:=LS1D1-LS1D2;
LS1E:=EMA(LS1D,30);
LS1F:=(LS1D-LS1E)*20;
LS20:=POW(LS1F,3)*0.1+POW(LS1F,2);
LS21:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
LS22:=EMA(LS21*0.97,3);
LS23:=(HIGH+LOW+CLOSE)/3;
LS24:=(LS23-MA(LS23,14))/(0.015*AVEDEV(LS23,14));
LS25:=IF(LS1F>0.015,LS20,0)/45;
莊拉線:=LS25;
LS261:=EMA(CLOSE,2);
LS262:=EMA(CLOSE,150);
LS26:=LS261-LS262;
LS27:=EMA(LS26,100);
LS28:=2*(LS26-LS27);
LS29:=POW(LS28,3)*0.1+POW(LS28,1);
LS2A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
LS2B:=EMA(LS2A*0.97,3);
LS2C:=(HIGH+LOW+CLOSE)/3;
LS2D:=(LS2C-MA(LS2C,14))/(0.015*AVEDEV(LS2C,14));
黑馬線:IF(LS28>0.1,LS29,0)*5;
量價線:(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;
常數(shù)線:=0;
X1:LS3;
X2:LS5;
X3:LS6;
莊 股橫盤啟動 A1:=100*(WINNER(1.1*C)-WINNER(0.9*C));
A2:=((CLOSE-LOW)/(HIGH-LOW)+(CLOSE-HIGH)/(HIGH-LOW))*VOL;
A3:=SUM(A2,10)/10000;
Var1:=AMOUNT/VOL/100;
Var2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
Var3:=SUM(AMOUNT,5)/Var1/100;
Var4:=SUM(AMOUNT,13)/Var1/100;
Var5:=SUM(AMOUNT,34)/Var1/100;
CYC5:=DMA(Var2,VOL/Var3);
CYC13:=DMA(Var2,VOL/Var4);
CYC34:=DMA(Var2,VOL/Var5);
CYS13:=(CLOSE-CYC13)/CYC13*100;
CYR13:=CYC13/REF(CYC13,1)*120-120;
MA5:=MA(C,5);
B:=VOL*100/CAPITAL;
AA:=COUNT(A1>60,20)=20;
橫盤啟動:AA AND CYC5>CYC13 AND CYC13>CYC34
AND CYS13>0 AND CYR13>0.5 AND CYR13<2 AND C>MA5 AND A3>0 AND B<=4;
“風(fēng)洞”核心公式破解+用法(轉(zhuǎn))
Var1:=FORCAST(CLOSE,30);
A:WINNER(Var1), LINETHICK1,COLORYELLOW;
A1:REVERSE(A),LINETHICK1 , COLORWHITE;
A2:(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55)),COLOR00FF00;
A3:REVERSE(A2), COLORRED;
STICKLINE(C>0,1,{1}0.96,4,0),colorFF9999;
STICKLINE(C>0,-1,{-1}-0.95,4,0),colorFF9999;
-0.3,colorDDDDDD,POINTDOT,LINETHICK2;
0.3,colorDDDDDD,POINTDOT,LINETHICK2;
{用法:該指標(biāo)引用了相反數(shù)、獲利盤比例、線性回歸預(yù)測值函數(shù)的原理表示股價
運行的趨勢,四條線呈對稱形,當(dāng)四條線粘合運行在兩條白色線區(qū)間時表示盤整,
不宜介入。當(dāng)紅綠兩條線分離脫離白色線區(qū)間時表示開始漲升,分離的幅度越大,
漲升也就越大。當(dāng)綠線臨近頂線(藍線)或觸及頂線時,預(yù)示即將到頂,要擇機賣出。}+
黑馬強牛
Var3:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4; Var4:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),44)/4; Var5:=EMA(CLOSE,1)-EMA(CLOSE,1297); Var6:=EMA(Var5,715); Var7:=2*(Var5-Var6); Var8:=POW(Var7,3)*0.1+POW(Var7,2); VarA:=EMA(CLOSE,2)-EMA(CLOSE,34); VarB:=EMA(VarA,33); VarC:=2*(VarA-VarB); VarD:=POW(VarC,3)*0.1+POW(VarC,3); VarF:=EMA(CLOSE,2)-EMA(CLOSE,89); Var10:=EMA(VarF,30); Var11:=2*(VarF-Var10)*10; Var12:=POW(Var11,3)*0.1+POW(Var11,2); Var13:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE)); Var14:=EMA(Var13*0.97,3); Var15:=(HIGH+LOW+CLOSE)/3; Var16:=(Var15-MA(Var15,14))/(0.015*AVEDEV(Var15,14)); Var17:=IF(Var11>0.015,Var12,0)*100; Var18:=(CLOSE-LLV(CLOSE,95))/(HHV(CLOSE,95)-LLV(CLOSE,95))*100; Var19:=VOL/240>MA(VOL,6)/240 AND CLOSE>OPEN*1.003; Var1A:=Var19 AND CLOSE<MA(CLOSE,10)*1.05 AND CLOSE<MA(CLOSE,10)*1.3; Var1B:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),0-VOL,0)),0)/1000; Var1C:=MA(Var1B,13); Var1D:=Var1B-Var1C; Var1E:=EMA(Var1D,3); Var1F:=CROSS(Var1D,Var1E); 強馬: IF(FILTER(CROSS(EMA(CLOSE,6),EMA(CLOSE,11)) AND Var3<10 AND VarD>0 AND Var17>0 AND Var18<30 AND Var1F,90)=1,20,0),stick , COLORRED; 強牛: IF(FILTER(CROSS(EMA(CLOSE,3),EMA(CLOSE,13)) AND Var17>0 AND Var4<5 AND Var8>0 AND Var18<30 AND Var1A,5)=1,20,0),stick , COLOR6699cc; 強龍: IF(FILTER(強馬 AND 強牛 AND Var1A,5)=1,20,0),stick , COLORYELLOW; 紅馬線: (CLOSE-MA(CLOSE,42))/MA(CLOSE,42)*100, , COLORstick; 見底: IF(HHV(CLOSE,20)/CLOSE>1.15 AND HIGH/LOW>1.05 AND CROSS(-28,紅馬線)*1/2,20,0),stick , COLORff0000; 強勢必行: IF(FILTER(紅馬線>0 AND 強馬 AND 紅馬線>0 AND 強牛 OR 紅馬線>0 AND 強龍,5)=1,30,0),linethick2 , COLORYELLOW; 當(dāng)日強勢預(yù)警: (強馬 OR 強牛) AND DYNAINFO(14)>=0.02 AND DYNAINFO(17)>=0.5, , COLORff6600; DRAWTEXT(強馬>0,5,'馬'), , ; DRAWTEXT(強牛>0,13,'牛'), , COLOR6699cc; DRAWTEXT(強龍>0,18,'龍'), , COLORYELLOW; DRAWTEXT(見底>0,-7,'見底'), , COLORMAGENTA;
黑馬VOL}
c0:((c+h+o+l+(c+o+l+h)/4+(o+C)/2+(l+h)/2+(o+l)/2+(c+l)/2+(c+h)/2+(o+h)/2+(c+h+o)/3+(h+o+l)/3+(c+h+l)/3+(o+l+c)/3)+(H+L+C*2)/4)/16;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主動買盤:=IF(C0>ref(c0,1),AA*(HIGH-LOW),IF(C0<ref(c0,1),AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED LINETHICK1;
主動賣盤:=IF(C0>ref(c0,1),0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(C0<ref(c0,1),0-AA*(HIGH-LOW),0-VOL/2)),COLORGREEN LINETHICK1;
sh:=ema(主動買盤-主動賣盤,21)/1000;
買盤: IF(c0>0 ,sh,0),stick ,color777777;
黑馬線:STICKLINE(c0>0,sh,ref(sh,1),6,1) ,coloraaaaaa;
上馬騎牛
追漲:=EMA(C,3);
騎師:EMA(C,3),colorwhite;
壓力:=MA(LLV(C,9)*1.1,14);
支撐:=MA(HHV(C,26)*0.9,14);
多空線:=(壓力+支撐)/2;
上馬: (壓力+支撐)/2,coloryellow;
騎牛:MA(LLV(C,9)*1.1,14),color0099ff;
FD:=IF(CROSS(騎師,上馬) AND EMA(C,60)<EMA(C,150) AND CROSS(騎師,騎牛) AND MAX(騎牛,上馬)/MIN(騎牛,上馬)<1.005,C,0);
A:=MA(C,3)COLORGREEN,LINETHICK2;
B:=A<REF(A,1);
VAR1:=IF(B-1,A,DRAWNULL)COLORRED,LINETHICK2;
REF(VAR1,1)=DRAWNULL AND VAR1=A;
這個公式昨天晚上選出的票,今天一開盤就翻紅.
三浪啟動選股
MA60:=MA(CLOSE,60),COLORGREEN;
MA250:=MA(CLOSE,250),COLORMAGENTA,LINETHICK3;
PL1:=(((CLOSE-MA60)/MA60)<0.1);
PL2:=(((CLOSE-MA250)/MA250) < 0.3);
偏離率:=(((PL1=1) AND (PL2=1)))*0.2;
突破:偏離率=0 AND REF(偏離率,1)=0.2 AND REF((COUNT((偏離率=0.2),10)=10),1) ;
大慶老楊的新變色KDJ選股
VAR1:=(H+L+O+C*2)/5;
VAR2:=EMA(VAR1,21);
VAR3:=STD(VAR1,23);
VAR4:=EMA(VAR1,2);
VARA:=(VAR1-VAR2)*100/VAR3;
K:=(EMA(VARA,23)+100)/2-3,COLOR00FFFF,LINETHICK2;
D:=SMA(K,5,1),COLORFFFF00,LINETHICK2;
J:=4*K-3*D,COLORFF00FF,LINETHICK2;
{IF(J>REF(J,1),J,DRAWNULL),COLORRED,LINETHICK2;
IF(J<REF(J,1),J,DRAWNULL)COLOR00BB00,LINETHICK2;}
DRAWICON(FILTER(J>REF(J,1)AND J<REF(J,3)
AND J<K AND VAR4>REF(VAR4,1)
AND K>=REF(K,1)AND J<40
OR CROSS(J,K)AND CROSS(J,D)
AND J<40 OR J>REF(J,1)AND J<-20,7), J*0.8,1);
{莊影難逃底 選股}
趨勢線:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100 , COLORAABBDD;
BB:=((REF(趨勢線,1)<REF(趨勢線,2) AND 趨勢線<-20 AND 趨勢線>-25) AND 趨勢線>=REF(趨勢線,1)) OR (REF(CROSS(-20,趨勢線),1) AND CROSS(趨勢線,-20));
底:BB;
莊影難逃機會選股
趨勢線:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100 , COLORAABBDD;
CC:=((REF(趨勢線,1)<REF(趨勢線,2) AND 趨勢線<-25 AND 趨勢線>-30) AND 趨勢線>=REF(趨勢線,1)) OR (REF(CROSS(-25,趨勢線),1) AND CROSS(趨勢線,-25));
機會:CC;