通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
FD5[最佳买入点]
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE-LC),0),5,1)/SMA(ABS((CLOSE-LC)),5,1))*100);
TR1:=SUM(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((LOW-REF(CLOSE,1)))),10);
HD:=(HIGH-REF(HIGH,1));
LD:=(REF(LOW,1)-LOW);
DMP:=SUM(IF(((HD 0)AND(HD LD)),HD,0),10);
DMM:=SUM(IF(((LD 0)AND(LD HD)),LD,0),10);
PDI:=((DMP*100)/TR1);
MDI:=((DMM*100)/TR1);
ADX:=MA(((ABS((MDI-PDI))/(MDI+PDI))*100),5);
AV:=(RSI5+ADX);
DXR:=(((ADX+REF(ADX,5))/2)+RSI5);
WR10:=((100*(HHV(HIGH,10)-CLOSE))/(HHV(HIGH,10)-LLV(LOW,10)));
NEWVOL:=(RSI5-WR10);
最佳买入:=(AV+NEWVOL);
买入:IF(CROSS(最佳买入,0),4,0),STICK,COLOR00FFFF,LINETHICK2;
VARA1:=SMA(买入选股,3,1);
VARA2:=SMA(VARA1,3,1),COLOR0000FF;
VARA3:=SMA(VARA2,3,1),COLOR00FFFF;
建仓买点:IF(CROSS(VARA2,VARA3)AND(VARA2 40),5,0*10000),COLOR0000FF,LINETHICK1;
STICKLINE(建仓买点,0,1.5,6,0),COLORFF80FF;
STICKLINE(建仓买点,0.5,2.8,2,0),COLOR3000FF;
RSV:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*50);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
X:=LLV(J,2)=LLV(J,8);
最佳买入时机:IF(CROSS(J,3),1,0),STICK,COLORFFFF00;
STICKLINE(最佳买入时机,0,1,3,0),COLOR009999;
STICKLINE(最佳买入时机,0,1,2,0),COLOR00DDDD;
STICKLINE(最佳买入时机,0,1,1,0),COLOR00FFFF;
建仓:IF(最佳买入 5,-0.5,0),STICK,COLOR00FF00,LINETHICK1;
机构建仓日:STICKLINE(机构建仓,0,-1,4,1),COLOR00FF00,LINETHICK5;
:3*SMA((CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK2,COLORFF99FF,NODRAW;
备钱:IF(趋势 =20,-0.8,0),COLORD0D0D0,STICK,LINETHICK3;
快买:IF(趋势 =10,1,0),COLORFF38FF,STICK,LINETHICK3;
BIAS1:=(C-MA(C,6))/MA(C,6)*100,COLORFFDDCC;
BIAS2:(C-MA(C,13))/MA(C,13)*100,COLORFFFFFF,LINETHICK1;
BIAS3:=(C-MA(C,26))/MA(C,26)*100,COLORFFFFFF,LINETHICK1;
乖离:(BIAS1+2*BIAS2+3*BIAS3)/6,COLOR00FFFF;
乖离超限:MA(乖离,3),COLORFF80FF;
STICKLINE(CROSS(乖离,乖离超限)AND乖离超限 -9,-4,0,1,1),COLORFFFFFF;
STICKLINE(CROSS(乖离超限,乖离)AND乖离 10,6,0,3,0),COLORFF88FF;
DRAWBAND(MA(乖离,1),RGB(240,120,40),MA(乖离超限,1),RGB(256,200,20));
警跌:IF(BIAS2 REF(BIAS2,1),BIAS2,DRAWNULL),COLORFF6128,LINETHICK3;
回升:IF(BIAS2 REF(BIAS2,1),BIAS2,DRAWNULL),COLOR00FFFF,LINETHICK3;
R:SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100,COLORFFCCFF,NODRAW;
R2:SMA(MAX(CLOSE-REF(C,1),0),13,1)/SMA(ABS(CLOSE-REF(C,1)),13,1)*100,COLOR00CCFF,NODRAW;
STICKLINE(CROSS(R2,R)ANDR2 78,2,0,3,-1),COLOR30FFFF;
CC:=(C-REF(C,1))/REF(C,1)*100 1.2;
DD:=L MA(C,5)*0.921;
EE:=V MA(V,5)*1.5;
老鼠仓:=(L (AMOUNT/V)*0.9)ANDCCANDDDANDEE,LINETHICK0,COLOR0099FF;
DRAWTEXT(老鼠仓,-5, 老鼠仓 ),COLORFFFFFF;
搏击:=IF((CLOSE REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1)) 1.05)AND((HIGH)/(CLOSE) 1.01)AND(搏击 0),91,0),NODRAW;
DRAWTEXT(FILTER((VAR4AA 90),45),-3, 搏击 ),COLORFFFF00;
选底:TROUGHBARS(3,15,1) 4,NODRAW;
DRAWTEXT(FILTER(选底=1,3),-2, 底部 ),COLOR00FF00;
头部:=IF((PEAKBARS(3,15,1) 10)=1,2,0);
快逃:=IF(头部 REF(头部,1),H,0),COLORWHITE,NODRAW;
DRAWTEXT(快逃=H,6, 头部 ),COLOR0000FF,LINETHICK1;
STICKLINE(CROSS(乖离,BIAS1)ANDBIAS2 15,乖离,0,1,0),COLOR3300FF;
DRAWICON(CROSS(乖离,BIAS1*0.382),-1,1),COLORGREEN;
DRAWGBK(V 1,STRIP(RGB(60,100,255),RGB(130,120,255),1));
RSV:=(CLOSE-LLV(LOW,n))/(HHV(HIGH,n)-LLV(LOW,n))*100;
K:=EMA(RSV,9);
D:=EMA(K,5);
PARTLINE(k,K D,colorred,K D,colorgreen),LINETHICK2;
A:90,colorgreen;
B:50,colorred;
C:5,coloryellow;
DRAWTEXT(CROSS(K,D)AND(D =5),30, 买 ),colorred;
DRAWTEXT(CROSS(D,K)AND(D 85),70, 卖 ),colorgreen;
DRAWTEXT(CROSS(K,C)AND(K =C),5, 大底 ),colorred;
DRAWTEXT(CROSS(A,K)AND(K =A),98, 大顶 ),colorgreen;
ZT:=C/REF(C,1) 1.097;
XH:=FILTER(ZT,13);
BH:=BARSLAST(ZT);
DRAWTEXT(ZT,L*0.8, ),coloryellow;
Var1:=(CLOSE+HIGH+LOW)/3;
Var2:=EMA(EMA(EMA(Var1,1),9),21);
Var3:=LLV(LOW,33);
Var4:=HHV(HIGH,17);
Var5:=EMA((CLOSE-Var3)/(Var4-Var3)*100,20)*0.998;
Var6:=EMA(0.667*REF(Var5,1)+0.333*Var5,1);
Var7:=EMA(100*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,33)),20);
Var8:=EMA(Var7,1);
Var9:=VOL/CAPITAL*100;
VarA:=SUM(Var9,5)
VarB:=VarA/REF(Var9,10)
VarC:=HHV(CLOSE,5);
VarD:=VarC/REF(CLOSE,5) =1.01;
VarE:=Var8
VarF:=HIGH/REF(LOW,20)
Var10:=WINNER(CLOSE)*100;
Var11:=VarAANDVarEANDVarBANDVarFANDVarD;
Var12:=FILTER(Var11,20);
Var13:=EMA(WINNER(CLOSE),20);
Var14:=Var13 0.85ANDCLOSE MA(CLOSE,5)ANDHHV(HIGH,5)=HHV(HIGH,30)AND(SUM(VOL,10)/CAPITAL 0.2ORSUM(VOL,3)/CAPITAL 0.1)ORCLOSE/REF(CLOSE,20) =1.9;
公式解读:
选择买进点的三个技巧
买股票主要是买未来,希望买到的股票未来会涨。炒股有几个重要因素量、价、时,时即为介入的时间,这是最为重要的,介入时间选得好,就算股票选得差一些,也会有赚,但介入时机不好,即便选对了股也不会涨,而且还会被套牢。所谓好的开始即成功了一半,选择买卖点非常重要,在好的买进点介入,不仅不会套牢,而且可坐享被抬轿之乐。
1、股价稳定,萎缩
在空头市场上,大家都看坏后市,一旦有股票价格稳定,量也在缩小,可买入。
2、底部成交量激增,股价放长红
盘久必动,吸足后,配合大势稍加力拉抬,投资者即会介入,在此放量意味着将出现一段飙涨期,出现第一批巨量长红宜大胆买进,此时介入将大有收获。
3、股价跌至支撑线未穿又升时为买入时机
当股价跌至支撑线(平均通道线、切线等)止跌企稳,意味着股价得到了有效的支撑。
需要强调的是,股指、股价在箱体底部、顶部徘徊时,应特别留意有无重大利多、利空消息,留意成交量变化的情况,随时准备应付股指、股价的突破,有效突破为“多头行情”、“空头行情”;无效突破为“多头陷阱”、“空头陷阱”。
公式解读:
编写条件:
前低缩量后面放量下跌低点抬高的选股公式。
编写方法:
AA:=LLV(L,20)ANDC
T:=BARSLAST(AA);
XG:L REF(REF(L,T),1)ANDV REF(REF(V,T)*2,1)ANDC