通达信系统指标公式

内容发布更新时间 : 2024/12/24 2:42:04星期一 下面是文章的全部内容请认真阅读。

LH1: M1;

JFZN 飓风智能中线

VAR2:=SUM(IF(CLOSE>OPEN,VOL,0),N)/SUM(VOL,N)*100; VAR3:=100-SUM(IF(CLOSE>OPEN,VOL,0),N)/SUM(VOL,N)*100; 多头力量: VAR2; 空头力量: VAR3; 多空平衡: 50;

CYHT 财运亨通

VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5; 高抛: 80;

VAR2:=LLV(LOW,34); VAR3:=HHV(HIGH,34);

SK: EMA((VAR1-VAR2)/(VAR3-VAR2)*100,13); SD: EMA(SK,3); 低吸: 20; 强弱分界: 50;

VAR4:=IF(CROSS(SK,SD),40,22); VAR5:=IF(CROSS(SD,SK),60,78); 卖出: VAR5; 买进: VAR4;

SCR 筹码集中度

A:=P1+(100-P1)/2; B:=(100-P1)/2; CC:=COST(A); DD:=COST(B);

SCR:(CC-DD)/(CC+DD)*100/2;

35

ASR 浮筹比例

ASR:(WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100;

BSQJ 买卖区间

买线:=EMA(C,2);

卖线:=EMA(SLOPE(C,21)*20+C,42);

STICKLINE(买线>=卖线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR001050; STICKLINE(买线<卖线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR404050; DRAWKLINE(H,O,L,C);

指导:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2); 界:=MA(CLOSE,27);

B买:IF(CROSS(指导,界) OR CROSS(买线,卖线),C,DRAWNULL),COLORMAGENTA,NODRAW; 持仓:IF(买线>=卖线,C,DRAWNULL),COLORRED,NODRAW;

S卖:IF(CROSS(界,指导) OR CROSS(卖线,买线),C,DRAWNULL),COLORLIGRAY,NODRAW; 空仓:IF(买线<卖线,C,DRAWNULL),COLORGREEN,NODRAW; DRAWICON(CROSS(买线,卖线),L,1); DRAWICON(CROSS(卖线,买线),H,2);

ZJL 折价率 用于排序

折价率:IF(FINANCE(34)>0.001,(FINANCE(34)-CLOSE)*100.0/FINANCE(34),0);

CDP-STD 逆势操作

CH:=REF(H,1); CL:=REF(L,1); CC:=REF(C,1);

CDP:(CH+CL+CC)/3; AH:CDP+CH-CL; NH:CDP+CDP-CL; NL:CDP+CDP-CH; AL:CDP-CH+CL;

TBP-STD 趋势平衡点

APX:=(H+L+C)/3;

TR0:=MAX(H-L,MAX(ABS(H-REF(C,1)),ABS(L-REF(C,1)))); MF0:=C-REF(C,2); MF1:=REF(MF0,1); MF2:=REF(MF0,2);

DIRECT1:=BARSLAST(MF0>MF1 AND MF0>MF2); DIRECT2:=BARSLAST(MF0

TBP:REF(REF(C,1)+IF(DIRECT0>50,MIN(MF0,MF1),MAX(MF0,MF1)),1); 多头获利:REF(IF(DIRECT0>50,APX*2-L,DRAWNULL),1),NODRAW; 多头停损:REF(IF(DIRECT0>50,APX-TR0,DRAWNULL),1),NODRAW; 空头回补:REF(IF(DIRECT0<-50,APX*2-H,DRAWNULL),1),NODRAW;

36

空头停损:REF(IF(DIRECT0<-50,APX+TR0,DRAWNULL),1),NODRAW;

SC 三叉(加密) NDB 脑电波(加密) JYJL 交易参考均量

单位时间总量: SUM(VOL,N)*100,NODRAW; 单位时间内均量: 单位时间总量/(N/M);

JSJG 参考结算价(适用于金融期货)

FIRST:=IF(PERIOD=0,HOUR=14 AND MINUTE=16,DRAWNULL); TOTAL:=IF(PERIOD=0,60,0); MAMIN:=BARSLAST(FIRST)+1;

COUNTFLAG:=(PERIOD=0 AND ( (HOUR=14 AND MINUTE>=16) OR HOUR=15 )); 逼近结算价格:IF(COUNTFLAG,SUM(C*V,MAMIN)/SUM(V,MAMIN),DRAWNULL); LASTP:=C;

LASTM:=MAMIN;

LASTV:=MA(V,MAMIN);

参考结算价格:IF(COUNTFLAG,(SUM(C*V,MAMIN)+

LASTP*LASTV*(TOTAL-LASTM))/(LASTV*TOTAL),DRAWNULL);

VOLATILITY 波动率

SQRT(250)*STD(C/REF(C,1)-1,N);

第十五节 特色型

CPBS 操盘BS点

BU:=CROSS(HIGH,SAR(3,1,20)); SEL:=CROSS(SAR(3,1,20),LOW);

DRAWTEXT(BU,LOW,'B'),COLORYELLOW,LINETHICK2;

DRAWTEXT(SEL,1.01*HIGH,'S'),COLORGREEN,LINETHICK2;

37

CYX 撑压线

Z1:=STRCAT(HYBLOCK,' '); Z2:=STRCAT(Z1,DYBLOCK); Z3:=STRCAT(Z2,' ');

DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLOR00C0C0; A1:=REF(H,N)=HHV(H,2*N+1); B1:=FILTER(A1,N);

C1:=BACKSET(B1,N+1); D1:=FILTER(C1,N);

A2:=REF(L,N)=LLV(L,2*N+1); B2:=FILTER(A2,N);

C2:=BACKSET(B2,N+1); D2:=FILTER(C2,N);

E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2; E2:=(H+L)/2;

H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(C)=1; L1:=(D2 AND NOT(D1 AND E1=E2); X1:=REF(BARSLAST(H1),1)+1;

F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1)); G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);

L2:=LD OR ISLASTBAR OR BARSCOUNT(C)=1; X2:=REF(BARSLAST(L2),1)+1;

F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2)); G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1);

R1:=BACKSET(ISLASTBAR,BARSLAST(HD)+1); S1:=R1>REF(R1,1);

T1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1); U1:=T1>REF(T1,1);

R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2); S2:=R2>REF(R2,1);

T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2); U2:=T2>REF(T2,1);

NOTEXT1:DRAWLINE(S2,H,S1,H,1),LINETHICK2,COLORRED; NOTEXT2:DRAWLINE(U2,L,U1,L,1),LINETHICK2,COLORGREEN;

38

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4 ceshi