通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信资金持续流入指标公式
TYP:=IF((H>CANDC>O)OR(H>OANDO>=C),C,H)+IF((L<CANDC<O)OR(L<OANDO<=C),CLOSE,LOW)/3;
CCI:EMA((TYP-MA(TYP,36.0270012))/(0.015*AVEDEV(TYP,36.0270012)),2.0332),COLORGREEN;
STICKLINE(CCI>100,CCI,100,6,0),COLORMAGENTA;
STICKLINE(CCI<-150,CCI,-150,6,0),COLORYELLOW;
STICKLINE(C>0,100,101,10,0),COLORRED;
STICKLINE(C>0,-150,-151,8,0),COLORGREEN;
LC:=REF(CLOSE,1);
RSI5:=(SMA(MAX(CLOSE-LC,0),3,1))/(SMA(ABS(CLOSE-LC),3,1))*100;
WR10:=100*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3));
活跃度:=RSI5-WR10,LINETHICK0,COLORBLUE;
SC:=100*(CLOSE-MA(CLOSE,9)),LINETHICK2,COLORRED;
MAO:=EMA(SC,5),LINETHICK1,COLORBROWN;
STICKLINE(活跃度>-50AND活跃度<=0AND活跃度>=REF(活跃度,1),0,活跃度,3,1),COLORGREEN;
STICKLINE(活跃度<=-50AND活跃度>=REF(活跃度,1),0,活跃度,3,1),COLORLIGREEN;
STICKLINE(活跃度>0AND活跃度<=50,0,活跃度,2,0),COLORMAGENTA;
STICKLINE(活跃度>50AND活跃度<=80,0,活跃度,2,0),COLORLIRED;
STICKLINE(活跃度>80,0,活跃度,1,0),COLORYELLOW;
0;
80,POINTDOT;
VAR1S:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
VAR2S:=REF(EMA(VAR1S,3),1);
VAR3S:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
VAR4S:=IF(CLOSE>OPEN,VAR3S*(HIGH-LOW),IF(CLOSE<OPEN,VAR3S*(HIGH-OPEN+(CLOSE-LOW)),VOL/2))+IF(CLOSE>OPEN,0-VAR3S*(HIGH-CLOSE+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR3S*(HIGH-LOW),0-VOL/2));
VAR5S:=VOL/CAPITAL;
VAR6S:=IF(VAR5S>10,10,VAR5S);
VAR7S:=VAR4S/20/1.15;
VAR8S:=VAR7S*0.55+REF(VAR7S,1)*0.33+REF(VAR7S,2)*0.22;
VAR9S:=EMA(VAR8S,8);
VAR10S:=EMA(VAR8S,3);
STICKLINE(VAR7S*0.4>=0,VAR7S*0.4+VAR10S,0,3,0),COLORYELLOW;
STICKLINE(VAR7S*0.4<0,VAR7S*0.4+VAR10S,0,3,0),COLORGREEN;
VAR11S:=IF(VAR7S*0.4+VAR10S>0,VAR7S*0.4+VAR10S,DRAWNULL);
VAR12S:=IF(VAR7S*0.4+VAR10S<0,VAR7S*0.4+VAR10S,DRAWNULL);
VAR13S:=VAR7S*0.4+VAR10S;
VAR14S:=AMOUNT/10000;
资金净进出:IF(VAR7S*0.4+VAR10S>0,VAR11S,VAR12S),POINTDOT,COLORWHITE;
进出比例%:IF(VAR7S*0.4+VAR10S>0,VAR11S/VAR14S*100,VAR12S/VAR14S*100),COLORYELLOW;
VAR15S:=VAR10S;
STICKLINE(VAR15S>0,VAR15S,0,3,0),COLORRED;
STICKLINE(VAR15S<0,VAR15S,0,3,0),COLORFF3300;
主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORRED,LINETHICK2;
CN1:=HHV(V,5);{5日最高量}
CN2:=O>C;
CN02:=C>O;
CN03:=C=O;
CN04:=((SUM(V,5)/CN1));
CN05:=IF(CN04>0.3,1,0);{大资金}
CN07:=IF(CN02ANDCN05,V,0);{大资金流入}
累积流入:SUM(CN07,9)/10000,COLORYELLOW,LINETHICK3;
VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
TX98:90,COLOR408080,DOTLINE,LINETHICK1;
TX80:80,COLOR408080;
TX45:45,COLOR408080;
TX20:20,COLOR408080;
[源码注释]通达信公式动态翻译结果
AA1赋值:收盘价/1日前的收盘价>1.08
输出XG:统计5日中满足AA1的天数=1 AND AA1
每日通达信公式解答:
编写条件:
成交量比前一日增加50%以上的选股公式。
编写方法:
XG:V>=REF(V,1)*1.5;
评论(0)