相关简介:通达信回踩精准线公式(精准线主图选股)源码分享
通达信指标公式源码概况:
指标类别:通达信指标公式
授权方式:免费版
指标评级:★★★★★
指标分类:策略
画线方法:副图
指标说明:
1、指标反向对比:
股价在下跌,主力资金却在持续流入,前期出现长时间横盘阶段。股价下跌信号预示下个买入点即将出现。主力庄家是控制股票走势的大力量,散户主要根据主力流入判断后期涨跌。股价k线与主力资金相对表示这只股票回踩到均线定会反弹,预计上两幅图反弹点可预测在48.7和16.2左右。
2、回踩平台高点:
股价持续横盘,找准横盘期间最高点作为平台高点,关注再次突破关键位置,股价突破均线上涨后下跌,回踩平台高点后就预示反弹,此时筹码缺口与横盘期间的平台高点一致,这样的情况符合双支撑。关注这几个指标的动态变化可以在判断短期内该股的反弹时机。
3、最高点(最低点)双数指标:
股票在某个位置上下浮动,当小数点后面出现双数,例:33、99、66等,即预示着当天新高(新低),需要及时止盈止损。在当天关注期间不能够及时的高出或者低于这个双数尾股价,股民就该及时卖出或者买入。
通达信指标公式源码:
N:=102;M:=7;
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道1:AA*N/100;
通道2:AA*(200-N)/100;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
通道3:(1+M/100)*DD;
通道4:(1-M/100)*DD;
V2:=IF(CURRBARSCOUNT=1,vol*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);
STICKLINE(V2>=1,O,C,2,0),COLORYELLOW;
MA13:=MA(CLOSE,13);
X1:=(C+L+H)/3;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
A1:=MIN(O,C);
B1:=ABS(O-C);
T1:=FILTER(BB13>1ANDEMA(X1,13)>REF(EMA(X1,8),1),10);
STICKLINE(T1,A1,A1+B1/4,2,0),COLOR007575;
STICKLINE(T1,A1+B1/4,A1+B1/2,2,0),COLORFF0000;
STICKLINE(T1,A1+B1/2,A1+B1*3/4,2,0),COLOR007575;
STICKLINE(T1,A1+B1*3/4,A1+B1,2,0),COLORFF0000;
TYP:=(HIGH+LOW+CLOSE)/3;
NCC1:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
NC1:=SMA(NCC1,3,1);
NC2:=SMA(NC1,3,1);
NC3:=3*NC1-2*NC2;
CB1:=EMA(NC3,5);
CB2:=REF(CB1,1);
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI:=(RSI1-50)*5,LINETHICK2,COLORYELLOW;
NR1:=SMA(RSI,3,1);
ND1:=SMA(NR1,3,1);
NJ1:=3*NR1-2*ND1;
RR1:=EMA(NJ1,5);
RR2:=REF(RR1,1);
RR:=RR1>RR2;
RSVQ:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
NK:=SMA(RSVQ,3,1);
NK1:=(NK-50)*5,COLORRED;
NK2:=SMA(NK1,3,1);
ND2:=SMA(NK2,3,1);
NJ2:=3*NK2-2*ND2;
NBB1:=EMA(NJ2,5);
NBB2:=REF(NBB1,1);
买N入:=RRANDNOT(REF(RR,1))AND(NBB1<-100ANDNBB1<-100)ANDCB1<-100;
DRAWICON(买N入,L-0.2,13);
卖N出:=REF(RR,1)=1ANDNOT(RR)ANDCB1>100,LINETHICK0;
DRAWICON(卖N出,H+0.2,14);
QS:=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);
XG:=CROSS(QS,10);
DRAWICON(XG,L*0.98,9);
M1:=5;
M2:=10;
Vvol:IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
stICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
maVOL1:MA(VOLUME,M1);
MAVOL2:MA(VOLUME,M2);
VAR2:=1*AMOUNT;
MA1:=1*MA(AMOUNT,5);
MA2:=1*MA(AMOUNT,10);
三十日天量:=HHV(VAR2,30)=VAR2;
六十日天量:=HHV(VAR2,60)=VAR2;
百日天量:=HHV(VAR2,100)=VAR2;
一年天量:=HHV(VAR2,250)=VAR2;
STICKLINE(三十日天量,VOLUME,VOLUME*0.7,1,0),COLORMAGENTA;
STICKLINE(六十日天量,VOLUME,VOLUME*0.7,1,0),COLORYELLOW;
STICKLINE(百日天量,VOLUME,VOLUME*0.7,1,0),COLORGREEN;
STICKLINE(一年天量,VOLUME,VOLUME*0.7,1,0),COLORFF7100;
三十日地量:=LLV(VAR2,30)=VAR2;
六十日地量:=LLV(VAR2,60)=VAR2;
百日地量:=LLV(VAR2,100)=VAR2;
一年地量:=LLV(VAR2,250)=VAR2;
STICKLINE(三十日地量,-50000,0,1,0),COLORMAGENTA;
STICKLINE(六十日地量,-50000,0,1,0),COLORYELLOW;
STICKLINE(百日地量,-50000,0,1,0),COLORGREEN;
STICKLINE(一年地量,-50000,0,1,0),COLORFF7100;
IF(crOSS(0.9,1/VOL*1000>0.01AND”kdj.J”<0),VOLUME*5,0),COLORYELLOW,LINETHICK2;
A1A:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1),COLOR330066;
A5A:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*1;
A:=(3*C+L+O+H)/6;
X:=(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))/215,COLORWHITE,LINETHICK1;
F1:=CROSS(A1A,EMA(A1A,5))ANDEMA(A1A,5)<A5A;
F2:=BARSLAST(F1);
F3:=(L-X)/REF(C,1)*100;
F4:=LLV(F3,F2-1);
F2<6ANDF4>-1ANDF3<1.5;
[源码注释]通达信公式动态翻译结果
输出XG:成交额(元)上穿成交额(元)的10日简单移动平均
评论(0)